Issue in multiple word search in AEM when using fulltext property in Lucene search
In our application, we have implemented search using "fulltext" property. While this is working fine for single query string, when we enter query string with multiple words (e.g. insurance products xyz), there is an issue. Only when all the multiple words individually have results, we get the results. If even one word among the multiple words does not have results, we get 0 results, which is not ideal behavior. Generally expected behavior is "OR" for all individual words.
For example, consider the below query for fulltext search.
path=/content/product/us
type=cq:Page
fulltext=insurance
Following is the result count for different fulltext values.
fulltext=insurance => 53 results
fulltext=products => 51 results
fulltext=insurance products => 48 results
fulltext=xyz => 0 results
fulltext=insurance products xyz => 0 results
Want to know how the query is processed when we give multiple words in fulltext property, and if there is any configuration to change this default behavior.
Thanks,
P. Vazahat Fatima