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 <mhmt...@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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to