Jon, there actually is an example of this in my book.  Go to page 156.  I
looked and found "term-suggest" in the index.

~ David Smiley
 Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/


Jonathan Hendler-3 wrote:
> 
> Greetings all,
> 
> We're happily migrating our MySQL fulltext search to SOLR/faceted  
> search.
> 
> We're doing a term suggest on a large text field and doing  
> facet.sort=count. The numbers returned represent total times the term  
> shows up - I'd like to have the numbers represent the total documents  
> (unique ids) containing the term instead. Can I do this through a  
> facet query or another param ? I didn't see this example on the wiki  
> or the new book.
> 
> In other words to return Math(12 documents) instead of Math(93 times  
> word shows up)
> query=(+Ma*) 
> &facet.prefix 
> ="Ma"&facet.field=large_index_of_text&facet.sort=count&facet.mincount=1
> 
> - Jonathan
> 

-- 
View this message in context: 
http://www.nabble.com/Using-Solr-for-term-completion-with-counts-tp26067641p26068424.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to