Re: Filtering search results

2011-11-22 Thread Felipe Carvalho
I'd really love to use Solr, but unfortunately this is not an option for this project I'm working on, Would anybody have a pointer to an article or a few lines of code showing how to use this using Lucene core? I've done quite some digging on Google, but I could only people suggesting to use Solr

Re: Filtering search results

2011-11-21 Thread Erick Erickson
http://wiki.apache.org/solr/FieldCollapsing On Mon, Nov 21, 2011 at 8:17 AM, Felipe Carvalho wrote: > Thanks for the tip, Erick! Any pointer to any article showing how to use it? > > Thanks > > On Mon, Nov 21http://wiki.apache.org/solr/FieldCollapsing, 2011 at 10:49 AM, > Erick Erickson wrote: >

Re: Filtering search results

2011-11-21 Thread Felipe Carvalho
Thanks for the tip, Erick! Any pointer to any article showing how to use it? Thanks On Mon, Nov 21, 2011 at 10:49 AM, Erick Erickson wrote: > You might take a look at grouping, aka field collapsing. Faceting gives > you counts for various values in a field, but not a mixture of documents, > wher

Re: Filtering search results

2011-11-21 Thread Erick Erickson
You might take a look at grouping, aka field collapsing. Faceting gives you counts for various values in a field, but not a mixture of documents, whereas grouping will return you the top N members of each group which sounds like what you're after. Best Erick On Mon, Nov 21, 2011 at 5:04 AM, Ian L

Re: Filtering search results

2011-11-21 Thread Ian Lea
Running two queries is fine, as is looping through the results list. I don't think it is clear that one in necessarily "better" than the other. Faceting generally works by looping through results because you typically don't know in advance what values will be present. -- Ian, 2011/11/21 liugang

Filtering search results

2011-11-20 Thread Felipe Carvalho
Hello, I'm working on a people finder app over an index built of Person documents. Among other attributes (name, gender, phone, ...) I have a hiringType attribute, which possible values are EMPLOYEE and CONSULTANT. When I run a "name" search over these documents, I need to render two lists: emp