-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: gchaps <[email protected]> Co-authored-by: Lisa Cawley <[email protected]> Co-authored-by: gchaps <[email protected]> Co-authored-by: Lisa Cawley <[email protected]>
- Loading branch information
1 parent
7f5f914
commit 3aa70c4
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[[discover-search-for-relevance]] | ||
== Search for relevance | ||
Sometimes you might be unsure which documents best match your question. | ||
{es} assigns a relevancy, or score to each document, so you can | ||
can narrow your search to the documents with the most relevant results. | ||
The higher the score, the better it matches your query. | ||
|
||
For example, suppose you have the <<gs-get-data-into-kibana, sample flights data set>>, and you're a searching for | ||
a flight that arrived or departed from `Warsaw` or `Venice` when the weather was clear. | ||
|
||
. In *Discover*, open the index pattern dropdown, and select `kibana_sample_data_flight`. | ||
. In the query bar, click *KQL*, and switch to the <<lucene-query, Lucene query syntax>>. | ||
. Search for `Warsaw OR Venice OR Clear`. | ||
. If you don't see any results, open the time filter and select a time range that contains data. | ||
. From the list of *Available fields*, add `_score` to the document table. | ||
. In the document table, click the header for the `_score` column, and then sort the column by descending scores. | ||
+ | ||
The results are currently sorted by first `Time`, and then by `_score`. | ||
. To sort only by `_score`, remove the `Time` field. | ||
+ | ||
Your table now shows documents with the best matches, from most to least relevant. | ||
+ | ||
[role="screenshot"] | ||
image::images/discover-search-for-relevance.png["Example of a search for relevance"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters