lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <erik.hatc...@gmail.com>
Subject Re: how to make effective search with fq and q params
Date Tue, 22 Nov 2011 14:06:31 GMT
If all you're doing is filtering (browsing by facets perhaps), it's perfectly fine to have
q=*:*.  MatchAllDocsQuery is fast (and would be cached anyway), so use *:* as appropriate
without worries.

	Erik



On Nov 22, 2011, at 07:18 , pravesh wrote:

> Usually,
> 
> Use the 'q' parameter to search for the free text values entered by the
> users (where you might want to parse the query and/or apply
> boosting/phrase-sloppy, minimum match,tie etc )
> 
> Use the 'fq' to limit the searches to certain criterias like location,
> date-ranges etc.
> 
> Also, avoid using the q=*:* as it implicitly translates to matchalldocsquery
> 
> Regds
> Pravesh
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/how-to-make-effective-search-with-fq-and-q-params-tp3527217p3527535.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message