Multi-words synonyms don't work if query contains WithAndAsDefaultOperator

  • Updated

Multi-words synonyms don't work if query contains WithAndAsDefaultOperator.  For example:

if (!String.IsNullOrWhiteSpace(query.QueryString)) 
{ 
search = search.For(query.QueryString) 
.InAllField() 
.WithAndAsDefaultOperator() 
.UsingSynonyms(); 
}

The issue is with how the tokenization is implemented in the current design of the product.

This is a known design limitation.   However the team has developed a separate package to enhance this functionality which can be found at the link below.

Improving synonyms and overall search experience