How to make SOLR grouping/field collapsing case insensitive -


in our solr implementation, using grouping/field collapsing make sure type-ahead results unique. have content have same display term, difference codes behind them (multiple fields involved).

for part, works fine. field grouping on standard strfield. however, falls apart when display term in different cases (ie: solr vs solr).

how can make grouping case insensitive? other catch don't want tokenize string multiple words. example:

the terms "solr rocks", "solr rocks", , "solr awesome". results should "solr rocks" , "solr awesome" searches solr. if stream tokenized, 3 grouped together.

thanks

use non tokenized, lower case string field grouping.
should ensure grouping case insensitive.

e.g. field type configuration

<fieldtype name="lowercase" class="solr.textfield" positionincrementgap="100">   <analyzer>     <tokenizer class="solr.keywordtokenizerfactory"/>     <filter class="solr.lowercasefilterfactory" />   </analyzer> </fieldtype> 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -