Paul_4
(Paul-4)
April 18, 2014, 9:58pm
1
Hi,
Thanks for everyone's patience while I learn the elasticsearch query DSL.
I'm trying to get used to its verbosity.
How would I do a query like this, again in SQL parlance: select col1 from
mysource where col2 = "" and col3 in ["", "one", "two"] and col4 = "foo"
--
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/cbf00b67-b354-4087-a937-450055fce661%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
spinscale
(Alexander Reelsen)
April 21, 2014, 12:58pm
2
Hey,
not sure if you really want to test for an empty string, or maybe for an
empty field? There is a missing filter which you could potentially use for
that, see
Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.
--Alex
On Fri, Apr 18, 2014 at 11:58 PM, Paul paulj3000@gmail.com wrote:
Hi,
Thanks for everyone's patience while I learn the elasticsearch query DSL.
I'm trying to get used to its verbosity.
How would I do a query like this, again in SQL parlance: select col1 from
mysource where col2 = "" and col3 in ["", "one", "two"] and col4 = "foo"
--
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/cbf00b67-b354-4087-a937-450055fce661%40googlegroups.com https://groups.google.com/d/msgid/elasticsearch/cbf00b67-b354-4087-a937-450055fce661%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout .
--
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/CAGCwEM8_dVB3-16aK8rHv3cAF%2BNYBzCiK6RxVdzmUqQPLjFDeQ%40mail.gmail.com .
For more options, visit https://groups.google.com/d/optout .