You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2012/06/04 17:31:12 UTC
[Solr Wiki] Update of "Suggester" by NolanLawson
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "Suggester" page has been changed by NolanLawson:
http://wiki.apache.org/solr/Suggester?action=diff&rev1=13&rev2=14
Comment:
Adding a description of the 'storeDir' variable - I saw this in the examples, but not on the wiki.
* `sourceLocation` - location of the dictionary file. If not empty then this is a path to a dictionary file (see below). If this value is empty then the main index will be used as a source of terms and weights.
* `field` - if `sourceLocation` is empty then terms from this field in the index will be used when building the trie.
* `threshold` - threshold is a value in [0..1] representing the minimum fraction of documents (of the total) where a term should appear, in order to be added to the lookup dictionary.
+ * `storeDir` - where to store the index data on the disk (else use in-memory).
== Dictionary ==
When a file-based dictionary is used (non-empty `sourceLocation` parameter above) then it's expected to be a plain text file in UTF-8 encoding. Blank lines and lines that start with a '#' are ignored. The remaining lines must consist of either a string without literal TAB (\u0007) character, or a string and a TAB separated floating-point weight.