You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2015/09/02 15:56:47 UTC
[jira] [Commented] (SOLR-7978) Really fix the example/files
update-script Java version issues
[ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org