Java DSL query DSL different results

when i run this query, i correctly get only the NUM_OF_WKS field back

{"filter":{"exists":{"field":"NUM_OF_WKS"}}, "fields" : ["NUM_OF_WKS"],"facets" :
{"Number_of_Weeks_Facet":{"terms":{"field":"NUM_OF_WKS","size":"1"} }}}

but when i run the same query thru a java search, i get NULL for that field

final SearchResponse response = client
.search(new SearchRequest("scnprobldir3a")
.source("{"filter":{"exists":{"field":"NUM_OF_WKS"}}, * "fields"
: ["NUM_OF_WKS"],* "facets" :

Can anyone help???

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
For more options, visit