cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SOLR-Show only the words which contain the search text.

former_member632958
Discoverer
0 Kudos
419

I have a requirement suppose user search for Chardonnay United States currently it will display all the results which contain Chardonnay or ,united or states,I want to display only the products which contain Chardonnay untied states in their description.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Change the type from text to string and disable wildcard and fuzzy match types. If you still need to have it as a text and not as a string, create a new itemtype in both, solr schema.xml and hybris that doesnt do any token decomposition for example:

 <analyzer>
   <tokenizer class="solr.KeywordTokenizerFactory"/>
 </analyzer>