You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2011/09/24 22:38:26 UTC
[jira] [Created] (SOLR-2792) Allow case insensitive Hunspell
stemming
Allow case insensitive Hunspell stemming
----------------------------------------
Key: SOLR-2792
URL: https://issues.apache.org/jira/browse/SOLR-2792
Project: Solr
Issue Type: Improvement
Components: Schema and Analysis
Affects Versions: 3.5, 4.0
Reporter: Jan Høydahl
Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Jan Høydahl (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Høydahl updated SOLR-2792:
------------------------------
Fix Version/s: 4.0
3.5
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Fix For: 3.5, 4.0
>
> Attachments: SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Jan Høydahl (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Høydahl updated SOLR-2792:
------------------------------
Attachment: SOLR-2792.patch
Ok, makes sense. New patch which removes ignoreCaseLocale, improves javadoc, and fixes a test bug for affix file.
I wonder why CharArrayMap#equals did only lowercase text1 and not text2 in the compare. Does my fix look right?
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Attachments: SOLR-2792.patch, SOLR-2792.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116494#comment-13116494 ]
Robert Muir commented on SOLR-2792:
-----------------------------------
{quote}
Does my fix look right?
{quote}
No, the entries in the map are already lowercased (this happens on add)
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Attachments: SOLR-2792.patch, SOLR-2792.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116979#comment-13116979 ]
Robert Muir commented on SOLR-2792:
-----------------------------------
looks batter: a couple questions:
* in the part reading the dictionary, we should avoid the String.toLowerCase() without any locale here, at least use String.toLowerCase(Locale.ENGLISH) for consistency?
* shouldn't we case fold the affixes too? however, i'm guessing most of these are already in lowercase.
Also, its been a while since I looked at the code, but are we "merging" dictionary entries here (I think we should in this lower-casing mode?)
For example:
foo/A
Foo/B
I think we want to combine flags to create foo/AB ? Maybe we are doing this already though
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Attachments: SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117160#comment-13117160 ]
Robert Muir commented on SOLR-2792:
-----------------------------------
{quote}
So if either input word or affixes are not lower-case they will both be. We could add a test for it to make sure..
{quote}
Yeah, I'm just thinking we shouldn't rely upon the dictionary to have lower-case affixes.
{quote}
No, we are not, meaning, I guess, that Foo/B would overwrite foo/A in your example? Would you like to take a stab at the merging code?
{quote}
Ok, ill give it a try. I think its a good test to have anyway, i at least want to know what happens here :)
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Attachments: SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Uwe Schindler (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117089#comment-13117089 ]
Uwe Schindler commented on SOLR-2792:
-------------------------------------
Locale.ENGLISH is the only possible solution, because this one is identical (or nearest) to LowerCaseFilter. If you use another locale, the lowercasing would be incompatible to LowerCaseFilter used in the Analyzer, so it will fail for some special locales (like Turkish).
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Attachments: SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Assigned] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Jan Høydahl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Høydahl reassigned SOLR-2792:
---------------------------------
Assignee: Jan Høydahl
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Robert Muir (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir updated SOLR-2792:
------------------------------
Attachment: SOLR-2792.patch
guess i was crazy about the merging thing: i added tests for this and it works already as we want... oh well at least we have a test for it :)
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Attachments: SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Jan Høydahl (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121463#comment-13121463 ]
Jan Høydahl commented on SOLR-2792:
-----------------------------------
Robert, do you have more changes you want in before commit?
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Attachments: SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121468#comment-13121468 ]
Robert Muir commented on SOLR-2792:
-----------------------------------
+1 to commit
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Attachments: SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115423#comment-13115423 ]
Robert Muir commented on SOLR-2792:
-----------------------------------
I dont think ignoreCaseLocale is a good idea: it doesn't make sense, for the same reason that String.equalsIgnoreCase does not take locale.
String.toLowerCase is only for creating a lowercase presentation to the user, not case-insensitive matching.
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Attachments: SOLR-2792.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Jan Høydahl (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117084#comment-13117084 ]
Jan Høydahl commented on SOLR-2792:
-----------------------------------
Robert,
bq. in the part reading the dictionary, we should avoid the String.toLowerCase() without any locale here, at least use String.toLowerCase(Locale.ENGLISH) for consistency?
Yep, for consistency it's probably better to lowercase using an explicit locale than system default. I tested with my name, and Locale.ENGLISH converts Ø->ø, so I'm happy :)
bq. shouldn't we case fold the affixes too? however, i'm guessing most of these are already in lowercase.
The way it works now is that we case fold the input word *after* affixes are applied, before comparing with dictionary words. So if either input word or affixes are not lower-case they will both be. We could add a test for it to make sure..
bq. are we "merging" dictionary entries here (I think we should in this lower-casing mode?)
No, we are not, meaning, I guess, that Foo/B would overwrite foo/A in your example? Would you like to take a stab at the merging code?
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Attachments: SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Jan Høydahl (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Høydahl updated SOLR-2792:
------------------------------
Attachment: SOLR-2792.patch
SOLR-2792_3x.patch
Attaching final patch files
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Fix For: 3.5, 4.0
>
> Attachments: SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792_3x.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Resolved] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Jan Høydahl (Resolved JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Høydahl resolved SOLR-2792.
-------------------------------
Resolution: Fixed
Fixed for 3.x and trunk. Wiki page updated.
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Fix For: 3.5, 4.0
>
> Attachments: SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792_3x.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Jan Høydahl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Høydahl updated SOLR-2792:
------------------------------
Attachment: SOLR-2792.patch
First attempt on patch. It works, and I added an -i option to the command-line version of HunspellStemmer so that we can test ignoreCase easily.
I also added an optional ignoreCaseLocale to specify the locale for lowercasing, but this only works for String#toLowerCase, while the lowercasing in CharArrayMap#equals uses plain Character#toLowerCase.
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Attachments: SOLR-2792.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Jan Høydahl (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Høydahl updated SOLR-2792:
------------------------------
Attachment: SOLR-2792.patch
New patch which does not modify CharArrayMap. Also, it lowercases the char[] using a for-loop with Character.toLowerCase instead of the round-trip via a String object.
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Attachments: SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Jan Høydahl (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Høydahl updated SOLR-2792:
------------------------------
Attachment: SOLR-2792.patch
Fixed toLowerCase(Locale.ENGLISH).
Getting close to committing?
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Attachments: SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch, SOLR-2792.patch
>
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (SOLR-2792) Allow case insensitive Hunspell
stemming
Posted by "Jan Høydahl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13114067#comment-13114067 ]
Jan Høydahl commented on SOLR-2792:
-----------------------------------
Propose an option ignoreCase="true" for HunspellStemFilterFactory, which effectively lowercases everything before matching.
> Allow case insensitive Hunspell stemming
> ----------------------------------------
>
> Key: SOLR-2792
> URL: https://issues.apache.org/jira/browse/SOLR-2792
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 3.5, 4.0
> Reporter: Jan Høydahl
>
> Same as http://code.google.com/p/lucene-hunspell/issues/detail?id=3
> Hunspell dictionaries are by nature case sensitive. The Hunspell stemmer thus needs an option to allow case insensitive matching of the dictionaries.
> Imagine a query for "microsofts". It will never be stemmed to the dictionary word "Microsoft" because of the case difference. This problem cannot be fixed by putting LowercaseFilter before Hunspell.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org