Developer forum

Forum » Ecommerce - Standard features » Finding values based on multiple criteria in the index

Finding values based on multiple criteria in the index

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi guys,

How do I set up the index to search for mutiple partial matches? Something like Contains Any? E.g.:

....?Name=John, Peter

would return items where the name is John Doe, Peter Pen, John Petersen and so on.

Imar


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

First you make sure the field is indexed "Analyzed" (That is default behavior). Analyzed will split the values by word, make it case insensitive etc. You can use different analyzers.

Then make a search where your parameter is an array type. See dump.

Capture.PNG
Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Excellent, thanks. We'll give that a try.

Imar

 

You must be logged in to post in the forum