[
https://issues.apache.org/jira/browse/SOLR-10323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937787#comment-15937787
]
Amrit Sarkar commented on SOLR-10323:
-------------------------------------
changed the QUERY_REGEX:
{code}
(?:(?!(([A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u2001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\-.0-9\xb7\u0300-\u036f\u203f-\u2040]|\p{Cs}{2})+:|[\^.:(]\d+)))[^^.\s][\p{L}_\-0-9]+
{code}
{code}
.......:|[\^.:(]\d+)))........
{code}
> 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: [email protected]
For additional commands, e-mail: [email protected]