Nest - range filter in a form of BaseFilter


(adam.porat@gmail.com) #1

Hi,
I'm using Nest version 0.12.0.
I need to get a range filter in a form of BaseFilter.
However, this line of code creates a faulty BaseFilter which doesn't
contain the actual condition:
agg.ElasticsearchFilter = Nest.Filter.Range(i =>
i.GreaterOrEquals(filteredUpdateDate));

Is this a bug, or am I doing something wrong?
Any way that will enable to cast from a RangeFilterDescriptor to a
BaseFilter will do.
This is becase .FacetFilter( i => i.Bool(j => j.Must(...))) accepts a
BaseFilter[].
Thank you.

--
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/7bb41594-74c8-440a-92fb-c78678129933%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(adam.porat@gmail.com) #2

Any ideas anyone?

בתאריך יום ראשון, 3 באוגוסט 2014 14:47:05 UTC+3, מאת Adam Porat:

Hi,
I'm using Nest version 0.12.0.
I need to get a range filter in a form of BaseFilter.
However, this line of code creates a faulty BaseFilter which doesn't
contain the actual condition:
agg.ElasticsearchFilter = Nest.Filter.Range(i =>
i.GreaterOrEquals(filteredUpdateDate));

Is this a bug, or am I doing something wrong?
Any way that will enable to cast from a RangeFilterDescriptor to a
BaseFilter will do.
This is becase .FacetFilter( i => i.Bool(j => j.Must(...))) accepts a
BaseFilter[].
Thank you.

--
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/59cfd185-5beb-4d9a-afd8-8c1664912e41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3