java - Elasticsearch, Nested "ANDS" and "ORS" -
i having difficulty structuring exact elasticsearch query looking for, using java api.
it seems if build fieldsearch using java api, can utilize single field , single term. if utilize querystring, looks can apply entire query set of fields. want apply specific query 1 field, , query different field.
this confusing know. type of query construct
(name contains "foo" or name contains "bar") , ( date equals today)
i loving elasticsearch it's speed , flexibility, docs on http://www.elasticsearch.org/ kind of tough parse (i noticed "introduction" , "concepts" have no links, api section does) if has resources on mastering these queries, i'd love see them. thanks!
sounds bool query 2 must clause:
matchquery("name", "foo bar") rangequery("date").from("2013-02-05").to("2013-02-06")does help?
java elasticsearch
No comments:
Post a Comment