[SOLR-5683] Documentation of Suggester V2 - ASF JIRA
The new Suggester Component allows Solr to fully utilize the Lucene suggesters.
The main features are:
- lookup pluggability (TODO: add description):
- AnalyzingInfixLookupFactory
- AnalyzingLookupFactory
- FuzzyLookupFactory
- FreeTextLookupFactory
- FSTLookupFactory
- WFSTLookupFactory
- TSTLookupFactory
- JaspellLookupFactory
- Dictionary pluggability (give users the option to choose the dictionary implementation to use for their suggesters to consume)
- Input from search index
- DocumentDictionaryFactory – user can specify suggestion field along with optional weight and payload fields from their search index.
- DocumentExpressionFactory – same as DocumentDictionaryFactory but allows users to specify arbitrary expression using existing numeric fields.
- HighFrequencyDictionaryFactory – user can specify a suggestion field and specify a threshold to prune out less frequent terms.
- Input from external files
- FileDictionaryFactory – user can specify a file which contains suggest entries, along with optional weights and payloads.
- Input from search index
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 (can occur multiple times for batching suggester requests)
- 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
- buildAll – command to build all suggesters in the component
- reloadAll – command to reload all suggesters in the component
Read full article from [SOLR-5683] Documentation of Suggester V2 - ASF JIRA
No comments:
Post a Comment