More Related Content Similar to Elastic development. Implementing Big Data search Grzegorz Kołpuć (20) Elastic development. Implementing Big Data search Grzegorz Kołpuć23. standard highlighter
"highlight": {
"StrEvntBriefBlob": [
"continues to see <b>pressure</b> on
internal growth"
]
}
"snippets": [
{
"snippet": "continues to see
<b>pressure</b> on internal growth",
"startOff": 2082,
"endOff": 2126,
"pages": [0],
"snippetID": 1
}
]
fvhEx highlighter
24. 2. Cross cluster search
cluster_threecluster_twocluster_one
newsfilings
research
events
27. "aggregations": {
"events_grouped": {
"terms": {"field": "group"},
"aggregations": {
"top_events": {
"top_hits": {
"size": 10,
"sort": [
{"date": {"order": "desc"}}
]
}
}
}
}
}
"aggs": {
"level2": {
"date_histogram": {
"field": "timestamp",
"interval": "day",
"order": {"_key": "desc"}
},
"aggs": {
"level3": {
"terms": {"field": "host"},
"aggs": {
"level4": {
"terms": {"field":
"apiRequest.appId"}
}
}
}}}}
28. 4. Geo search
distance filter
polygon filter
bounding box filter
shape query
"location": {
"type": "geo_shape",
"tree": "quadtree",
"precision": "1m"
}
"position": {
"type": "geo_point"
}
30. ‘total count of snippets’
{
"query": {
"function_score": {
"query": {
"query_string": {"query":
"Average "Running five""}
},
"script_score": {>>>>},
"boost_mode": "replace"
}
},
"sort": [{"_score": {}}]
}
"script_score": {
"script_id": "scount6",
"lang": "groovy",
"params": {
"terms": ["average"],
"phases": [
{
"distance": 1,
"phase": ["running","five"]
}
],
"fields": [{"field": "StrEvntTranscriptBlob",
"grp": 111}]
}
},
"boost_mode": "replace"