Elasticsearch's JSON APIs are very difficult to remember and understand,very bad design!

for example:

{
"match" : {
"message" : {
"query" : "to be or not to be",
"operator" : "and",
"zero_terms_query": "all"
}
}
}

which field is part of the target documents and which field is part of
query syntax???
What i can do is try my best to remember the key word field such as "match"
"query" ...,
Why don't give the key word a symbol to distinct from the document field
like mongodb's query language ....

very bad elasticsearch json API design!!!!!!

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0db5b06a-f70a-4422-95a6-f1fc7ee110b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

  • "match" <== This is the query type, called "match"
  • "message" <== This is the field in the document you wish to query
  • "query" <== This is the text you wish to query with
  • "operator" <== This says how the terms in the query should be
    combined. Optional. Setting to "and" means all terms are required
  • "zero_terms_query" <== Special behavior in case the analyzer removes
    all tokens

I would encourage you to read "Elasticsearch - The Definitive Guide"http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/index.htmlif you are having trouble with the syntax. It walks through how to
construct (and think about) queries, as well as many other topics.

very bad elasticsearch json API design!!!!!!

Well, this is a matter of opinion :wink: I quite like the API for example.
There is a learning curve for sure, like any new technology, but once you
understand the syntax and grammar, it is very powerful and easy to
construct.

-Zach

On Sunday, May 18, 2014 4:56:16 AM UTC-4, wang guan wrote:

for example:

{
"match" : {
"message" : {
"query" : "to be or not to be",
"operator" : "and",
"zero_terms_query": "all"
}
}
}

which field is part of the target documents and which field is part of
query syntax???
What i can do is try my best to remember the key word field such as
"match" "query" ...,
Why don't give the key word a symbol to distinct from the document field
like mongodb's query language ....

very bad elasticsearch json API design!!!!!!

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/95538abe-5b1d-45c8-bc1d-062134784090%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.