Solr Facet Search-Spell check -


i'm usign solr facet search on column of database. returns data:

<lst name="facet_counts">   <lst name="facet_queries"/>   <lst name="facet_fields">     <lst name="tags">       <int name="lol">58</int>       <int name="scienc">58</int>       <int name="photo">34</int>       <int name="axiom">27</int>       <int name="geniu">14</int>    </lst>   </lst>   <lst name="facet_dates"/>   <lst name="facet_ranges"/> </lst> 

i want make sure complete words counted. in above example can see counts for'scienc' , 'geniu' should 'science' , 'genius'. how can achieve this? can incorporate spell checking feature?

this has underlying fieldtype have associated tags field. field value being stemmed or having other analyzers associated it. suggest 1 of 2 things:

  1. remove stemming and/or other processing prevent words appearing partial.
  2. (recommended) create separate field tags_facet fieldtype="string" in schema.xml , use copyfield directive copy values feed original tags field. facet on new tags_facet field.

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -