# Filtering percolator queries based on the date range not working

**URL:** https://discuss.elastic.co/t/filtering-percolator-queries-based-on-the-date-range-not-working/22341
**Category:** Elasticsearch
**Created:** [February 23, 2015, 10:24pm UTC](https://discuss.elastic.co/t/filtering-percolator-queries-based-on-the-date-range-not-working/22341 "2015-02-23T22:24:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![photonic\_world\_2](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@photonic\_world\_2](https://discuss.elastic.co/u/photonic_world_2)
#### Post date: [February 23, 2015, 10:24pm UTC](https://discuss.elastic.co/t/filtering-percolator-queries-based-on-the-date-range-not-working/22341/1 "2015-02-23T22:24:57Z")

</div>

Please check the GIST here

> <https://gist.github.com/photonicworld/890bdda83fb9adcd6e7d>

There seems to be a problem with filtering percolator queries based on the  
date range given as a date format.

- nested: PercolateException[failed to percolate]; nested:  
ElasticsearchParseException[failed to parse request]; nested:  
UnsupportedOperationException; " \*

I am using the latest version of elastic search 1.4.x. I see this problem  
occuring on 1.3.x as well. This should be supported, but doesn't seem like  
its working.

Thanks!

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6b5ea0a3-78b7-4768-9b75-3c9c224ec1b8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6b5ea0a3-78b7-4768-9b75-3c9c224ec1b8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![photonic\_world](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@photonic\_world](https://discuss.elastic.co/u/photonic_world)
#### Post date: [February 24, 2015, 6:23pm UTC](https://discuss.elastic.co/t/filtering-percolator-queries-based-on-the-date-range-not-working/22341/2 "2015-02-24T18:23:14Z")

</div>

Found these in the logs. Looks like "PercolateContext.nowInMillisImpl(..)" isn't implemented.

org.elasticsearch.percolator.PercolateException: failed to percolate  
at org.elasticsearch.action.percolate.TransportPercolateAction.shardOperation(TransportPercolateAction.java:195)  
at org.elasticsearch.action.percolate.TransportPercolateAction.shardOperation(TransportPercolateAction.java:56)  
at org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$AsyncBroadcastAction$1.run(TransportBroadcastOperationAction.java:171)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:745)  
Caused by: org.elasticsearch.ElasticsearchParseException: failed to parse request  
at org.elasticsearch.percolator.PercolatorService.parseRequest(PercolatorService.java:363)  
at org.elasticsearch.percolator.PercolatorService.percolate(PercolatorService.java:187)  
at org.elasticsearch.action.percolate.TransportPercolateAction.shardOperation(TransportPercolateAction.java:192)  
... 5 more  
Caused by: java.lang.UnsupportedOperationException  
at org.elasticsearch.percolator.PercolateContext.nowInMillisImpl(PercolateContext.java:347)  
at org.elasticsearch.search.internal.SearchContext.nowInMillis(SearchContext.java:142)  
at org.elasticsearch.index.mapper.core.DateFieldMapper.parseToMilliseconds(DateFieldMapper.java:323)  
at org.elasticsearch.index.mapper.core.DateFieldMapper.parseToMilliseconds(DateFieldMapper.java:318)  
at org.elasticsearch.index.mapper.core.DateFieldMapper.innerRangeQuery(DateFieldMapper.java:350)  
at org.elasticsearch.index.mapper.core.DateFieldMapper.rangeQuery(DateFieldMapper.java:345)  
at org.elasticsearch.index.query.RangeQueryParser.parse(RangeQueryParser.java:127)  
at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:277)  
at org.elasticsearch.index.query.IndexQueryParserService.innerParse(IndexQueryParserService.java:382)  
at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:281)  
at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:276)  
at org.elasticsearch.percolator.PercolatorService.parseRequest(PercolatorService.java:302)

---

<div class="post-metadata">

### Author: ![photonic\_world\_2](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@photonic\_world\_2](https://discuss.elastic.co/u/photonic_world_2)
#### Post date: [February 24, 2015, 8:52pm UTC](https://discuss.elastic.co/t/filtering-percolator-queries-based-on-the-date-range-not-working/22341/3 "2015-02-24T20:52:00Z")

</div>

Found these in the logs. Looks like "PercolateContext.nowInMillisImpl(..)"  
isn't implemented.

org.elasticsearch.percolator.PercolateException: failed to percolate  
at  
org.elasticsearch.action.percolate.TransportPercolateAction.shardOperation(TransportPercolateAction.java:195)  
at  
org.elasticsearch.action.percolate.TransportPercolateAction.shardOperation(TransportPercolateAction.java:56)  
at  
org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$AsyncBroadcastAction$1.run(TransportBroadcastOperationAction.java:171)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:745)  
Caused by: org.elasticsearch.ElasticsearchParseException: failed to parse  
request  
at  
org.elasticsearch.percolator.PercolatorService.parseRequest(PercolatorService.java:363)  
at  
org.elasticsearch.percolator.PercolatorService.percolate(PercolatorService.java:187)  
at  
org.elasticsearch.action.percolate.TransportPercolateAction.shardOperation(TransportPercolateAction.java:192)  
... 5 more  
Caused by: java.lang.UnsupportedOperationException  
at  
org.elasticsearch.percolator.PercolateContext.nowInMillisImpl(PercolateContext.java:347)  
at  
org.elasticsearch.search.internal.SearchContext.nowInMillis(SearchContext.java:142)  
at  
org.elasticsearch.index.mapper.core.DateFieldMapper.parseToMilliseconds(DateFieldMapper.java:323)  
at  
org.elasticsearch.index.mapper.core.DateFieldMapper.parseToMilliseconds(DateFieldMapper.java:318)  
at  
org.elasticsearch.index.mapper.core.DateFieldMapper.innerRangeQuery(DateFieldMapper.java:350)  
at  
org.elasticsearch.index.mapper.core.DateFieldMapper.rangeQuery(DateFieldMapper.java:345)  
at  
org.elasticsearch.index.query.RangeQueryParser.parse(RangeQueryParser.java:127)  
at  
org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:277)  
at  
org.elasticsearch.index.query.IndexQueryParserService.innerParse(IndexQueryParserService.java:382)  
at  
org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:281)  
at  
org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:276)  
at  
org.elasticsearch.percolator.PercolatorService.parseRequest(PercolatorService.java:302)

On Monday, February 23, 2015 at 2:24:57 PM UTC-8, photonic\_world wrote:

> Please check the GIST here
> 
> [Filtering percolator queries on the date range · GitHub](https://gist.github.com/photonicworld/890bdda83fb9adcd6e7d)
> 
> There seems to be a problem with filtering percolator queries based on the  
> date range given as a date format.
> 
> - nested: PercolateException[failed to percolate]; nested:  
> ElasticsearchParseException[failed to parse request]; nested:  
> UnsupportedOperationException; " \*
> 
> I am using the latest version of Elasticsearch 1.4.x. I see this problem  
> occuring on 1.3.x as well. This should be supported, but doesn't seem like  
> its working.
> 
> Thanks!

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/06b4c39a-a433-4f09-bf40-6fa681a15e97%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/06b4c39a-a433-4f09-bf40-6fa681a15e97%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 12:30am UTC](https://discuss.elastic.co/t/filtering-percolator-queries-based-on-the-date-range-not-working/22341/4 "2017-07-06T00:30:25Z")

</div>


