In a shared query, where I want to find all products that contains a / in the productnumber, how do I achieve that?
This is my attempt:
Br. Michael Knudsen
In a shared query, where I want to find all products that contains a / in the productnumber, how do I achieve that?
This is my attempt:
Br. Michael Knudsen
When the field is analyzed, any non-words and stop-words are removed - that includes /. I.e. the "My product / and variants" when indexed as an analyzed field will become 'my', 'product', 'variants' in the index - so you cannot search for '/' and 'and'.
So to search for those, you need to search in a product number field that is not analyzed. Your index might not have that field, but then you can create it. Refer to the indexing docs.
Thanks Nicolai, I'll create a ProductNumberForSearch based on ProductNumber, but not analyzed.
Br. Michael Knudsen
You must be logged in to post in the forum