Re: Lucene one to many query

2019-09-21 Thread Mikhail Khludnev
Hi, see ToParentBlockJoinQuery On Sat, Sep 21, 2019 at 6:14 PM ncs88 wrote: > Hi everyone. I am trying to build a lucene query that will work with the > following one-to-many relationship. I’m trying to-do this in lucene 5.5 but > if i can’t then i’ll move towards upgrading the project to a

Re: Lucene one to many query

2019-09-21 Thread Jigar Shah
Nested documents structure supported by solr is what you need. But as you are using lucene, you should denormalize and store item with company fields and price. Apply search on item with function query on item_price. As you have results you can store companies in a set. On Sat, Sep 21, 2019,

Lucene one to many query

2019-09-21 Thread ncs88
Hi everyone. I am trying to build a lucene query that will work with the following one-to-many relationship. I’m trying to-do this in lucene 5.5 but if i can’t then i’ll move towards upgrading the project to a newer version if necessary. Say i have two objects like so. One Company that has