[
https://issues.apache.org/jira/browse/SOLR-7978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14727377#comment-14727377
]
Uwe Schindler commented on SOLR-7978:
-------------------------------------
{code:javascript}
analyzer.tokenStream("subject", new
java.io.StringReader(doc.getFieldValue("subject")))
{code}
Since long time, Analyzer also takes {{String}}, so no need for
{{StringReader}}. This is also faster (doesn't matter in JS, of course):
[http://lucene.apache.org/core/5_3_0/core/org/apache/lucene/analysis/Analyzer.html#tokenStream(java.lang.String,%20java.lang.String)]
> Really fix the example/files update-script Java version issues
> --------------------------------------------------------------
>
> Key: SOLR-7978
> URL: https://issues.apache.org/jira/browse/SOLR-7978
> Project: Solr
> Issue Type: Bug
> Components: examples
> Affects Versions: 5.3
> Reporter: Erik Hatcher
> Assignee: Erik Hatcher
> Fix For: 5.4
>
> Attachments: SOLR-7978.patch
>
>
> SOLR-7652 addressed this issue by having a Java7 version of the script for 5x
> and a Java8 version on trunk. 5x on Java8 is broken though. I wager that
> there's got to be some incantations that can make the same script work on
> Java 7 and 8.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]