Yes thats a great idea. I've been digging into Search the last week for the
first time and found that getting all the pieces and options together is the
most challenging part. A query DSL format would be very helpful!
From: Philippe Laflamme [mailto:philippe.laflamme@obiba.org]
Sent: vrijdag 20 mei 2011 22:42
To: users@elasticsearch.com
Subject: Re: Getting Started
What I find is missing most in the docs is a top-down description of the
Query DSL: what is the possible structure of a search request body. It's all
in the docs, but split into many little pieces which makes the "vertical"
view (as Shay puts it) difficult to grasp. This is even complicated further
by the fact that some pieces can go in multiple places (a query within a
filter for example).
What would be very useful is a formal description of the Query DSL (similar
to what an XSD offers to XML). No, not that complicated, but it would be
complete (covers all possibilities) and would show what is required and what
is optional for each "node" type. And, while I'm dreaming, it would also be
clickable so you could drill-down.
The facet documentation has a formal description (uses and
such) but is incomplete (each example only shows part of what is available):
http://www.elasticsearch.org/guide/reference/api/search/facets/
I'm not too familiar with the code that parses the queries, but could such a
document be generated from the code? Maybe using annotations or
introspection or whatever, that would make it easily maintainable...
I'd like to contribute if that makes any sense to anyone.
Philippe
On Fri, May 20, 2011 at 16:21, Shay Banon shay.banon@elasticsearch.com
wrote:
What we can do is start a section in the site with samples. I prefer not to
have several places of docs around for elasticsearch. And the site is,
effectively, a wiki (anybody can edit and send pull requests).
On Friday, May 20, 2011 at 11:19 PM, Karussell wrote:
I completely agree with that
but for the sake of just working examples (sometimes user needs a
lot!) a wiki would be very nice - even if sprinkled here and there.
I started a wiki here: