AlexIoannides/elasticsearchr

Return relevance score for %search%

tkollo opened this issue · 2 comments

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

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.

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.