ok, this does repro the problem
tag parser · GitHub
note, i had it fail if using doc id 1, and also using a $RANDOM doc id
(the last failure below is this)
Sometimes it works
{"took":44,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"tags","_type":"tag","_id":"1","_score":1.0,
"_source" : {
"tags" : "a-b,a-b,a-c"
}}]},"facets":{"tags":{"_type":"terms","missing":0,"total":2,"other":0,"terms":[{"term":"a-c","count":1},{"term":"a-b","count":1}]}}}
query:
{"took":40,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"tags","_type":"tag","_id":"1","_score":1.0,
"_source" : {
"tags" : "a-b,a-b,a-c"
}}]},"facets":{"tags":{"_type":"terms","missing":0,"total":2,"other":0,"terms":[{"term":"a-c","count":1},{"term":"a-b","count":1}]}}}
Less frequently it does not
{"took":42,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"tags","_type":"tag","_id":"1","_score":1.0,
"_source" : {
"tags" : "a-b,a-b,a-c"
}}]},"facets":{"tags":{"_type":"terms","missing":0,"total":2,"other":0,"terms":[{"term":"c","count":1},{"term":"b","count":1}]}}}
{"took":57,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":96,"max_score":1.0,"hits":[{"_index":"tags","_type":"tag","_id":"19100","_score":1.0,
"_source" : {
"tags" : "a-b,a-b,a-c"
}},{"_index":"tags","_type":"tag","_id":"26775","_score":1.0, "_source"
: {
"tags" : "a-b,a-b,a-c"
}},{"_index":"tags","_type":"tag","_id":"6971","_score":1.0, "_source" :
{
"tags" : "a-b,a-b,a-c"
}},{"_index":"tags","_type":"tag","_id":"2070","_score":1.0, "_source" :
{
"tags" : "a-b,a-b,a-c"
}},{"_index":"tags","_type":"tag","_id":"17185","_score":1.0, "_source"
: {
"tags" : "a-b,a-b,a-c"
}},{"_index":"tags","_type":"tag","_id":"26016","_score":1.0, "_source"
: {
"tags" : "a-b,a-b,a-c"
}},{"_index":"tags","_type":"tag","_id":"1971","_score":1.0, "_source" :
{
"tags" : "a-b,a-b,a-c"
}},{"_index":"tags","_type":"tag","_id":"2657","_score":1.0, "_source" :
{
"tags" : "a-b,a-b,a-c"
}},{"_index":"tags","_type":"tag","_id":"19504","_score":1.0, "_source"
: {
"tags" : "a-b,a-b,a-c"
}},{"_index":"tags","_type":"tag","_id":"19179","_score":1.0, "_source"
: {
"tags" : "a-b,a-b,a-c"
}}]},"facets":{"tags":{"_type":"terms","missing":0,"total":192,"other":0,"terms":[{"term":"c","count":96},{"term":"b","count":96}]}}}
On Feb 15, 2013, at 10:56 AM, Chris K Wensel <ch...@wensel.net<javascript:>>
wrote:
Not sure why this happens. Maybe your mapping isn't applied on all indices?
we only have one index. three document types, two of which are
reciprocating parents, the third is just a child (not nested of course).
though all three have nested documents. the tags are not in those nested
elements.
turns out this has been a persistent problem for the last 9-12 months of
ES releases, we just stopped using a "-" in our tests to stop the random
failures.
I think I just need to go deep and see what's happening internally.
I suspect your gist will work without issues with such a simple document.
though it may show up if i wrap line 22 with a for loop, since the issue
is that the analyzer is randomly not applied properly on a PUT. that is,
some puts are properly parsed, some smaller % are not.
ckw
--
Chris K Wensel
ch...@concurrentinc.com <javascript:>
http://concurrentinc.com
--
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 elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.
--
Chris K Wensel
ch...@concurrentinc.com <javascript:>
http://concurrentinc.com