[ https://issues.apache.org/jira/browse/SOLR-10323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15936915#comment-15936915 ]
Amrit Sarkar edited comment on SOLR-10323 at 3/22/17 6:51 PM: -------------------------------------------------------------- SOLR-10323.patch uploaded which will ignore ":" and "(" throughout the original term. This fixes our problem but an overhead comes around as the SpellingQueryConverter will break if the original term is like: foo:bar(random) ===> [bar, random] foo:bar:bar ===> [bar, bar], in current code, this happens already and there is no way to escape it like: foo:bar\(random) foo:bar\:bar But this will work perfectly with other special characters like underscores, highen and alphanumerics. I will add relevant test cases very soon if we have a +1 with the stated compromise. was (Author: sarkaramr...@gmail.com): SOLR-10323.patch uploaded which will ignore ":" and "(" throughout the original term. This fixes our problem but an overhead comes around as the SpellingQueryConverter will break if the original term is like: foo:bar*(*random) ===> [bar, random] foo:bar*:*bar ===> [bar, bar], in current code, this happens already and there is no way to escape it like: foo:bar*\(*random) foo:bar*\:*bar But this will work perfectly with other special characters like underscores, highen and alphanumerics. I will add relevant test cases very soon if we have a +1 with the stated compromise. > SpellingQueryConverter does not remove ":" char when using fielded queries > -------------------------------------------------------------------------- > > Key: SOLR-10323 > URL: https://issues.apache.org/jira/browse/SOLR-10323 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: spellchecker > Affects Versions: 6.2.1 > Reporter: Michael Pellegrini > Attachments: SOLR-10323.patch > > > If you pass a fielded query to {{SpellingQueryConverter.convert}}, it returns > a token that is prefixed with a ":" char. > Example: The query "foo:bar" is converted to ":bar" > This bug seems to have been introduced by the fix for SOLR-2556. Before this > patch, {{SpellingQueryConverter.convert}} returned tokens without the leading > colon char. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org