You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/maps/search.asciidoc
+2-53Lines changed: 2 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,8 @@
2
2
[[maps-search]]
3
3
== Searching your data
4
4
5
-
**Elastic Maps** embeds the search bar for real-time search.
5
+
**Elastic Maps** embeds the query bar for real-time ad hoc search.
6
6
Only layers requesting data from {es} are filtered when you submit a search request.
7
-
Layers narrowed by the search context contain the filter icon image:maps/images/filter_icon.png[] to the right of layer name in the legend.
8
7
9
8
You can create a layer that requests data from {es} from the following:
10
9
@@ -14,51 +13,13 @@ You can create a layer that requests data from {es} from the following:
14
13
15
14
** Grid aggregation source
16
15
17
-
** <<terms-join>>. The search context is applied to both the terms join and the vector source when the vector source is provided by Elasticsearch documents.
16
+
** <<terms-join>>
18
17
19
18
* <<heatmap-layer>> with Grid aggregation source
20
19
21
20
[role="screenshot"]
22
21
image::maps/images/global_search_bar.png[]
23
22
24
-
[role="xpack"]
25
-
[[maps-create-filter-from-map]]
26
-
=== Creating filters from your map
27
-
28
-
You can create two types of filters by interacting with your map:
29
-
30
-
* <<maps-spatial-filters, Spatial filters>>
31
-
* <<maps-phrase-filter, Phrase filters>>
32
-
33
-
[float]
34
-
[[maps-spatial-filters]]
35
-
==== Spatial filters
36
-
37
-
A spatial filter narrow searchs results to documents that either intersect with, are within, or do not intersect with the specified geometry.
38
-
39
-
You can create spatial filters in two ways:
40
-
41
-
* Click the tool icon image:maps/images/tools_icon.png[], and then draw a polygon or bounding box on the map to define the spatial filter.
42
-
* Click *Filter by geometry* in a tooltip, and then use the feature's geometry for the spatial filter.
43
-
+
44
-
[role="screenshot"]
45
-
image::maps/images/create_spatial_filter.png[]
46
-
47
-
Spatial filters have the following properties:
48
-
49
-
* *Geometry label* enables you to provide a meaningful name for your spatial filter.
50
-
* *Spatial field* specifies the geo_point or geo_shape field used to determine if a document matches the spatial relation with the specified geometry.
51
-
* *Spatial relation* determines the {ref}/query-dsl-geo-shape-query.html#_spatial_relations.html[spatial relation operator] to use at search time. Only available when *Spatial field* is set to geo_shape.
52
-
53
-
[float]
54
-
[[maps-phrase-filter]]
55
-
==== Phrase filters
56
-
57
-
A phrase filter narrows search results to documents that contain the specified text.
58
-
You can create a phrase filter by clicking the plus icon image:maps/images/gs_plus_icon.png[] in a feature tooltip.
59
-
60
-
[role="screenshot"]
61
-
image::maps/images/create_phrase_filter.png[]
62
23
63
24
[role="xpack"]
64
25
[[maps-layer-based-filtering]]
@@ -82,18 +43,6 @@ This can also occur with a single layer with an {es} source and a <<terms-join>>
82
43
83
44
Searching across multiple indices might sometimes result in empty layers.
84
45
The most common cause for empty layers are searches for a field that exists in one index, but does not exist in other indices.
85
-
86
-
[float]
87
-
[[maps-disable-search-for-layer]]
88
-
==== Disable search for layer
89
-
90
-
To prevent the global search bar from applying search context to a layer, clear the *Apply global filter to layer* checkbox in Layer settings.
91
-
Disabling the search context applies to the layer source and all <<terms-join, term joins>> configured for the layer.
92
-
93
-
[float]
94
-
[[maps-add-index-search]]
95
-
==== Use _index in your search
96
-
97
46
Add {ref}/mapping-index-field.html[_index] to your search to include documents from indices that do not contain a search field.
98
47
99
48
For example, suppose you have a vector layer showing the `kibana_sample_data_logs` documents
0 commit comments