GitHub user bjarkebm opened a pull request:
https://github.com/apache/lucene-solr/pull/327
SOLR-10078: Handle MatchNoDocsQuery in BooleanQuery nested in
ComplexPhraseQuery
When a BooleanQuery is nested inside a ComplexPhrase, and one of the terms
returns a MatchNoDocsQuery (which was introduced in LUCENE-7337),
ComplexPhraseQuery.addComplexPhraseClause throws an exception "Unknown query
type:org.apache.lucene.search.MatchNoDocsQuery"
Example: "(john OR nosuchword*) smith"
The fix is to handle MatchNoDocsQuery the same way as it is done in
ComplexPhraseQuery.rewrite
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bjarkebm/lucene-solr master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/lucene-solr/pull/327.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #327
----
commit 521878adec93f2a8398a701f23ddfb196415975b
Author: Bjarke Buur Mortensen <mortensen@...>
Date: 2017-10-04T09:11:25Z
SOLR-10078: Handle MatchNoDocsQuery in BooleanQuery nested in
ComplexPhraseQuery
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]