lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liugangc <liuga...@gmail.com>
Subject Re:Filtering search results
Date Mon, 21 Nov 2011 03:34:25 GMT
hi,faceted search is like group by in SQL, and also need query two time to get two list in
your situation. I think there isn't  better way to solve your problem. 

--
gang liu
email: liugangc@gmail.com



At 2011-11-21 09:35:08,"Felipe Carvalho" <felipe.carvalho@gmail.com> wrote:
>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: employees that match the search criteria and consultants that match
>the criteria.
>  I'm running Lucene 3.4, is there a way for Lucene to hand me over those
>lists of documents separately on the same query?
>  Currently I run the query and then loop through the results, separating
>employees and consultants in two lists, is there a better way to do this?
>  A heard a colleague saying Solr supports this through "faceted search"
>(I'm not sure this is the right name), is there such thing on Lucene as
>well? (unfortunately using Solr is not an option for this app)
>
>Thanks!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message