[ 
https://issues.apache.org/jira/browse/LUCENE-9578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17215514#comment-17215514
 ] 

ASF subversion and git services commented on LUCENE-9578:
---------------------------------------------------------

Commit 48348aefc1ffdfb44e18c8c45cd64c6dce23837e in lucene-solr's branch 
refs/heads/master from Christoph Büscher
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=48348ae ]

LUCENE-9578: TermRangeQuery empty string lower bound edge case (#1976)

Currently a TermRangeQuery with the empty String ("") as lower bound and
includeLower=false leads internally constructs an Automaton that doesn't match
anything. This is unexpected expecially for open upper bounds where any string
should be considered to be "higher" than the empty string.

This PR changes "Automata#makeBinaryInterval" so that for an empty string lower
bound and an open upper bound, any String should match the query regardless or
the includeLower flag.

> TermRangeQuery with empty string lower bound edge case
> ------------------------------------------------------
>
>                 Key: LUCENE-9578
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9578
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/search
>    Affects Versions: trunk, 8.6.3
>            Reporter: Christoph Büscher
>            Priority: Minor
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> Currently a TermRangeQuery with the empty String ("") as lower bound and 
> includeLower=false leads internally constructs an Automaton that doesn't 
> match anything. This is unexpected expecially for open upper bounds where any 
> string should be considered to be "higher" than the empty string. 
> I think "Automata#makeBinaryInterval" should be changed so that for an empty 
> string lower bound and an open upper bound, any String should match the query 
> regardless or the includeLower flag.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to