Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is _score in ES/Kibana?

I have this document in ES and I am looking at it through Kibana.

What does the _score field represent?

{
  "took": 2,
  "timed_out": false,
  "_shards": {
    "total": 11,
    "successful": 11,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": 1,
    "max_score": 0.2876821,
    "hits": [
      {
        "_index": "order",
        "_type": "ACKNOWLEDGED",
        "_id": "9901234567",
        "_score": 0.2876821,
        "_source": {
          "applicationCode": "SAPS00",
          "orderId": "9901234567",
          "status": "ACKNOWLEDGED",
          "orderUpdatedDateTime": "2018-07-08T10:12:21Z",
          "totals": {
            "orderShippingTaxAmount": 3.5,
            "orderSubtotalTaxAmount": 12.55,
            "grandTotalTaxAmount": 15
          },
          "orderLines": [
            {
              "lineId": "1",
              "unitPriceTaxAmount": 5.45,
              "totalPriceTaxAmount": 10.67,
              "lineShippingTaxAmount": null
            },
            {
              "lineId": "2",
              "unitPriceTaxAmount": 2.45,
              "totalPriceTaxAmount": 8.67,
              "lineShippingTaxAmount": null
            }
          ]
        }
      }
    ]
  }
}
like image 710
Blue Moon Avatar asked Oct 29 '18 12:10

Blue Moon


People also ask

What is Max score in Elasticsearch?

The idea is quite simple: say that you want to collect the top 10 matches, that the maximum score for the term "elasticsearch" is 3.0 and the maximum score for the term "kibana" is 5.0.

What is boost in Elasticsearch?

Returns documents matching a positive query while reducing the relevance score of documents that also match a negative query. You can use the boosting query to demote certain documents without excluding them from the search results.

What are filters in Elasticsearch?

A filter in Elasticsearch is all about applying some conditions inside the query that are used to narrow down the matching result set.

What search algorithm does Elasticsearch use?

Elasticsearch runs Lucene under the hood so by default it uses Lucene's Practical Scoring Function. This is a similarity model based on Term Frequency (tf) and Inverse Document Frequency (idf) that also uses the Vector Space Model (vsm) for multi-term queries.

What is Kibana?

What is Kibana? Kibana is an free and open frontend application that sits on top of the Elastic Stack, providing search and data visualization capabilities for data indexed in Elasticsearch.

Is Kibana supported by Elasticsearch?

Grafana, which ships with advanced support for Elasticsearch, looks great but isn’t officially supported/endorsed by Elastic. Kibana, on the other hand, is made and supported by Elastic. I’m wondering what people suggest in this situation."

What are the pros and cons of using Grafana over Kibana?

The top pros of Grafana (which it does better than Kibana ) are: Export / Import in JSON format (that allows you to version and save your dashboard as part of git) I use both Kibana and Grafana on my workplace: Kibana for logging and Grafana for monitoring.

What is canvas in Kibana?

Canvas is a data visualization and presentation application within Kibana. With Canvas, live data can be pulled directly from Elasticsearch and combined with colors, images, text, and other customized options to create dynamic, multi-page displays. Create and personalize a workspace with backgrounds, borders, colors, fonts, and more Why use Kibana?


Video Answer


1 Answers

The _score in Elasticsearch is a way of determining how relevant a match is to the query. The default scoring function used by Elasticsearch is actually the default built in to Lucene which is what Elasticsearch runs under the hood. Here's an article that describes scoring fairly well.

https://www.compose.com/articles/how-scoring-works-in-elasticsearch/

Elasticsearch runs Lucene under the hood so by default it uses Lucene's Practical Scoring Function. This is a similarity model based on Term Frequency (tf) and Inverse Document Frequency (idf) that also uses the Vector Space Model (vsm) for multi-term queries.

like image 187
Tim Avatar answered Oct 05 '22 03:10

Tim