Created
February 5, 2015 09:51
-
-
Save radu-gheorghe/0f9e1a04b11dc4e1f32b to your computer and use it in GitHub Desktop.
Elasticsearch significant terms background filtering size oddities
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 -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