Change default similarity to BM25 for all fields

How can I change Elastic Search to use BM25 sinstead of the default tf-idf
similarity for all fields of my index? I the docs, I could find only how to
set the the similarity per field using the put mapping API. I would like
that Elastic Search use BM25 if I don't explicitly define a similarity. Is
that possible?

Aécio Santos

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Just found that adding the following line in config/elasticsearch.yml works
(at least when using "explain: true", the parameters of BM25 similartity
are shown in the score explanation).

index.similarity.default.type: BM25

Maybe this should be added in the documentation of the similarity module:

2013/5/31 Aécio aecio.solando@gmail.com

How can I change Elastic Search to use BM25 sinstead of the default tf-idf
similarity for all fields of my index? I the docs, I could find only how to
set the the similarity per field using the put mapping API. I would like
that Elastic Search use BM25 if I don't explicitly define a similarity. Is
that possible?

Aécio Santos

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

it is actually documented in the last paragraph, but we have to improve
here. Please open a github issue at
https://github.com/elasticsearch/elasticsearch.github.com if you find
problems like this, so we do not forget it...

--Alex

On Mon, Jun 3, 2013 at 4:47 PM, Aécio aecio.solando@gmail.com wrote:

Just found that adding the following line in config/elasticsearch.yml
works (at least when using "explain: true", the parameters of BM25
similartity are shown in the score explanation).

index.similarity.default.type: BM25

Maybe this should be added in the documentation of the similarity module:
Elasticsearch Platform — Find real-time answers at scale | Elastic

2013/5/31 Aécio aecio.solando@gmail.com

How can I change Elastic Search to use BM25 sinstead of the default
tf-idf similarity for all fields of my index? I the docs, I could find only
how to set the the similarity per field using the put mapping API. I would
like that Elastic Search use BM25 if I don't explicitly define a
similarity. Is that possible?

Aécio Santos

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.