I'm use latest version of ES(0.15) and had some problems with
highlighting.
Data :
{
...
streamType: Feed
message: bla bla bla post bla bla 1 bla
tenantId: 1
...
}
I haven't used highlighting before, so I'm not sure if this is a bug or
not.
It looks to me like the '1' is being highlighted because you specify
{tenantId: 1} as part of the query, when actually you want it to be
applied as a filter.
It looks to me like the '1' is being highlighted because you specify
{tenantId: 1} as part of the query, when actually you want it to be
applied as a filter.
Yes i'm think so(because tenantId part of query).
I am not sure that filter will be good for me, because there
can be more than 100 000 hits (even more than 1000 000 hits),
and apply filter to this operation will be less productive than
query.
On the contrary, you definitely want to use filters - they are faster
than queries because ES doesn't have to calculate the scores.
It looks to me like the '1' is being highlighted because you specify
{tenantId: 1} as part of the query, when actually you want it to be
applied as a filter.
Yes i'm think so(because tenantId part of query).
I am not sure that filter will be good for me, because there
can be more than 100 000 hits (even more than 1000 000 hits),
and apply filter to this operation will be less productive than
query.
On the contrary, you definitely want to use filters - they are faster
than queries because ES doesn't have to calculate the scores.
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.