[SOLR-5378] Suggester Version 2 - ASF JIRA
The idea is to add a new Suggester Component that will eventually replace the Suggester support through the SpellCheck Component.
This will enable Solr to fully utilize the Lucene suggester module (along with supporting most of the existing features) in the following ways:
- Dictionary pluggability (give users the option to choose the dictionary implementation to use for their suggesters to consume)
- Map the suggester options/ suggester result format (e.g. support for payload)
- The new Component will also allow us to have "beefier" Lookup support instead of resorting to collation and such. (Move computation from query time to index time) with more freedom
In addition to this, this suggester version should also have support for distributed support, which was awkward at best with the previous implementation due to SpellCheck requirements.
Config (index time) options:
- name - name of suggester
- sourceLocation - external file location (for file-based suggesters)
- lookupImpl - type of lookup to use [default JaspellLookupFactory]
- dictionaryImpl - type of dictionary to use (lookup input) [default
(sourceLocation == null ? HighFrequencyDictionaryFactory : FileDictionaryFactory)] - storeDir - location to store in-memory data structure in disk
- buildOnCommit - command to build suggester for every commit
- buildOnOptimize - command to build suggester for every optimize
Query time options:
- suggest.dictionary - name of suggester to use
- suggest.count - number of suggestions to return
- suggest.q - query to use for lookup
- suggest.build - command to build the suggester
- suggest.reload - command to reload the suggester
Read full article from [SOLR-5378] Suggester Version 2 - ASF JIRA
No comments:
Post a Comment