Examine product filter with checkboxes and comma separated values
Hello,
I am working on a filter to filter all the product pages. Each product has a series of multiple checkboxes in the backoffice. Each field is stored in CSV.
On the front-end side I have a multiple checkboxs filter that should sort the products.
After setting up my custom searcher/indexer, I can't have it woring because of the comma.
Here is a search using only a signle value (but it will be a CSV string as well). As the field may contain a comma, it's not working properly:
I didn't know that the event ExamineEvents_GatheringNodeData was trigered on publish. So If I want to trigger this on all pages I have to re-publish all site? It's not fired up on reindexing ?
This event should be fired up on reindexing. Try to rebuild your index from the [Developper section -> Examine management] in umbraco 7, to be 100% sure.
Examine product filter with checkboxes and comma separated values
Hello,
I am working on a filter to filter all the product pages. Each product has a series of multiple checkboxes in the backoffice. Each field is stored in CSV.
On the front-end side I have a multiple checkboxs filter that should sort the products.
After setting up my custom searcher/indexer, I can't have it woring because of the comma.
Here is a search using only a signle value (but it will be a CSV string as well).
As the field may contain a comma, it's not working properly:
I have tried to remove the comma from each indexed field using something like this but it's not indexing anything now:
Is there an error in my examine event ?
Do I have to use another search query ?
Thanks a lot for your help
Hi,
Have a look to this thread since it is very similar to what you want to achieve https://our.umbraco.org/forum/developers/api-questions/57958-Using-Examine-to-search-UmbracoTags
Hope that helps.
Alain
Hi Alain,
Thank you for the link, this can help!
I didn't know that the event ExamineEvents_GatheringNodeData was trigered on publish. So If I want to trigger this on all pages I have to re-publish all site?
It's not fired up on reindexing ?
Florent
Florent,
This event should be fired up on reindexing. Try to rebuild your index from the [Developper section -> Examine management] in umbraco 7, to be 100% sure.
Alain
Hi Alain,
It's working now. In my first version, I was trying to replace an existing indexed field which is not possible.
This is working:
is working on a reply...