FilterBuilder.toString() not working as documented

In the official ES docs you can read the following:

Note that you can easily print (aka debug) JSON generated queries using
toString() method on FilterBuilder object.

However, this doesn't seem to be the case. In contrast to
BaseQueryBuilder.java where toString() actually is overriden to output the
JSON, BaseFilterBuilder.java or other classes along the FilterBuilder
inheritance chain do not.

Can anyone confirm that or tell me what I'm doing wrong?
Plus, why don't both Base(Query|Filter)Builder classes don't extend a
common superclass? Generally seems to me like there is pretty much
duplicated code going on there (this is more like a quick and dirty guess)?

--
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.
For more options, visit https://groups.google.com/groups/opt_out.