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 "Erik Hatcher (JIRA)" <ji...@apache.org> on 2009/07/31 16:30:14 UTC
[jira] Created: (SOLR-1320) CapitalizationFilterFactory's
minWordLength not working properly
CapitalizationFilterFactory's minWordLength not working properly
----------------------------------------------------------------
Key: SOLR-1320
URL: https://issues.apache.org/jira/browse/SOLR-1320
Project: Solr
Issue Type: Bug
Components: Analysis
Affects Versions: 1.4
Reporter: Erik Hatcher
To see the problem first hand, add to schema.xml:
<fieldType name="cap" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.CapitalizationFilterFactory"
minWordLength="2"/>
</analyzer>
</fieldType>
Then in analysis.jsp, analyze "a or and". All terms get capitalized.
This has to do with the length calculation being wrong in CapitalizationFilter#next.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (SOLR-1320) CapitalizationFilterFactory's
minWordLength not working properly
Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erik Hatcher reassigned SOLR-1320:
----------------------------------
Assignee: Erik Hatcher
> CapitalizationFilterFactory's minWordLength not working properly
> ----------------------------------------------------------------
>
> Key: SOLR-1320
> URL: https://issues.apache.org/jira/browse/SOLR-1320
> Project: Solr
> Issue Type: Bug
> Components: Analysis
> Affects Versions: 1.4
> Reporter: Erik Hatcher
> Assignee: Erik Hatcher
>
> To see the problem first hand, add to schema.xml:
> {code:xml}
> <fieldType name="cap" class="solr.TextField" positionIncrementGap="100">
> <analyzer>
> <tokenizer class="solr.StandardTokenizerFactory"/>
> <filter class="solr.CapitalizationFilterFactory"
> minWordLength="2"/>
> </analyzer>
> </fieldType>
> {code}
> Then in analysis.jsp, analyze "a or and". All terms get capitalized.
> This has to do with the length calculation being wrong in CapitalizationFilter#next.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-1320) CapitalizationFilterFactory's
minWordLength not working properly
Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erik Hatcher updated SOLR-1320:
-------------------------------
Description:
To see the problem first hand, add to schema.xml:
{code:xml}
<fieldType name="cap" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.CapitalizationFilterFactory"
minWordLength="2"/>
</analyzer>
</fieldType>
{code}
Then in analysis.jsp, analyze "a or and". All terms get capitalized.
This has to do with the length calculation being wrong in CapitalizationFilter#next.
was:
To see the problem first hand, add to schema.xml:
<fieldType name="cap" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.CapitalizationFilterFactory"
minWordLength="2"/>
</analyzer>
</fieldType>
Then in analysis.jsp, analyze "a or and". All terms get capitalized.
This has to do with the length calculation being wrong in CapitalizationFilter#next.
> CapitalizationFilterFactory's minWordLength not working properly
> ----------------------------------------------------------------
>
> Key: SOLR-1320
> URL: https://issues.apache.org/jira/browse/SOLR-1320
> Project: Solr
> Issue Type: Bug
> Components: Analysis
> Affects Versions: 1.4
> Reporter: Erik Hatcher
>
> To see the problem first hand, add to schema.xml:
> {code:xml}
> <fieldType name="cap" class="solr.TextField" positionIncrementGap="100">
> <analyzer>
> <tokenizer class="solr.StandardTokenizerFactory"/>
> <filter class="solr.CapitalizationFilterFactory"
> minWordLength="2"/>
> </analyzer>
> </fieldType>
> {code}
> Then in analysis.jsp, analyze "a or and". All terms get capitalized.
> This has to do with the length calculation being wrong in CapitalizationFilter#next.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-1320) CapitalizationFilterFactory's
minWordLength not working properly
Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753197#action_12753197 ]
Robert Muir commented on SOLR-1320:
-----------------------------------
i think this is corrected in SOLR-1342... (somehow i did not see this issue)
> CapitalizationFilterFactory's minWordLength not working properly
> ----------------------------------------------------------------
>
> Key: SOLR-1320
> URL: https://issues.apache.org/jira/browse/SOLR-1320
> Project: Solr
> Issue Type: Bug
> Components: Analysis
> Affects Versions: 1.4
> Reporter: Erik Hatcher
> Assignee: Erik Hatcher
> Fix For: 1.4
>
> Attachments: SOLR-1320.patch
>
>
> To see the problem first hand, add to schema.xml:
> {code:xml}
> <fieldType name="cap" class="solr.TextField" positionIncrementGap="100">
> <analyzer>
> <tokenizer class="solr.StandardTokenizerFactory"/>
> <filter class="solr.CapitalizationFilterFactory"
> minWordLength="2"/>
> </analyzer>
> </fieldType>
> {code}
> Then in analysis.jsp, analyze "a or and". All terms get capitalized.
> This has to do with the length calculation being wrong in CapitalizationFilter#next.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-1320) CapitalizationFilterFactory's
minWordLength not working properly
Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man updated SOLR-1320:
---------------------------
Fix Version/s: 1.4
issue has patch and affects 1.4 ... setting fix for 1.4
> CapitalizationFilterFactory's minWordLength not working properly
> ----------------------------------------------------------------
>
> Key: SOLR-1320
> URL: https://issues.apache.org/jira/browse/SOLR-1320
> Project: Solr
> Issue Type: Bug
> Components: Analysis
> Affects Versions: 1.4
> Reporter: Erik Hatcher
> Assignee: Erik Hatcher
> Fix For: 1.4
>
> Attachments: SOLR-1320.patch
>
>
> To see the problem first hand, add to schema.xml:
> {code:xml}
> <fieldType name="cap" class="solr.TextField" positionIncrementGap="100">
> <analyzer>
> <tokenizer class="solr.StandardTokenizerFactory"/>
> <filter class="solr.CapitalizationFilterFactory"
> minWordLength="2"/>
> </analyzer>
> </fieldType>
> {code}
> Then in analysis.jsp, analyze "a or and". All terms get capitalized.
> This has to do with the length calculation being wrong in CapitalizationFilter#next.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SOLR-1320) CapitalizationFilterFactory's
minWordLength not working properly
Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Grant Ingersoll resolved SOLR-1320.
-----------------------------------
Resolution: Duplicate
Fixed in SOLR-1342.
> CapitalizationFilterFactory's minWordLength not working properly
> ----------------------------------------------------------------
>
> Key: SOLR-1320
> URL: https://issues.apache.org/jira/browse/SOLR-1320
> Project: Solr
> Issue Type: Bug
> Components: Analysis
> Affects Versions: 1.4
> Reporter: Erik Hatcher
> Assignee: Erik Hatcher
> Fix For: 1.4
>
> Attachments: SOLR-1320.patch
>
>
> To see the problem first hand, add to schema.xml:
> {code:xml}
> <fieldType name="cap" class="solr.TextField" positionIncrementGap="100">
> <analyzer>
> <tokenizer class="solr.StandardTokenizerFactory"/>
> <filter class="solr.CapitalizationFilterFactory"
> minWordLength="2"/>
> </analyzer>
> </fieldType>
> {code}
> Then in analysis.jsp, analyze "a or and". All terms get capitalized.
> This has to do with the length calculation being wrong in CapitalizationFilter#next.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-1320) CapitalizationFilterFactory's
minWordLength not working properly
Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12737649#action_12737649 ]
Ryan McKinley commented on SOLR-1320:
-------------------------------------
dooh. thanks erik!
> CapitalizationFilterFactory's minWordLength not working properly
> ----------------------------------------------------------------
>
> Key: SOLR-1320
> URL: https://issues.apache.org/jira/browse/SOLR-1320
> Project: Solr
> Issue Type: Bug
> Components: Analysis
> Affects Versions: 1.4
> Reporter: Erik Hatcher
> Assignee: Erik Hatcher
>
> To see the problem first hand, add to schema.xml:
> {code:xml}
> <fieldType name="cap" class="solr.TextField" positionIncrementGap="100">
> <analyzer>
> <tokenizer class="solr.StandardTokenizerFactory"/>
> <filter class="solr.CapitalizationFilterFactory"
> minWordLength="2"/>
> </analyzer>
> </fieldType>
> {code}
> Then in analysis.jsp, analyze "a or and". All terms get capitalized.
> This has to do with the length calculation being wrong in CapitalizationFilter#next.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-1320) CapitalizationFilterFactory's
minWordLength not working properly
Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erik Hatcher updated SOLR-1320:
-------------------------------
Attachment: SOLR-1320.patch
This patch fixes the case mentioned. I'll commit in a day or so unless someone sees something wrong with it. Ryan?
> CapitalizationFilterFactory's minWordLength not working properly
> ----------------------------------------------------------------
>
> Key: SOLR-1320
> URL: https://issues.apache.org/jira/browse/SOLR-1320
> Project: Solr
> Issue Type: Bug
> Components: Analysis
> Affects Versions: 1.4
> Reporter: Erik Hatcher
> Assignee: Erik Hatcher
> Attachments: SOLR-1320.patch
>
>
> To see the problem first hand, add to schema.xml:
> {code:xml}
> <fieldType name="cap" class="solr.TextField" positionIncrementGap="100">
> <analyzer>
> <tokenizer class="solr.StandardTokenizerFactory"/>
> <filter class="solr.CapitalizationFilterFactory"
> minWordLength="2"/>
> </analyzer>
> </fieldType>
> {code}
> Then in analysis.jsp, analyze "a or and". All terms get capitalized.
> This has to do with the length calculation being wrong in CapitalizationFilter#next.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.