You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by poeta simbolista <po...@gmail.com> on 2007/02/06 16:58:30 UTC

query problem: grouping "with same field"

Hi all,

First of all thanks for this forum, I have read stuff that helped me a lot.
Second, I would like to query a Lucene index in this way:
I want to do operations on groups of entries. These entries I want them to
be grouped by a field, (called websiteid), so the queries will only go to
those listings.
What would it be the best approach for this?
Thanks a lot
 D
-- 
View this message in context: http://www.nabble.com/query-problem%3A-grouping-%22with-same-field%22-tf3181355.html#a8828462
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: query problem: grouping "with same field"

Posted by Erick Erickson <er...@gmail.com>.
Isn't this just a field on your document and an AND in the query with the
websiteID in question? Or are you saying you want to group results by
multiple website IDs in a single query? As in

webid1
  resulta
  resultb
  resultc
webid2
  resulte
  resultf
  resultg

etc.

If the latter, search the archive for "facets", "faceted" and there are
extensive discussions that'll help a great deal.

Best
Erick

On 2/6/07, poeta simbolista <po...@gmail.com> wrote:
>
>
> Hi all,
>
> First of all thanks for this forum, I have read stuff that helped me a
> lot.
> Second, I would like to query a Lucene index in this way:
> I want to do operations on groups of entries. These entries I want them to
> be grouped by a field, (called websiteid), so the queries will only go to
> those listings.
> What would it be the best approach for this?
> Thanks a lot
> D
> --
> View this message in context:
> http://www.nabble.com/query-problem%3A-grouping-%22with-same-field%22-tf3181355.html#a8828462
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>