Binh, I did try that.
As I wrote in my original message, I just want to know the differences
between the 3 variants.


On Mon, Mar 24, 2014 at 5:58 PM, Binh Ly <[email protected]> wrote:

> Can you try something like this for each field you want to test?
>
>             if (doc().containsKey(field)) {
>                   ScriptDocValues fieldValue = (ScriptDocValues)
> doc().get(field);
>                   if (fieldValue != null && !fieldValue.isEmpty()) {
>                           //not empty!
>                   }
>             }
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "elasticsearch" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elasticsearch/gSlS02Dw2ss/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/26c1f284-8a62-4449-b88f-f50e54fbbe57%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/26c1f284-8a62-4449-b88f-f50e54fbbe57%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Meidan.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAHHFEKkT_uKQgzT_8eHb7cBwVBPEtp6Rc2_1iWcgk4D7Xm9h_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to