lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudsport s <sudssf2...@gmail.com>
Subject The Streaming API (Solrj.io) : id must have DocValues?
Date Sun, 24 Apr 2016 16:55:59 GMT
I was trying to use Streaming for reading basic tuple stream. I am using
sort by id asc ,
I am getting following exception

I am using export search handler as per
https://cwiki.apache.org/confluence/display/solr/Exporting+Result+Sets

null:java.io.IOException: id must have DocValues to use this feature.
	at org.apache.solr.response.SortingResponseWriter.getFieldWriters(SortingResponseWriter.java:241)
	at org.apache.solr.response.SortingResponseWriter.write(SortingResponseWriter.java:120)
	at org.apache.solr.response.QueryResponseWriterUtil.writeQueryResponse(QueryResponseWriterUtil.java:53)
	at org.apache.solr.servlet.HttpSolrCall.writeResponse(HttpSolrCall.java:742)
	at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:471)
	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:214)
	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:179)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(


does it make sense to enable docValues for unique field? How expensive is it?


if I have existing collection can I update schema and optimize
collection to get docvalues enabled for id?


--

Thanks

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message