This runs perfectly when entered in a browser but through the RESTful client the error below is thrown.
java.lang.IllegalStateException: Illegal character """ at position 6 is not allowed as a start of a name in a path template " -d '{"query":{...
at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134)
at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214)
at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:59)
Thank you for trying to help me. Changing " to " doesn't solve the problem. But I bet the problem is in the way the URL is constructed for Jersey. I'm still searching for the right forum to ask this question. No single forum seems to be the best to post this question.
I continued fiddling with the URL then found this format works http://localhost:nnnn//drawings/_search?xyz:1049279250
That's good but not sure how I can construct a complex query like that. Still seems to be a lot to learn.
I also tried enhancing the query by adding sort orders. This URL worked but not sure how Elasticsearch handles the query construct: http://localhost:nnnn/index/drawings/_search?pretty& visitorHashCode:1049279250& sort:dateLastEdited& order:desc& missing:_last& dateCreated:order:desc& missing:_last
The above query works but I'm not sure how Elasticsearch handles the sort construct.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.