You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Selvam Raman (JIRA)" <ji...@apache.org> on 2017/12/15 10:42:00 UTC

[jira] [Created] (SOLR-11764) preanalyzed field with highlight option throws exception

Selvam Raman created SOLR-11764:
-----------------------------------

             Summary: 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)
    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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org