[ 
https://issues.apache.org/jira/browse/SOLR-11764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Smiley updated SOLR-11764:
--------------------------------
    Component/s: highlighter

I suspect that this isn't going to work because the field in question needs to 
be "stored" and I recall that's not possible with a PreAnalyzedField?  Thus 
SOLR-1105 would fix this.

> preanalyzed field with highlight option throws exception
> --------------------------------------------------------
>
>                 Key: SOLR-11764
>                 URL: https://issues.apache.org/jira/browse/SOLR-11764
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: highlighter
>    Affects Versions: 6.4
>            Reporter: Selvam Raman
>
> org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: 
> Error from server at http://localhost:8983/solr/Metadata2: 
> org.apache.solr.client.solrj.SolrServerException:
> No live SolrServers available to handle this 
> request:[/solr/Metadata2_shard1_replica1,
>   solr/Metadata2_shard2_replica2, 
>   solr/Metadata2_shard1_replica2]
> When i look at the solr logs i find the below exception
> Caused by: java.io.IOException: Invalid JSON type java.lang.String, expected 
> Map
>       at 
> org.apache.solr.schema.JsonPreAnalyzedParser.parse(JsonPreAnalyzedParser.java:86)
>       at 
> org.apache.solr.schema.PreAnalyzedField$PreAnalyzedTokenizer.decodeInput(PreAnalyzedField.java:345)
>       at 
> org.apache.solr.schema.PreAnalyzedField$PreAnalyzedTokenizer.access$000(PreAnalyzedField.java:280)
>       at 
> org.apache.solr.schema.PreAnalyzedField$PreAnalyzedAnalyzer$1.setReader(PreAnalyzedField.java:375)
>       at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:202)
>       at 
> org.apache.lucene.search.uhighlight.AnalysisOffsetStrategy.tokenStream(AnalysisOffsetStrategy.java:58)
>       at 
> org.apache.lucene.search.uhighlight.MemoryIndexOffsetStrategy.getOffsetsEnums(MemoryIndexOffsetStrategy.java:106)
>       ... 37 more
>  I am setting up lot of fields (fq, score, highlight,etc) then put it into 
> solrquery.
> "we are using preanalyzed field and that causing the problem. 
> The actual problem is preanalyzed with highlight option. if i disable 
> highlight option it works fine."



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to