# Elasticsearch 1.7.3 & query\_string

**URL:** <https://discuss.elastic.co/t/elasticsearch-1-7-3-query-string/111658>\
**Category:** Elasticsearch\
**Created:** [December 13, 2017, 10:51pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-3-query-string/111658 "2017-12-13T22:51:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Velusamy\_Velu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/velusamy_velu/32/72364_2.png) [@Velusamy\_Velu](https://discuss.elastic.co/u/Velusamy_Velu)\
**Post date:** [December 13, 2017, 10:51pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-3-query-string/111658/1 "2017-12-13T22:51:09Z")

</div>

My client is still using ES 1.7.3. I ran the following query against it and couldn't get the expected result. ES is running on a Linux Mint 18.3 cinnamon 64 bit version.

```
curl -XPOST 'localhost:9200/_search?pretty' -d '
{  
   "query_string":{  
      "query":"design"
   }
}'

```

instead the following errors was thrown.

```
{
  "error" : "SearchPhaseExecutionException[Failed to execute phase [query_fetch], all shards failed; shardFailures {[vZBMeFPPTAWvPKpCJyns_Q][cinch][0]: SearchParseException[[cinch][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\n\"query_string\":{\n\"query\":\"design\"\n}\n}]]]; nested: SearchParseException[[cinch][0]: from[-1],size[-1]: Parse Failure [No parser for element [query_string]]]; }]",
  "status" : 400
}

```

Any idea what's wrong with the above query?

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 14, 2017, 6:31am UTC](https://discuss.elastic.co/t/elasticsearch-1-7-3-query-string/111658/2 "2017-12-14T06:31:03Z")

</div>

You are missing the query field before query\_string.

BTW this version is too old.

---

<div class="post-metadata">

**Author:** ![Velusamy\_Velu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/velusamy_velu/32/72364_2.png) [@Velusamy\_Velu](https://discuss.elastic.co/u/Velusamy_Velu)\
**Post date:** [December 14, 2017, 3:09pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-3-query-string/111658/3 "2017-12-14T15:09:40Z")

</div>

David:

Yes, that did the magic; thank you.

You said "_BTW this version is too old._", I agree. I always try to work with the latest ES. Currently my projects are all on 6.1. I can't blame this on my client though. My client's service provider is not upgrading to a higher version of ES.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 14, 2017, 3:24pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-3-query-string/111658/4 "2017-12-14T15:24:28Z")

</div>

Tell your client that he should consider [cloud.elastic.co](http://cloud.elastic.co)! 😉

---

<div class="post-metadata">

**Author:** ![Velusamy\_Velu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/velusamy_velu/32/72364_2.png) [@Velusamy\_Velu](https://discuss.elastic.co/u/Velusamy_Velu)\
**Post date:** [December 14, 2017, 3:40pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-3-query-string/111658/5 "2017-12-14T15:40:45Z")

</div>

I'm sure you could take this as a business opportunity. dotCMS is an open source content management system that uses ES to index the content. My client is using dotCMS's enterprise service for their content management, indexing, and searching. You may like to approach dotCMS with a proposal. I have already made some suggestions on that but they are deeply buried in their own day to day operations.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 11, 2018, 3:40pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-3-query-string/111658/6 "2018-01-11T15:40:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
