[
https://issues.apache.org/jira/browse/SOLR-4123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steven Rowe updated SOLR-4123:
------------------------------
Attachment: SOLR-4123.patch
Patch with more tests and example {{.rbbi}} files.
I changed the {{rulefiles="..."}} arg format to relax allowable resource names
& locations, e.g. {{rulefiles="Latn:<arbitrary resource path>, ..."}}.
I added some logic to {{ICUTokenizerFactory.parseRules()}} to retry when
{{ResourceLoader.loadResource()}} fails, after first prepending a {{"/"}} to
the resource path, because none of the test resources under
{{lucene/analysis/icu/src/test-files/}}, which is on the {{test.classpath}},
were found. I don't understand {{Object.getClass().getResourceAsStream()}},
which is delegated to by {{ResourceLoader.loadResource()}} - even resources in
the same package as the Object can't be found??? By contrast,
{{Object.getClass().getClassLoader().getResourceAsStream()}} succeeds in
finding resources without first prepending a {{"/"}}. The
{{ClasspathResourceLoader}} ctor that allows direct specification of the
{{ClassLoader}} separately from the {{Class}} has private access, though.
> ICUTokenizerFactory - per-script RBBI customization
> ---------------------------------------------------
>
> Key: SOLR-4123
> URL: https://issues.apache.org/jira/browse/SOLR-4123
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Affects Versions: 4.0
> Reporter: Shawn Heisey
> Fix For: 4.1, 5.0
>
> Attachments: SOLR-4123.patch, SOLR-4123.patch
>
>
> Initially this started out as an idea for a configuration knob on
> ICUTokenizer that would allow me to tell it not to tokenize on punctuation.
> Through IRC discussion on #lucene, it sorta ballooned. The committers had a
> long discussion about it that I don't really understand, so I'll be including
> it in the comments.
> I am a Solr user, so I would also need the ability to access the
> configuration from there, likely either in schema.xml or solrconfig.xml.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]