Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date parsing (now) bug when filtering in addition to percolation #12185

Closed
zergin opened this issue Jul 10, 2015 · 4 comments
Closed

Date parsing (now) bug when filtering in addition to percolation #12185

zergin opened this issue Jul 10, 2015 · 4 comments
Assignees
Labels
>bug :Search/Percolator Reverse search: find queries that match a document

Comments

@zergin
Copy link

zergin commented Jul 10, 2015

This seems similar (albeit different) to #12179: there is an issue with "now" and percolator queries: when .percolator documents are filtered in addition to percolation.

POST /idx/type/_percolate
{
  "doc": {},
  "filter": {
    "range": {
      "$context.created": {
        "lte": "now"
      }
    }
  }
}

for .percolator:

{
  "query": {
    "filtered": {
      "query": {
        "match_all": []
      }
    }
  },
  "$context": {
    "name": "test",
    "created": "2015-07-10T14:41:54+0000",
  }
}

The response is:

BroadcastShardOperationFailedException[[idx][0] ]; 
 nested: PercolateException[failed to percolate];  
 nested: ElasticsearchParseException[failed to parse request]; 
 nested: ElasticsearchParseException[Could not read the current timestamp];
 nested: UnsupportedOperationException;
@martijnvg
Copy link
Member

@zergin Thanks for reporting this. There is a PR open for the missing support of resolving now in the percolate api: #12215

@zergin
Copy link
Author

zergin commented Jul 14, 2015

Splendid, thanks. Any ETA for this going live? I see it's scheduled for 1.6.1?

@martijnvg
Copy link
Member

when the PR gets reviewed it will get merged and then I'll try to back port
it to 1.7 and 1.6 branches. So it should get into the 1.6.1 release.

On 14 July 2015 at 12:19, zergin notifications@github.com wrote:

Splendid, thanks. Any ETA for this going live? I see it's scheduled for
1.6.1?


Reply to this email directly or view it on GitHub
#12185 (comment)
.

Met vriendelijke groet,

Martijn van Groningen

@martijnvg
Copy link
Member

@zergin The change got backported to 1.6, so it is scheduled for 1.6.1

mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Percolator Reverse search: find queries that match a document
Projects
None yet
Development

No branches or pull requests

3 participants