lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-13080) TermsQParserPlugin automaton method fails to sort input
Date Tue, 18 Dec 2018 19:08:00 GMT

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

David Smiley commented on SOLR-13080:
-------------------------------------

patch/PR with failing test is welcome :)

> TermsQParserPlugin automaton method fails to sort input
> -------------------------------------------------------
>
>                 Key: SOLR-13080
>                 URL: https://issues.apache.org/jira/browse/SOLR-13080
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: query parsers
>    Affects Versions: 7.5
>            Reporter: Daniel Lowe
>            Priority: Minor
>
> The contract for Automata.makeStringUnion is that the input is sorted. As BytesRef implements
Comparable. The simplest fix would probably to make
> Arrays.sort(bytesRefs);
> The first line of automaton's makeFilter method in TermsQParserPlugin.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message