My elasticsearch version is 1.1.1. I have a 20 shards and 0 replica index
having 4m docs.
It is fast (1ms) for my query.
{
took: 1
timed_out: false
_shards: {
total: 20
successful: 20
failed: 0
}
hits: {
total: 0
max_score: null
hits: [ ]
}
}
We do the query with terms facet on a high cardinality field 'a'. The query
result is 0 hit and I assume it should be fast enough to calculate the
terms facet(should be 0 term).
But when I fetching the terms from 0 hits, I got this
{
took: 46
timed_out: false
_shards: {
total: 20
successful: 20
failed: 0
}
hits: {
total: 0
max_score: null
hits: [ ]
}
facets: {
fc: a: {
_type: terms
missing: 0
total: 0
other: 0
terms: [ ]
}
}
}
, which took much more than 1ms for the terms facet.
May I know is the terms facet not applied on the result hits only?
Is this a repeated test? There might be some cache loading going on during
the first request. Values must be loaded into the cache before they can be
filtered on. Try a repeated test.
My elasticsearch version is 1.1.1. I have a 20 shards and 0 replica index
having 4m docs.
It is fast (1ms) for my query.
{
took: 1
timed_out: false
_shards: {
total: 20
successful: 20
failed: 0
}
hits: {
total: 0
max_score: null
hits:
}
}
We do the query with terms facet on a high cardinality field 'a'. The
query result is 0 hit and I assume it should be fast enough to calculate
the terms facet(should be 0 term).
But when I fetching the terms from 0 hits, I got this
{
took: 46
timed_out: false
_shards: {
total: 20
successful: 20
failed: 0
}
hits: {
total: 0
max_score: null
hits:
}
facets: {
fc: a: {
_type: terms
missing: 0
total: 0
other: 0
terms:
}
}
}
, which took much more than 1ms for the terms facet.
May I know is the terms facet not applied on the result hits only?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.