lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <m...@apache.org>
Subject Re: BlockJoinQuery with sorting
Date Sat, 26 Nov 2016 22:09:24 GMT
private reply:
it's not clear what you retrieve and what you want to sort, parents by
matching children or lists of children associated to parents.
PLs respond to the list.

On Fri, Nov 25, 2016 at 3:24 PM, ASKozitsin <askozitsin@gmail.com> wrote:

> Hi, everyone!
>
> I'm using 6.3.0 Lucene.
>
> I've got two structures: Offerings and Prices.
>
> Offering has id, list of prices and other parameters.
> Price has value and other parameters(type, dates and so on).
>
> I create documents in Lucene in such manner:
> if i have offering with 3 prices in list, I make 3 documents:
> offering with price1, offering with price2, offering with price3 (all of
> them have the same offering_id).
> after this 3 documents, i put parent document with the same offering_id.
>
> So, everything is fine, I use BlockJoinQueries for retrieving ids without
> duplicates.
> However, when I try to handle sorting by price value, I stuck with a
> problem. Seems, there is no ability to sort children documents without
> duplicates. (of course, i can use Set collection for collector result, but
> it is not really good).
>
> Please, help me to resolve the issue.
> Thanks in advance!
>
>
>
> --
> View this message in context: http://lucene.472066.n3.
> nabble.com/BlockJoinQuery-with-sorting-tp4307405.html
> 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
>
>


-- 
Sincerely yours
Mikhail Khludnev

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