Created
June 1, 2011 21:25
-
-
Save timscott/1003363 to your computer and use it in GitHub Desktop.
The same percolator behaves differently in different indicies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 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