You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Geoffrey Young (JIRA)" <ji...@apache.org> on 2008/10/15 18:07:44 UTC
[jira] Created: (SOLR-809) synonyms are matched case-insensitive
but inserted as case-sensitive
synonyms are matched case-insensitive but inserted as case-sensitive
--------------------------------------------------------------------
Key: SOLR-809
URL: https://issues.apache.org/jira/browse/SOLR-809
Project: Solr
Issue Type: Bug
Reporter: Geoffrey Young
Priority: Minor
I had a synonyms file with this line
2, to, two, too, II
(that's a capital ii last in the list)
and an index with
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
in that order. a query for 'This II That' failed to match the same text in the index because the synonym filter appears to have expanded the (now) lowercase
this ii that
to
this 2 to two too II that
and then the (also) lowercased query failed to match.
so it seems that synonym expansion is matching tokens in a case-insensitive manner when it probably shouldn't. or it could dwim but re-add in the original token instead of the matched one, but that's a bit more roundabout.
I just made sure my entire synonyms file was lowercase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SOLR-809) synonyms are matched case-insensitive
but inserted as case-sensitive
Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man resolved SOLR-809.
---------------------------
Resolution: Cannot Reproduce
I'm resolving this as Cannot Reproduce because it doesn't seem like there is enough information to really have a sense of what's happening, and whether it's a bug or a misunderstanding on the users part about how SynonymFilterFactory works.
In particular, we don't know what the full analysis chain of either the index or query analyzers wre.
Geoffrey: I would suggest starting a thread about this on the solr-user list, describing in more detail what your configs look like and see if someone can help make sense of the behavior you are seeing. Then we can reopen if/when we identify that there really is a bug.
> synonyms are matched case-insensitive but inserted as case-sensitive
> --------------------------------------------------------------------
>
> Key: SOLR-809
> URL: https://issues.apache.org/jira/browse/SOLR-809
> Project: Solr
> Issue Type: Bug
> Reporter: Geoffrey Young
> Priority: Minor
>
> I had a synonyms file with this line
> 2, to, two, too, II
> (that's a capital ii last in the list)
> and an index with
> <filter class="solr.LowerCaseFilterFactory"/>
> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
> in that order. a query for 'This II That' failed to match the same text in the index because the synonym filter appears to have expanded the (now) lowercase
> this ii that
> to
> this 2 to two too II that
> and then the (also) lowercased query failed to match.
> so it seems that synonym expansion is matching tokens in a case-insensitive manner when it probably shouldn't. or it could dwim but re-add in the original token instead of the matched one, but that's a bit more roundabout.
> I just made sure my entire synonyms file was lowercase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.