Re: BlockJoinQuery with sorting

2016-11-28 Thread ASKozitsin
https://lucene.apache.org/core/6_2_0/join/org/apache/lucene/search/join/ToParentBlockJoinSortField.html Fits Perfectly! Thanks for the link! -- View this message in context: http://lucene.472066.n3.nabble.com/BlockJoinQuery-with-sorting-tp4307405p4307672.html Sent from the Lucene - Java Users

Re: BlockJoinQuery with sorting

2016-11-28 Thread Mikhail Khludnev
As it's described in Solr space http://blog-archive.griddynamics.com/2015/08/scoring-join-party-in-solr-53.html you can add a function query for price value field in a child query as SHOULD, then pass ScoreMode into BlockJoinQuery and it will yield scores. There are two things to mention: I'm not s

Re: BlockJoinQuery with sorting

2016-11-28 Thread ASKozitsin
Here is an example: I've got 3 Offerings with such prices: [Offering1 : { id : 1, price : { value: [10, 30, 20], type : t1 } }, Offering2 : { id : 2, price : { value: [20], type : t2 } }, Offering3 : { id : 3, price : { value: [15, 40], type : t3} }] Originally, I would like to filter data by a

Re: BlockJoinQuery with sorting

2016-11-26 Thread Mikhail Khludnev
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 wrote: > Hi, everyone! > > I'm using 6.3.0 Lucene. > > I've got two structures: