Skip to content

Instantly share code, notes, and snippets.

@timscott
Created June 1, 2011 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timscott/1003363 to your computer and use it in GitHub Desktop.
Save timscott/1003363 to your computer and use it in GitHub Desktop.
The same percolator behaves differently in different indicies
> curl -XGET localhost:9200/_percolator/test3/percwild
> {"_index":"_percolator","_type":"test3","_id":"percwild","_version":2, "_source" : {"query":{"bool":{"should":[],"must":[{"wildcard":{"EmailSubject":{"value":"*txtag*"}}}],"must_not":[{"field":{"Trashed":{"query":true}}}]}}}}
> curl -XGET localhost:9200/test3/type1/_percolate -d'
{"doc":{"EmailSubject":"TxTAG Activity Statement Too", "Trashed":false}}'
> {"ok":true,"matches":["percwild"]}
> curl -XGET localhost:9200/_percolator/9494a77d-04a4-4e19-8b7f-4eea5cdf27d6/d52e6ff7-6239-4f0e-b25c-9ef500ae3abf
> {"_index":"_percolator","_type":"9494a77d-04a4-4e19-8b7f-4eea5cdf27d6","_id":"d52e6ff7-6239-4f0e-b25c-9ef500ae3abf","_version":5, "_source" : {"query":{"bool":{"should":[],"must":[{"wildcard":{"EmailSubject":{"value":"*txtag*"}}}],"must_not":[{"field":{"Trashed":{"query":true}}}]}}}}
> curl -XGET localhost:9200/9494a77d-04a4-4e19-8b7f-4eea5cdf27d6/IndexDocument/_percolate -d'
{"doc":{"EmailSubject":"TxTAG Activity Statement Too", "Trashed":false}}'
> {"ok":true,"matches":[]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment