Closed kostia closed 11 years ago
When I'm calling following 100 times I'm getting not a single error:
curl -XPOST 'localhost:9200/stellen24_development/keywords/_search?pretty=true' -d '
{
"sort" : [
{
"slug" : {
"order" : "asc" ,
"ignore_unmapped" : true
}
},
{
"category" : {
"order" : "asc" ,
"ignore_unmapped" : true
}
}
]
}
'
What's the output when you call 'params' on the scope created by your method?
On Tue, Oct 23, 2012 at 6:21 PM, Kostiantyn Kahanskyi < notifications@github.com> wrote:
When I'm calling following 100 times I'm getting not a single error:
curl -XPOST 'localhost:9200/stellen24_development/keywords/_search?pretty=true' -d '{ "sort" : [ { "slug" : { "order" : "asc" , "ignore_unmapped" : true } }, { "category" : { "order" : "asc" , "ignore_unmapped" : true } } ]}'
— Reply to this email directly or view it on GitHubhttps://github.com/brewster/elastictastic/issues/20#issuecomment-9720646.
[72] pry(main)> Keyword.sort_by_category_and_slug.params
=> {"sort"=>
[{:category=>{:order=>:asc, :ignore_unmapped=>true}},
{:slug=>{:order=>:asc, :ignore_unmapped=>true}}]}
Seems to be ok...
Strange... When I'm restarting the ES the error disappears.
It appears again every time I'm doing a destroy_all
, followed by sync_mapping
, followed by a bulk create (about 2.000 Keywords). Then the error is thrown continuously.
If after that I do a destroy_all
followed by a sync_mapping
again, than the error appears for several time, but not every time.
If I then restart the ES the error disappears.
As I'm the only one ever experienced this issue and I'm not experiencing it anymore, I'm closing the issue.
Hello,
I got following model:
Now I'm doing following several times while having no slugs at all:
And I'm getting different results every time:
Why for God's sake?!!!
When I'm doing the same test with curl in console I'm getting no errors at all...