# Retrieve specific fields

**URL:** https://discuss.elastic.co/t/retrieve-specific-fields/16934
**Category:** Elasticsearch
**Created:** [April 10, 2014, 7:27pm UTC](https://discuss.elastic.co/t/retrieve-specific-fields/16934 "2014-04-10T19:27:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Mohit\_Anchlia](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mohit\_Anchlia](https://discuss.elastic.co/u/Mohit_Anchlia)
#### Post date: [April 10, 2014, 7:27pm UTC](https://discuss.elastic.co/t/retrieve-specific-fields/16934/1 "2014-04-10T19:27:36Z")

</div>

Is there a way to search and retrieve only specific fields using simple  
query string?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoPZ0mdu8EJUtjOazQ34uVFhnmk7g9Yf6OGYM2az9mpBA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoPZ0mdu8EJUtjOazQ34uVFhnmk7g9Yf6OGYM2az9mpBA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![luizgpsantos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luizgpsantos/32/608_2.png) [@luizgpsantos](https://discuss.elastic.co/u/luizgpsantos)
#### Post date: [April 10, 2014, 10:04pm UTC](https://discuss.elastic.co/t/retrieve-specific-fields/16934/2 "2014-04-10T22:04:33Z")

</div>

Hi Mohit,

It is possible, as shown here:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On Thu, Apr 10, 2014 at 4:27 PM, Mohit Anchlia [mohitanchlia@gmail.com](mailto:mohitanchlia@gmail.com)wrote:

> Is there a way to search and retrieve only specific fields using simple  
> query string?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoPZ0mdu8EJUtjOazQ34uVFhnmk7g9Yf6OGYM2az9mpBA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoPZ0mdu8EJUtjOazQ34uVFhnmk7g9Yf6OGYM2az9mpBA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoPZ0mdu8EJUtjOazQ34uVFhnmk7g9Yf6OGYM2az9mpBA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoPZ0mdu8EJUtjOazQ34uVFhnmk7g9Yf6OGYM2az9mpBA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Luiz Guilherme P. Santos

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAMdL%3DZHUqCnNMKc5wN6sysUzy%2BY%2BB79v6FYd6GUcew-87k8kPQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAMdL%3DZHUqCnNMKc5wN6sysUzy%2BY%2BB79v6FYd6GUcew-87k8kPQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Mohit\_Anchlia](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mohit\_Anchlia](https://discuss.elastic.co/u/Mohit_Anchlia)
#### Post date: [April 10, 2014, 10:46pm UTC](https://discuss.elastic.co/t/retrieve-specific-fields/16934/3 "2014-04-10T22:46:00Z")

</div>

I should be more explicit, is it possible when using "q=" type of query  
string? For eg: [http://host/\_search?q="field:hello"](http://host/_search?q=%22field:hello%22)

Is it possible to add a query string parameter to achieve that?

On Thu, Apr 10, 2014 at 3:04 PM, Luiz Guilherme Pais dos Santos \<  
[luizgpsantos@gmail.com](mailto:luizgpsantos@gmail.com)\> wrote:

> Hi Mohit,
> 
> It is possible, as shown here:
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-fields.html#search-request-fields)
> 
> On Thu, Apr 10, 2014 at 4:27 PM, Mohit Anchlia [mohitanchlia@gmail.com](mailto:mohitanchlia@gmail.com)wrote:
> 
> > Is there a way to search and retrieve only specific fields using simple  
> > query string?
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoPZ0mdu8EJUtjOazQ34uVFhnmk7g9Yf6OGYM2az9mpBA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoPZ0mdu8EJUtjOazQ34uVFhnmk7g9Yf6OGYM2az9mpBA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoPZ0mdu8EJUtjOazQ34uVFhnmk7g9Yf6OGYM2az9mpBA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoPZ0mdu8EJUtjOazQ34uVFhnmk7g9Yf6OGYM2az9mpBA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Luiz Guilherme P. Santos
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAMdL%3DZHUqCnNMKc5wN6sysUzy%2BY%2BB79v6FYd6GUcew-87k8kPQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAMdL%3DZHUqCnNMKc5wN6sysUzy%2BY%2BB79v6FYd6GUcew-87k8kPQ%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAMdL%3DZHUqCnNMKc5wN6sysUzy%2BY%2BB79v6FYd6GUcew-87k8kPQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAMdL%3DZHUqCnNMKc5wN6sysUzy%2BY%2BB79v6FYd6GUcew-87k8kPQ%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOT3TWo2VWCMRaSsuQXAe4cQDu90vsGSg9%3D8x8d7CrWROH8k-A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOT3TWo2VWCMRaSsuQXAe4cQDu90vsGSg9%3D8x8d7CrWROH8k-A%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![luizgpsantos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luizgpsantos/32/608_2.png) [@luizgpsantos](https://discuss.elastic.co/u/luizgpsantos)
#### Post date: [April 11, 2014, 2:05am UTC](https://discuss.elastic.co/t/retrieve-specific-fields/16934/4 "2014-04-11T02:05:51Z")

</div>

curl -XGET "[http://localhost:9200/\_search?fields=field1](http://localhost:9200/_search?fields=field1)"  
curl -XGET "[http://localhost:9200/\_search?fields=field1,field2](http://localhost:9200/_search?fields=field1,field2)"

On Thu, Apr 10, 2014 at 7:46 PM, Mohit Anchlia [mohitanchlia@gmail.com](mailto:mohitanchlia@gmail.com)wrote:

> I should be more explicit, is it possible when using "q=" type of query  
> string? For eg: [http://host/\_search?q="field:hello"](http://host/_search?q=%22field:hello%22)
> 
> Is it possible to add a query string parameter to achieve that?
> 
> On Thu, Apr 10, 2014 at 3:04 PM, Luiz Guilherme Pais dos Santos \<  
> [luizgpsantos@gmail.com](mailto:luizgpsantos@gmail.com)\> wrote:
> 
> > Hi Mohit,
> > 
> > It is possible, as shown here:
> > 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-fields.html#search-request-fields)
> > 
> > On Thu, Apr 10, 2014 at 4:27 PM, Mohit Anchlia [mohitanchlia@gmail.com](mailto:mohitanchlia@gmail.com)wrote:
> > 
> > > Is there a way to search and retrieve only specific fields using simple  
> > > query string?
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoPZ0mdu8EJUtjOazQ34uVFhnmk7g9Yf6OGYM2az9mpBA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoPZ0mdu8EJUtjOazQ34uVFhnmk7g9Yf6OGYM2az9mpBA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoPZ0mdu8EJUtjOazQ34uVFhnmk7g9Yf6OGYM2az9mpBA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoPZ0mdu8EJUtjOazQ34uVFhnmk7g9Yf6OGYM2az9mpBA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > Luiz Guilherme P. Santos
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAMdL%3DZHUqCnNMKc5wN6sysUzy%2BY%2BB79v6FYd6GUcew-87k8kPQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAMdL%3DZHUqCnNMKc5wN6sysUzy%2BY%2BB79v6FYd6GUcew-87k8kPQ%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAMdL%3DZHUqCnNMKc5wN6sysUzy%2BY%2BB79v6FYd6GUcew-87k8kPQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAMdL%3DZHUqCnNMKc5wN6sysUzy%2BY%2BB79v6FYd6GUcew-87k8kPQ%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAOT3TWo2VWCMRaSsuQXAe4cQDu90vsGSg9%3D8x8d7CrWROH8k-A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOT3TWo2VWCMRaSsuQXAe4cQDu90vsGSg9%3D8x8d7CrWROH8k-A%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOT3TWo2VWCMRaSsuQXAe4cQDu90vsGSg9%3D8x8d7CrWROH8k-A%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOT3TWo2VWCMRaSsuQXAe4cQDu90vsGSg9%3D8x8d7CrWROH8k-A%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Luiz Guilherme P. Santos

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAMdL%3DZH9D6H74%2BimMucnyP2PUYKh2MMY0LbcbFJyJ4qStoji9Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAMdL%3DZH9D6H74%2BimMucnyP2PUYKh2MMY0LbcbFJyJ4qStoji9Q%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [July 6, 2017, 1:36am UTC](https://discuss.elastic.co/t/retrieve-specific-fields/16934/5 "2017-07-06T01:36:38Z")

</div>


