AlexIoannides / elasticsearchr

Lightweight Elasticsearch client for R.
https://alexioannides.com/2016/11/28/elasticsearchr-a-lightweight-elasticsearch-client-for-r/
54 stars 19 forks source link

Return relevance score for %search% #24

Open tkollo opened 7 years ago

tkollo commented 7 years ago

It would be very useful if the relevance score would be returned, maybe with option to use '?explain' as well.

AlexIoannides commented 7 years ago

I'm not sure this lies within the intended scope of the project, which is to use Elasticsearch as a distributed analytics database.

How do you envisage the relevance score being returned - e.g. as a default column in all data.frames containing the query results, or do you have some other idea in mind? A tangible example would be useful.

tkollo commented 7 years ago

I think just as a simple column in the dataframe, similarly to @version, an idea for it`s use would be to be able to set up a 'cutoff' when using elastic for search another idea is to use the @score as an input for probabilistic record-linkage.