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 2017/10/04 09:17:40 UTC

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

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 <mo...@eluence.com>
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 #258: 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/258


---

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