Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Search index items not findable #57

Open
wolfie90 opened this issue Sep 2, 2014 · 7 comments
Open

Search index items not findable #57

wolfie90 opened this issue Sep 2, 2014 · 7 comments
Labels

Comments

@wolfie90
Copy link
Contributor

wolfie90 commented Sep 2, 2014

When you add a item in a generated module it gets added to the search index as an active record. However, when searching for it in the frontend its not findable and the record is set to inactive in the database. I've tested it in Fork 3.7 as well as the older version. I can't find a solution, do you have any idea what this might be?

@WouterSioen
Copy link
Owner

Hmm, I'll have to test this. It could be the search function in the generated frontendModel returning an invalid dataset?

@WouterSioen WouterSioen added the bug label Sep 2, 2014
@wolfie90
Copy link
Contributor Author

wolfie90 commented Sep 2, 2014

It could relate to this issue from the fork repository: forkcms/forkcms#554 ?

@WouterSioen
Copy link
Owner

Nope, that's a completely different story. forkcms/forkcms#554 is caused by the blog installer not inserting search indices. In this case, we have search indices, but it goes wrong when fetching them.

Can you add a var_dump in the search function in the frontendmodel of your module to check if it gets correct id's and returns the wanted items back? Note: you'll need to put your search indices to active again before testing this.

@wolfie90
Copy link
Contributor Author

wolfie90 commented Sep 2, 2014

Hmm, updated some forgotten uncapitalized pathnames and it seems to be working again in the newer Fork CMS versions. Still have issues with generated modules in a personal project where I use a older version of Fork (3.6), I will try what you mentioned above 😃.

@wolfie90
Copy link
Contributor Author

wolfie90 commented Sep 2, 2014

I'm getting an array with the all the ids from the module items, it returns an empty array. I did put the search indices that I wanted to a active status but unfortunately no results. The search indices have a 'title' and a 'information' field. I have compared the search functions from the model with other modules and it looks like it is the same so I'm not really sure where to look for a solution on this point. The other modules (f.e. pages) are working well when I activate them in the search settings.

@jeroendesloovere
Copy link
Contributor

Don't know if forkcms/forkcms#699 can help you, @timvanwolfswinkel?

@wolfie90
Copy link
Contributor Author

Unfortunately not @jeroendesloovere, I'm aware of the problems mentioned in that post. However, the problem I have seems to be somewhat else. I will try to look into it again in the near future.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants