# Searching Text through multiple fields for retrieval

**URL:** <https://discuss.elastic.co/t/searching-text-through-multiple-fields-for-retrieval/22299>\
**Category:** Elasticsearch\
**Created:** [February 20, 2015, 5:18pm UTC](https://discuss.elastic.co/t/searching-text-through-multiple-fields-for-retrieval/22299 "2015-02-20T17:18:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sagar\_Shah](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@Sagar\_Shah](https://discuss.elastic.co/u/Sagar_Shah)\
**Post date:** [February 20, 2015, 5:18pm UTC](https://discuss.elastic.co/t/searching-text-through-multiple-fields-for-retrieval/22299/1 "2015-02-20T17:18:53Z")

</div>

Hello everyone,  
I am working on a search API to find results from elastic search.  
I have a text entry input from user, which I need to search in elastic  
search across multiple fields (or rather all fields) within the JSON that  
was pushed and indexed.  
Can I use GET API of elastic search to search the text across multiple  
fields? I do not prefer to specify each and every field in my search query  
as there would be many fields in my json to search the data from?  
Please clarify.

Appreciate your inputs.

Regards,  
Sagar Shah

--  
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/8da87acf-5b16-4148-8a17-93be32b55757%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8da87acf-5b16-4148-8a17-93be32b55757%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 20, 2015, 8:59pm UTC](https://discuss.elastic.co/t/searching-text-through-multiple-fields-for-retrieval/22299/2 "2015-02-20T20:59:55Z")

</div>

Get only retrieves the document, so no you cannot use that to search.

> **[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 21 February 2015 at 04:18, Sagar Shah [sagarshah1983@gmail.com](mailto:sagarshah1983@gmail.com) wrote:

> Hello everyone,  
> I am working on a search API to find results from Elasticsearch.  
> I have a text entry input from user, which I need to search in elastic  
> search across multiple fields (or rather all fields) within the JSON that  
> was pushed and indexed.  
> Can I use GET API of Elasticsearch to search the text across multiple  
> fields? I do not prefer to specify each and every field in my search query  
> as there would be many fields in my json to search the data from?  
> Please clarify.
> 
> Appreciate your inputs.
> 
> Regards,  
> Sagar Shah
> 
> --  
> 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/8da87acf-5b16-4148-8a17-93be32b55757%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8da87acf-5b16-4148-8a17-93be32b55757%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/8da87acf-5b16-4148-8a17-93be32b55757%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/8da87acf-5b16-4148-8a17-93be32b55757%40googlegroups.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/CAEYi1X86xO3X9hnD9aA%2BXtBjzZZ3umpTTJTzYdRyEOij0F\_peA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X86xO3X9hnD9aA%2BXtBjzZZ3umpTTJTzYdRyEOij0F_peA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Sagar\_Shah](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@Sagar\_Shah](https://discuss.elastic.co/u/Sagar_Shah)\
**Post date:** [February 20, 2015, 10:24pm UTC](https://discuss.elastic.co/t/searching-text-through-multiple-fields-for-retrieval/22299/3 "2015-02-20T22:24:51Z")

</div>

Appreciate your inputs!  
Is there any other API that can help me in searching the input text across  
multiple fields and return results?  
Please advise.

Thanks.

On Fri, Feb 20, 2015 at 2:59 PM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:

> Get only retrieves the document, so no you cannot use that to search.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-get.html#docs-get)
> 
> On 21 February 2015 at 04:18, Sagar Shah [sagarshah1983@gmail.com](mailto:sagarshah1983@gmail.com) wrote:
> 
> > Hello everyone,  
> > I am working on a search API to find results from Elasticsearch.  
> > I have a text entry input from user, which I need to search in elastic  
> > search across multiple fields (or rather all fields) within the JSON that  
> > was pushed and indexed.  
> > Can I use GET API of Elasticsearch to search the text across multiple  
> > fields? I do not prefer to specify each and every field in my search query  
> > as there would be many fields in my json to search the data from?  
> > Please clarify.
> > 
> > Appreciate your inputs.
> > 
> > Regards,  
> > Sagar Shah
> > 
> > --  
> > 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/8da87acf-5b16-4148-8a17-93be32b55757%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8da87acf-5b16-4148-8a17-93be32b55757%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/8da87acf-5b16-4148-8a17-93be32b55757%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/8da87acf-5b16-4148-8a17-93be32b55757%40googlegroups.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 a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/kECiIqyrcoM/unsubscribe](https://groups.google.com/d/topic/elasticsearch/kECiIqyrcoM/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/CAEYi1X86xO3X9hnD9aA%2BXtBjzZZ3umpTTJTzYdRyEOij0F\_peA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X86xO3X9hnD9aA%2BXtBjzZZ3umpTTJTzYdRyEOij0F_peA%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X86xO3X9hnD9aA%2BXtBjzZZ3umpTTJTzYdRyEOij0F\_peA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X86xO3X9hnD9aA%2BXtBjzZZ3umpTTJTzYdRyEOij0F_peA%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).

--

Regards,  
Sagar Shah

Too many people think more of security instead of opportunity. They seem  
more afraid of life than death!!!

--  
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/CANZnv5jvEYtJLBqWHoOVGp373puW9PAx2ak%3DZUPdsQOhmb-P%2Bw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CANZnv5jvEYtJLBqWHoOVGp373puW9PAx2ak%3DZUPdsQOhmb-P%2Bw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 20, 2015, 11:25pm UTC](https://discuss.elastic.co/t/searching-text-through-multiple-fields-for-retrieval/22299/4 "2015-02-20T23:25:04Z")

</div>

> **[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.

is what you want.

It sounds like you're new to the world of ES, so it might be worth also  
taking a look at

> **[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 21 February 2015 at 09:24, Sagar Shah [sagarshah1983@gmail.com](mailto:sagarshah1983@gmail.com) wrote:

> Appreciate your inputs!  
> Is there any other API that can help me in searching the input text across  
> multiple fields and return results?  
> Please advise.
> 
> Thanks.
> 
> On Fri, Feb 20, 2015 at 2:59 PM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:
> 
> > Get only retrieves the document, so no you cannot use that to search.
> > 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-get.html#docs-get)
> > 
> > On 21 February 2015 at 04:18, Sagar Shah [sagarshah1983@gmail.com](mailto:sagarshah1983@gmail.com) wrote:
> > 
> > > Hello everyone,  
> > > I am working on a search API to find results from Elasticsearch.  
> > > I have a text entry input from user, which I need to search in elastic  
> > > search across multiple fields (or rather all fields) within the JSON that  
> > > was pushed and indexed.  
> > > Can I use GET API of Elasticsearch to search the text across multiple  
> > > fields? I do not prefer to specify each and every field in my search query  
> > > as there would be many fields in my json to search the data from?  
> > > Please clarify.
> > > 
> > > Appreciate your inputs.
> > > 
> > > Regards,  
> > > Sagar Shah
> > > 
> > > --  
> > > 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/8da87acf-5b16-4148-8a17-93be32b55757%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8da87acf-5b16-4148-8a17-93be32b55757%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/8da87acf-5b16-4148-8a17-93be32b55757%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/8da87acf-5b16-4148-8a17-93be32b55757%40googlegroups.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 a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/kECiIqyrcoM/unsubscribe](https://groups.google.com/d/topic/elasticsearch/kECiIqyrcoM/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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/CAEYi1X86xO3X9hnD9aA%2BXtBjzZZ3umpTTJTzYdRyEOij0F\_peA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X86xO3X9hnD9aA%2BXtBjzZZ3umpTTJTzYdRyEOij0F_peA%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X86xO3X9hnD9aA%2BXtBjzZZ3umpTTJTzYdRyEOij0F\_peA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X86xO3X9hnD9aA%2BXtBjzZZ3umpTTJTzYdRyEOij0F_peA%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).
> 
> --
> 
> Regards,  
> Sagar Shah
> 
> Too many people think more of security instead of opportunity. They seem  
> more afraid of life than death!!!
> 
> --  
> 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/CANZnv5jvEYtJLBqWHoOVGp373puW9PAx2ak%3DZUPdsQOhmb-P%2Bw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CANZnv5jvEYtJLBqWHoOVGp373puW9PAx2ak%3DZUPdsQOhmb-P%2Bw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CANZnv5jvEYtJLBqWHoOVGp373puW9PAx2ak%3DZUPdsQOhmb-P%2Bw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CANZnv5jvEYtJLBqWHoOVGp373puW9PAx2ak%3DZUPdsQOhmb-P%2Bw%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/CAEYi1X9ONAzQtH2j%2BzKbu819QDKZ7%2B-x%2BTSjn2Ss%2B12HxXe9aA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9ONAzQtH2j%2BzKbu819QDKZ7%2B-x%2BTSjn2Ss%2B12HxXe9aA%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, 12:31am UTC](https://discuss.elastic.co/t/searching-text-through-multiple-fields-for-retrieval/22299/5 "2017-07-06T00:31:04Z")

</div>


