You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Alan Woodward (Jira)" <ji...@apache.org> on 2022/02/04 12:21:00 UTC
[jira] [Commented] (LUCENE-10402) Intervals.prefix() handles multicharacter unicode incorrectly
[ https://issues.apache.org/jira/browse/LUCENE-10402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17487065#comment-17487065 ]
Alan Woodward commented on LUCENE-10402:
----------------------------------------
I opened a PR with a fix: https://github.com/apache/lucene/pull/646
> Intervals.prefix() handles multicharacter unicode incorrectly
> -------------------------------------------------------------
>
> Key: LUCENE-10402
> URL: https://issues.apache.org/jira/browse/LUCENE-10402
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Alan Woodward
> Priority: Major
>
> Intervals.prefix() takes its input and builds a CompiledAutomaton, before passing this on to a new MultiTermAutomatonIntervalsSource. However, while PrefixQuery.toAutomaton() builds a binary automaton, we don't tell CompiledAutomaton this and so it (incorrectly) does some unicode conversion on its input.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org