Re: CustomQuery.bulkScorer isn't called from BooleanQuery with filter block

2018-07-26 Thread Adrien Grand
Weight#bulkScorer has a similar purpose as Weight#scorer but is optimized for the case that all matches need to be visited. Say your query is "a OR b": all hits of "a" are also hits of "a OR b" so if you run this query, Lucene will call Weight#bulkScorer on both sub clauses and merge results. Now

Re: CustomQuery.bulkScorer isn't called from BooleanQuery with filter block

2018-07-26 Thread Vadim Gindin
Hello Adrien. No, My query supports both scorer() and bulkScorer(). Sorry, I didn't specified that, because I thought it is not related to my difficulty. Could you explain what did you mean by " Today, conjunctions never use the bulkScorer API."? Thanks. On Thu, Jul 26, 2018 at 1:11 AM Adrien

Re: CustomQuery.bulkScorer isn't called from BooleanQuery with filter block

2018-07-25 Thread Adrien Grand
Hello Vadim, It looks like your query only supports bulkScorer() and not scorer()? Unfortunately this is illegal: queries must implement scorer(). Today, conjunctions never use the bulkScorer API. Le mer. 25 juil. 2018 à 18:47, Vadim Gindin a écrit : > Hi all! > > I have the following

CustomQuery.bulkScorer isn't called from BooleanQuery with filter block

2018-07-25 Thread Vadim Gindin
Hi all! I have the following BooleanQuery (JSON representation as it is defined in Elasticsearch): { "query" : { "bool" : { "must" : { "custom_query" : { // has own bulkScorer() implementation ... } }, "filter" : { ...