I suggest you convert your dateA to long & dateB to long & then using 
RangeFilter to do it.

On Tuesday, February 4, 2014 4:32:57 PM UTC+7, Mohammad Shafraz Subdurally 
wrote:
>
>
> Hello everyone , 
>  i am also trying to do something like this:
> my intended query is like this:
> select from range (dateA to dateB);
>
>
> AndFilterBuilder myFilters = FilterBuilders.andFilter();
> myFilters.add(FilterBuilders.rangeFilter("dateFormatted").gte(dateDebut).lte(dateFin));
>  
>
>
> howeve this returns to nothing:
> the values dateDebut and dateFin are in the following format:
> yyyy/MM/dd
>
>
> and the field *dateFormatted* is in the following format:
>
>
>

-- 
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/471511cd-fda9-4d10-9358-30fcd4663a12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to