Re: Lucene nested query

2018-04-10 Thread Rob Audenaerde
Your query can be seen as an inner join: select t0.* from employee t0 inner join employee t1 on t0.dept_no = t1.dept_no where t1.email='a...@email.com' Maybe JoinUtill can help you. http://lucene.apache.org/core/7_0_0/join/org/apache/lucene/search/join/JoinUtil.html?is-external=true On Tue,

Lucene nested query

2018-04-10 Thread Khurram Shehzad
Hi guys! I've a scenario where the lucene query depends on the result of another lucene query. For example, find all the employees of the department where one of its employee's email address = 'a...@email.com' SQL would be like: select * from employee where dept_no in( select dept_no

SortingMergePolicy is removed in 7.2.1?

2018-04-10 Thread Yonghui Zhao
I can't find this class now? Which is replacement? Thanks!

Re: SortingMergePolicy is removed in 7.2.1?

2018-04-10 Thread Erick Erickson
I found it in .../solr/core/src/java/org/apache/solr/index/SortingMergePolicy.java and the associated factory in ,,,/solr/core/src/java/org/apache/solr/index/SortingMergePolicyFactory.java so I'm not sure what you're having trouble with Best, Erick On Tue, Apr 10, 2018 at 4:56 AM, Yonghui

Re: SortingMergePolicy is removed in 7.2.1?

2018-04-10 Thread Adrien Grand
Hello, The SortingMergePolicy was an early experiment to implement index sorting. It has been made a first-class feature in LUCENE-6766, which you can enable with IndexWriterConfig.setIndexSort. Le mar. 10 avr. 2018 à 16:57, Erick Erickson a écrit : > I found it in >

Re: SortingMergePolicy is removed in 7.2.1?

2018-04-10 Thread Yonghui Zhao
Thanks Eric, my project only depends on lucene, so I can't find classes in solr. Thanks Adrien, setIndexSort seems easier than before. 2018-04-10 22:56 GMT+08:00 Erick Erickson : > I found it in .../solr/core/src/java/org/apache/solr/index/ > SortingMergePolicy.java >