Hi, all
Assume I have the document:
{
> "id": "/Users/jason/Documents/nose/DS_Store",
> "name": "danny",
> "language": "",
> "created": "2014-03-26T14:40:17Z",
> }
And I want to use query_string query to find the "id" field with the exact
value "/Users/jason/Documents/nose/DS_Store"
The following command cannot find the above document:
{ "query":
> { "query_string":
> { "query": "id:\\/Users\\/jason\\/Documents\\/nose\\/DS_Store"}
> }
> }
The *index_analyzer* of "id" field include the tokenizer "*path_hierarchy*"
and no filter. The *search_analyzer* of it is *standard*.
Are there any possible reason of it ??
BTW, I can use term query to find the document by using:
{ "query":
{ "term":
{ "id": "/Users/jason/Documents/nose/DS_Store"}
}
}
So I think there might exist something in the query_string query.
And are there any ways to know what operations does a query_string query
rewrite into?
Ideas?
Ivan
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/85f49c48-f2a7-4b32-8e01-e01b59bb0624%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.