Gravatar for nallen@nonlinear.ca

Question by nallen, Jul 15, 2015 10:04 AM

Minimum Query Length

I have products indexed whose name begins with VariCel. Searching for "Var" on the Sitecore front end or directly in the Coveo Index Browser never returns results, adding one more character and searching for "Vari" does return results, wondering what the reason behind this might be and whether I can decrease the number of characters required to get results.

Thanks

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Jul 15, 2015 10:36 AM

There is no minimum length for the free text queries. There are stop words that are not searched like "an", "the", "and". I don't know if "var" is one of them.

The reason why your search for "Vari" does return results is probably that one of the field, the title, the URL or the text body of the item contains the standalone term "vari". You can check the fields section in the index browser for one of the returned result. Type "vari" in the filter box above the list of fields and you will see all the fields that contains the term.

Gravatar for slangevin@coveo.com

Comment by Simon, Jul 15, 2015 10:58 AM

To add to JF answer, I did test with a random file with Varicell in it, and even vari could not find it. Stemming (which is the reason why we can find a word when querying only a fraction of it) will only match word of the same family. In this case it is not. So as JF said, it feels like one of your meta-data as the "vari" value on it.

Gravatar for nallen@nonlinear.ca

Comment by nallen, Jul 16, 2015 8:28 AM

Thanks for the response, I checked the fields on one of the results for "vari" and none of the fields contain "vari" but there are many instances of "VariCel". Perhaps because of Capitalization Coveo is splitting "VariCel" into "Vari" and "Cel", I do get search results if I search for "Cel"

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Jul 16, 2015 9:23 AM

You're right. Only if "VariCel" is included in the title of the CES document, the index will split it in the 2 "Vari" and "Cel" terms. That would explain why you find the document by searching for "Vari" or "Cel".

For your information, free text queries are for whole terms search. They do not search in the middle of the terms. A search for "arice" would not find the documents unless they contain that exact term.

Gravatar for nallen@nonlinear.ca

Comment by nallen, Jul 16, 2015 10:24 AM

Ok, thanks for the clarification

Ask a question