You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bjarkebm <gi...@git.apache.org> on 2018/02/26 13:03:00 UTC

[GitHub] lucene-solr pull request #327: SOLR-10078: Handle MatchNoDocsQuery in Boolea...

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 <mo...@...>
Date:   2017-10-04T09:11:25Z

    SOLR-10078: Handle MatchNoDocsQuery in BooleanQuery nested in ComplexPhraseQuery

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[GitHub] lucene-solr pull request #327: SOLR-10078: Handle MatchNoDocsQuery in Boolea...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/lucene-solr/pull/327


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org