GitHub user bjarkebm opened a pull request:
https://github.com/apache/lucene-solr/pull/258
SOLR-10078: Handle MatchNoDocsQuery in BooleanQuery nested in Complexâ¦
â¦PhraseQuery
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 branch_7x
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/lucene-solr/pull/258.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 #258
commit dfb57cd5b3913f9acb264aec0cfaabcdcf181289
Author: Bjarke Buur Mortensen
Date: 2017-10-04T09:11:25Z
SOLR-10078: Handle MatchNoDocsQuery in BooleanQuery nested in
ComplexPhraseQuery
---
-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org