Elasticsearch easy
Elasticsearch search results include a metadata field called `_score`. What does this value primarily indicate?
- A The price of the document if it were a marketplace item.
- B The relevance of the document relative to the specific search query (using algorithms like BM25).
- C The number of times the document has been clicked by other users.
- D The chronological order of the document in the database.
Answer: B. The relevance of the document relative to the specific search query (using algorithms like BM25).
Relevance is key to search. `_score` helps the application decide which document is the 'best' match. It factors in term frequency (how many times the word appears) and inverse document frequency (how rare the word is across the index).
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- What are the two primary reasons for configuring one or more 'Replica Shards' for an index?
- When a String field is mapped as `text`, what process is performed to enable full-text search capability?
- What is the primary benefit of splitting an Elasticsearch index into multiple 'Primary Shards'?
- Every document stored in an Elasticsearch index is uniquely tracked by which mandatory metadata field?
- What is the primary architectural purpose of Elasticsearch in a modern software stack?
- In the standard Elastic Stack architecture, what is the primary function of **Kibana**?