# How can I query for keys that has this syntax: "bbkd:title"

**URL:** <https://discuss.elastic.co/t/how-can-i-query-for-keys-that-has-this-syntax-bbkd-title/6919>\
**Category:** Elasticsearch\
**Created:** [March 6, 2012, 7:09pm UTC](https://discuss.elastic.co/t/how-can-i-query-for-keys-that-has-this-syntax-bbkd-title/6919 "2012-03-06T19:09:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kara](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@Kara](https://discuss.elastic.co/u/Kara)\
**Post date:** [March 6, 2012, 7:09pm UTC](https://discuss.elastic.co/t/how-can-i-query-for-keys-that-has-this-syntax-bbkd-title/6919/1 "2012-03-06T19:09:52Z")

</div>

I got the following successfully indexed in Elasticsearch but the  
query fails. Any idea how I can query for the value of "owner that is  
mongo"

curl -XPUT [http://localhost:9200/twitter/tweet/2](http://localhost:9200/twitter/tweet/2) -d '{  
"bbkd:title": {  
"@ABCD:owner": "mongo",  
"@ABCD:email": "T",  
"#text": "Test"  
}}'

Thanks!  
Kara

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 7, 2012, 11:08am UTC](https://discuss.elastic.co/t/how-can-i-query-for-keys-that-has-this-syntax-bbkd-title/6919/2 "2012-03-07T11:08:50Z")

</div>

Here is a sample of how you can query it: [gist:1992548 · GitHub](https://gist.github.com/1992548). Using the text query. Note, it will be much simpler for you to query data (especially when using the query\_string) if you don't have `:` in the field names.

On Tuesday, March 6, 2012 at 9:09 PM, Kara wrote:

> I got the following successfully indexed in Elasticsearch but the  
> query fails. Any idea how I can query for the value of "owner that is  
> mongo"
> 
> curl -XPUT [http://localhost:9200/twitter/tweet/2](http://localhost:9200/twitter/tweet/2) -d '{  
> "bbkd:title": {  
> "@ABCD:owner": "mongo",  
> "@ABCD:email": "T",  
> "#text": "Test"  
> }}'
> 
> Thanks!  
> Kara

---

<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, 3:36am UTC](https://discuss.elastic.co/t/how-can-i-query-for-keys-that-has-this-syntax-bbkd-title/6919/3 "2017-07-06T03:36:57Z")

</div>


