Re: Which kind of query style is recommanded to use, JSON style or Query_string sytel? Performance differes?

2015-03-26 Thread Lincoln Xiong
Query_string is more straight forward, because most of time I use Kibana to test my query. But for the DSL, it's kind of hard to fully understand which query to use. And to test my query is also difficult because too many brackets... There is a high level Python API for DSL. I'm learning it. Tha

Re: Which kind of query style is recommanded to use, JSON style or Query_string sytel? Performance differes?

2015-03-25 Thread Nikolas Everett
query_string is a bit of a trap - if you write an invalid query it just crashes. So you find yourself working around it with tons of escaping. Its also really really powerful and shouldn't be exposed directly to end users unless you want them to be sneaky. For the most part I'd suggest using the

Which kind of query style is recommanded to use, JSON style or Query_string sytel? Performance differes?

2015-03-25 Thread Lincoln Xiong
I am new to use Elasticsearch + Logstash + Kibana for analyzing some logs. I am about to write some scripts to automate something in searching/aggregation. Now I only have 10gb data so the performance don't vary that much when I do searching or visualization. I spent a lot of time learning ES's