-
Notifications
You must be signed in to change notification settings - Fork 6
Search index items not findable #57
Comments
Hmm, I'll have to test this. It could be the search function in the generated frontendModel returning an invalid dataset? |
It could relate to this issue from the fork repository: forkcms/forkcms#554 ? |
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. |
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 😃. |
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. |
Don't know if forkcms/forkcms#699 can help you, @timvanwolfswinkel? |
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. |
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?
The text was updated successfully, but these errors were encountered: