lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: How To Index With Multiple Priorities
Date Wed, 18 Nov 2015 16:37:56 GMT
Looks rather like a dynamic field (assuming you don't have thousands of lists).

So when ingesting list B, you index a field like
b_priority

likewise with list A you index a field like
a_priority

and have a dynamic field with a name like *_priority.
Best,
Erick

On Wed, Nov 18, 2015 at 4:15 AM, Mehmet Ba┼čal <mhmtbsl@gmail.com> wrote:
> Hello,
>
> I have different lists that consist of products. And each product in list
> has a priority that specific to list. For example;
>
> List A:
> product_id - priority
> 1                      10
> 2                       25
> 3                       30
>
>
> List B:
> product_id - priority
> 3                      10
> 4                       25
> 5                       30
>
> So question is how should i index those list with lucene to make a query
> like this:
> get products of B list and sort them with priorities that they have in B.
>
> Thanks in advance.

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


Mime
View raw message