# Searching for string in column

**URL:** <https://discuss.elastic.co/t/searching-for-string-in-column/12953>\
**Category:** Elasticsearch\
**Created:** [July 26, 2013, 12:03pm UTC](https://discuss.elastic.co/t/searching-for-string-in-column/12953 "2013-07-26T12:03:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janusz\_Dalecki](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Janusz\_Dalecki](https://discuss.elastic.co/u/Janusz_Dalecki)\
**Post date:** [July 26, 2013, 12:03pm UTC](https://discuss.elastic.co/t/searching-for-string-in-column/12953/1 "2013-07-26T12:03:20Z")

</div>

Hi,  
I have an elasticsearch query like this in my app:  
SearchRequestBuilder srb = client.prepareSearch("asset\_index").setTypes("Asset").setSearchType(  
SearchType.DEFAULT);  
srb.setQuery(QueryBuilders.queryString(search));

where client is of type TransportClient and search=="dd".  
It finds all documents with "dd" in any column of any of my docs. How can I narrow it down to particular column, let's say column called 'description'.  
Regards,  
Janusz

* * *

This e-mail contains privileged and confidential information intended for the use of the addressees named above. If you are not the intended recipient of this e-mail, you are hereby notified that you must not disseminate, copy or take any action in respect of any information contained in it. If you have received this e-mail in error, please notify the sender immediately by e-mail and immediately destroy this e-mail and its attachments.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [July 26, 2013, 7:09pm UTC](https://discuss.elastic.co/t/searching-for-string-in-column/12953/2 "2013-07-26T19:09:43Z")

</div>

search==”description:dd”

On Friday, July 26, 2013 8:03:20 AM UTC-4, JD wrote:

> Hi,
> 
> I have an elasticsearch query like this in my app:
> 
> SearchRequestBuilder srb = client.prepareSearch("asset\_index").setTypes(  
> "Asset").setSearchType(
> 
> ```
> SearchType.*DEFAULT*);
> 
> ```
> 
> srb.setQuery(QueryBuilders._queryString_(search));
> 
> where client is of type TransportClient and search==”dd”.
> 
> It finds all documents with “dd” in any column of any of my docs. How can  
> I narrow it down to particular column, let’s say column called  
> ‘description’.
> 
> Regards,
> 
> Janusz
> 
> * * *
> 
> This e-mail contains privileged and confidential information intended for  
> the use of the addressees named above. If you are not the intended  
> recipient of this e-mail, you are hereby notified that you must not  
> disseminate, copy or take any action in respect of any information  
> contained in it. If you have received this e-mail in error, please notify  
> the sender immediately by e-mail and immediately destroy this e-mail and  
> its attachments.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:24am UTC](https://discuss.elastic.co/t/searching-for-string-in-column/12953/3 "2017-07-06T02:24:14Z")

</div>


