The key to get this working is to set "spellcheck.maxCollationTries" > 0.  It 
will generate collations even if there is only 1 term.

James Dyer
Ingram Content Group
(615) 213-4311


-----Original Message-----
From: Chris Hostetter [mailto:hossman_luc...@fucit.org] 
Sent: Wednesday, February 13, 2013 1:24 PM
To: solr-user@lucene.apache.org
Subject: Re: suggest only from certain documents


: suggester simply looks at the terms in the index and returns some of them,
: it's not aware (that I know of) of which docs the terms came from, so I

I'm not certain, but isn't there where the "spellcheck.collate" option can 
be used?

http://wiki.apache.org/solr/SpellCheckComponent#spellcheck.collate

...if i understand the docs correctly, you can put your doc constraints in 
an "fq" and only suggested collations that match some documents in that 
set will be returned.  (not sure if collations are considered when there 
is only a single term in the query though)


-Hoss


Reply via email to