Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discover][docs] Add search for relevance #90611

Merged
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
146866f
Add search for relevance
kertal Feb 8, 2021
92209db
Fix broken reference, improve size of image
kertal Feb 8, 2021
d1ccf31
Improve text
kertal Feb 9, 2021
e5e43cd
Add missing _score formatting
kertal Feb 9, 2021
494f737
Rewrite a little bit
kertal Feb 9, 2021
09ffbfa
Merge remote-tracking branch 'upstream/master' into kertal-pr-2021-02…
kertal Feb 9, 2021
2deaab4
Update docs/discover/search-for-relevance.asciidoc
kertal Feb 10, 2021
c012ee9
Update docs/discover/search-for-relevance.asciidoc
kertal Feb 10, 2021
4e4922f
Update docs/discover/search-for-relevance.asciidoc
kertal Feb 10, 2021
2ee9bf1
Update docs/discover/search-for-relevance.asciidoc
kertal Feb 10, 2021
d2ced4d
Update docs/discover/search-for-relevance.asciidoc
kertal Feb 10, 2021
22710c9
Update docs/discover/search-for-relevance.asciidoc
kertal Feb 10, 2021
e13f4d9
Update docs/discover/search-for-relevance.asciidoc
kertal Feb 10, 2021
cb23b68
Update docs/discover/search-for-relevance.asciidoc
kertal Feb 10, 2021
cde859d
Update docs/discover/search-for-relevance.asciidoc
kertal Feb 10, 2021
abcc21d
Update docs/discover/search-for-relevance.asciidoc
kertal Feb 10, 2021
58582cb
Update search-for-relevance.asciidoc
kertal Feb 10, 2021
a05c359
Merge branch 'master' into kertal-pr-2021-02-08-docs-search-for-relev…
kibanamachine Feb 18, 2021
810dcbb
Update docs/discover/search-for-relevance.asciidoc
kertal Feb 25, 2021
04a9946
Update docs/discover/search-for-relevance.asciidoc
kertal Feb 25, 2021
e3e25e7
Update docs/discover/search-for-relevance.asciidoc
kertal Feb 25, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions docs/discover/search-for-relevance.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[[discover-search-for-relevance]]
=== Search for relevance
kertal marked this conversation as resolved.
Show resolved Hide resolved
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 you search to the documents with the most relevant results.
kertal marked this conversation as resolved.
Show resolved Hide resolved
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.
. Click the header for the `_score` column and sort it by descending scores.
kertal marked this conversation as resolved.
Show resolved Hide resolved
+
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"]
kertal marked this conversation as resolved.
Show resolved Hide resolved
image::images/discover-search-for-relevance.png["Example of a search for relevance"]
5 changes: 4 additions & 1 deletion docs/user/discover.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ image:images/visualize-from-discover.png[Visualization that opens from Discover
[float]
=== What’s next?


* <<kuery-query, Learn more about the structure of a KQL query>>.

* <<kibana-discover-settings, Configure Discover>> to better meet your needs.
Expand All @@ -209,10 +208,14 @@ the table columns that display by default, and more.

* <<reporting-getting-started, Present your findings in a report>>.

* <<discover-search-for-relevance, Search for relevance>>.

--

include::{kib-repo-dir}/management/index-patterns.asciidoc[]

include::{kib-repo-dir}/discover/set-time-filter.asciidoc[]

include::{kib-repo-dir}/discover/search.asciidoc[]

include::{kib-repo-dir}/discover/search-for-relevance.asciidoc[]