# Don't understand the query logic

**URL:** <https://discuss.elastic.co/t/dont-understand-the-query-logic/11667>\
**Category:** Elasticsearch\
**Created:** [April 23, 2013, 12:29pm UTC](https://discuss.elastic.co/t/dont-understand-the-query-logic/11667 "2013-04-23T12:29:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sentient6](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sentient6](https://discuss.elastic.co/u/Sentient6)\
**Post date:** [April 23, 2013, 12:29pm UTC](https://discuss.elastic.co/t/dont-understand-the-query-logic/11667/1 "2013-04-23T12:29:24Z")

</div>

Hello dear all,

I have troubles by searching one indexed file.

The file was given in XML format before and I used a translator to make it JSON format.

This file looks like this:

{"metadataContainerType":  
{"xmlns:ns2":"[http://www.w3.org/1999/02/22-rdf-syntax-ns#](http://www.w3.org/1999/02/22-rdf-syntax-ns#)",  
"xmlns:ns3":"http://**/namespaces/metadata/core/2010",  
"add":  
{"doc":  
[{"name":"title","":"Hallo Welt"},  
{"name":"format","":"work+xml"},  
{"name":"created","":"2011-12-16T20:31:23.264Z"},  
{"name":"last\_modified","":"2012-05-10T07:29:05.451Z"},  
{"name":"issued","":"2011-12-16T20:31:23.264Z"},  
{"name":"id","extRef":"","":"example"},  
{"name":"revision","":"0"},  
{"name":"pid","pidType":"handle","":"hdl:**"},  
{"name":"extent","":"38"},  
{"name":"dataContributor","":"\*\*\*\*"},  
{"name":"project","id":"428746782346,"":"my project"},  
{"name":"availability","":"public"},  
{"name":"permissions","":"read"},  
{"name":"agent","role":"author","id":"pnd:sdsfsf"":"someone, nobdoy"},  
{"name":"dateOfCreation","notBefore":"1859","notAfter":"1919"},  
{"name":"genre","":"prose"}  
]  
}  
}  
}

When I try to search for the title it works:

_curl -XGET '[http://localhost:9200/blog/post/\_search?q=title:Hallo%Welt&pretty=true](http://localhost:9200/blog/post/_search?q=title:Hallo%25Welt&pretty=true)'_

it also works by looking for the "author"

_curl -XGET '[http://localhost:9200/blog/post/\_search?q=title:someone,%20nobdoy&pretty=true](http://localhost:9200/blog/post/_search?q=title:someone,%20nobdoy&pretty=true)'_

But any other field doesn't work. I tried to search in the field "availability":  
  
_curl -XGET '[http://localhost:9200/blog/post/search?q=availability:public&pretty=true](http://localhost:9200/blog/post/search?q=availability:public&pretty=true)'_

This ends with no match.

Can somebody of you tell me what I am doing wring?

---

<div class="post-metadata">

**Author:** ![Sentient6](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sentient6](https://discuss.elastic.co/u/Sentient6)\
**Post date:** [April 24, 2013, 7:32am UTC](https://discuss.elastic.co/t/dont-understand-the-query-logic/11667/2 "2013-04-24T07:32:34Z")

</div>

Nobody here who can help me?

---

<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:39am UTC](https://discuss.elastic.co/t/dont-understand-the-query-logic/11667/3 "2017-07-06T02:39:50Z")

</div>

Closed on July 6, 2017, 2:39am UTC


