I am trying to cast a query to my Elasticsearch cluster. When I use where with numeric fields, everything works correctly, but when I try to use it with text fields, problems appear.
You're passing the content of the query to curl with -d', so the next occurring ' (like those framing your literal) might interfere with the argument passing and not be transmitted as such to Elasticsearch. You might need to escape the inner simple quotes.
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.