Varun Thacker created SOLR-12542:
------------------------------------
Summary: Trying to export on a non doc-values field gives no
response
Key: SOLR-12542
URL: https://issues.apache.org/jira/browse/SOLR-12542
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Reporter: Varun Thacker
Attachments: chrome.png
I wanted to see the current behaviour of the export writer when it came to
boolean fields and ran into this issue.
Start solr: ./bin/solr start -e cloud -noprompt
{code:java}
~/solr-7.4.0$ curl -v
"http://localhost:8983/solr/gettingstarted/export/?q=*:*&sort=a_b%20desc&fl=id"
* Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 8983 (#0)
> GET /solr/gettingstarted/export/?q=*:*&sort=a_b%20desc&fl=id HTTP/1.1
> Host: localhost:8983
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 500 Server Error
< Content-Type: application/octet-stream
< Content-Length: 0
<
* Connection #0 to host localhost left intact{code}
This basically comes back with no response, and unless you look at the server
logs can't tell what the error is. Chrome displays the attached screenshot
which is what confused me to start with.
>From the logs
{code:java}
ERROR - 2018-07-09 12:04:53.951; [c:gettingstarted s:shard2 r:core_node8
x:gettingstarted_shard2_replica_n6] org.apache.solr.servlet.HttpSolrCall;
null:java.io.IOException: a_b must have DocValues to use this feature.
at org.apache.solr.handler.ExportWriter.getSortDoc(ExportWriter.java:389)
at org.apache.solr.handler.ExportWriter.writeDocs(ExportWriter.java:231)
at org.apache.solr.handler.ExportWriter.lambda$null$1(ExportWriter.java:222)
at
org.apache.solr.response.JSONWriter.writeIterator(JSONResponseWriter.java:515)
at
org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:179)
at org.apache.solr.response.JSONWriter$2.put(JSONResponseWriter.java:551)
at
org.apache.solr.handler.ExportWriter.lambda$null$2(ExportWriter.java:222){code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]