Skip to content

Instantly share code, notes, and snippets.

@radu-gheorghe
Created February 5, 2015 09:51
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 radu-gheorghe/0f9e1a04b11dc4e1f32b to your computer and use it in GitHub Desktop.
Save radu-gheorghe/0f9e1a04b11dc4e1f32b to your computer and use it in GitHub Desktop.
Elasticsearch significant terms background filtering size oddities
curl -XDELETE localhost:9200/test
curl -XPOST localhost:9200/test/test -d '{"a": "foo"}'
curl -XPOST localhost:9200/test/test -d '{"a": "foo"}'
curl -XPOST localhost:9200/test/test -d '{"a": "foo2"}'
curl -XPOST localhost:9200/test/test -d '{"a": "foo2"}'
curl -XPOST localhost:9200/test/test -d '{"a": "foo"}'
curl localhost:9200/test/_refresh
# ElasticsearchIllegalArgumentException[supersetFreq > supersetSize, in JLHScore.score(..)]
curl 'localhost:9200/test/_search?pretty&search_type=count' -d '{
"aggregations": {
"test": {
"significant_terms": {
"field": "a",
"background_filter": {
"match_all": {}
}
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment