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:
- remove stemming and/or other processing prevent words appearing partial.
- (recommended) create separate field
tags_facet
fieldtype="string"
in schema.xml , use copyfield directive copy values feed originaltags
field. facet on newtags_face
t field.
Comments
Post a Comment