[
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
bq. 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.
Hmm, I just retried removing the package from the path for resource that it's
in the same package as the test class, and it now works (why did I think it
didn't? I thought I tried that...). Modified patch attached.
So I guess {{getClass().getResourceAsStream()}} makes sense: it only searches
the same package as the class unless you prepend a {{"/"}}. Should I leave in
the {{"/"}}-prepending fallback?
> 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, 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]