Skip to content

Instantly share code, notes, and snippets.

@woahdae
Created March 18, 2015 05:54
Show Gist options
  • Save woahdae/1142fa956d28c2d84a57 to your computer and use it in GitHub Desktop.
Save woahdae/1142fa956d28c2d84a57 to your computer and use it in GitHub Desktop.
Elasticsearch query returning no source fields
{
"from": 0,
"size": 10,
"sort": [
{
"_score": {
"order": "desc"
},
"boost": {
"order": "desc",
"missing": "_last",
"ignore_unmapped": true
}
}
],
"query": {
"bool": {
"must": [
{
"function_score": {
"query": {
"filtered": {
"query": {
"match_all": {
}
},
"filter": {
"and": [
{
"match_all": {
}
}
]
}
}
},
"functions": [
{
"script_score": {
"script_id": "fauxNormalizeInventoryItems"
}
}
]
}
},
{
"dis_max": {
"queries": [
{
"function_score": {
"score_mode": "max",
"query": {
"filtered": {
"query": {
"match_all": {
}
},
"filter": {
"and": [
{
"term": {
"_type": "organization"
}
},
{
"geo_bounding_box": {
"organization.locations.coordinates": {
"top_left": {
"lat": 37.81892251706024,
"lon": -122.36382430479199
},
"bottom_right": {
"lat": 37.23999538461684,
"lon": -121.63381452064644
}
}
}
}
]
}
}
},
"functions": [
{
"filter": {
"geo_distance_range": {
"from": "0mi",
"to": "5mi",
"locations.coordinates": [
-121.9885719,
37.5482697
]
}
},
"script_score": {
"script_id": "echo",
"params": {
"value": 3
}
}
},
{
"filter": {
"geo_distance_range": {
"from": "5mi",
"to": "10mi",
"locations.coordinates": [
-121.9885719,
37.5482697
]
}
},
"script_score": {
"script_id": "echo",
"params": {
"value": 2
}
}
},
{
"filter": {
"geo_distance_range": {
"from": "10mi",
"to": "30mi",
"locations.coordinates": [
-121.9885719,
37.5482697
]
}
},
"script_score": {
"script_id": "echo",
"params": {
"value": 1
}
}
}
]
}
},
{
"nested": {
"path": "schedules",
"score_mode": "max",
"query": {
"function_score": {
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"geo_bounding_box": {
"schedules.location.coordinates": {
"top_left": {
"lat": 37.81892251706024,
"lon": -122.36382430479199
},
"bottom_right": {
"lat": 37.23999538461684,
"lon": -121.63381452064644
}
}
}
}
}
},
"functions": [
{
"filter": {
"geo_distance_range": {
"from": "0mi",
"to": "5mi",
"schedules.location.coordinates": [
-121.9885719,
37.5482697
]
}
},
"script_score": {
"script_id": "echo",
"params": {
"value": 3
}
}
},
{
"filter": {
"geo_distance_range": {
"from": "5mi",
"to": "10mi",
"schedules.location.coordinates": [
-121.9885719,
37.5482697
]
}
},
"script_score": {
"script_id": "echo",
"params": {
"value": 2
}
}
},
{
"filter": {
"geo_distance_range": {
"from": "10mi",
"to": "30mi",
"schedules.location.coordinates": [
-121.9885719,
37.5482697
]
}
},
"script_score": {
"script_id": "echo",
"params": {
"value": 1
}
}
}
]
}
}
}
}
]
}
}
]
}
},
"filter": {
"bool": {
"should": [
{
"and": [
{
"match_all": {
}
},
{
"nested": {
"path": "schedules",
"filter": {
"and": [
{
"match_all": {
}
}
]
}
}
}
]
},
{
"and": [
{
"match_all": {
}
}
]
}
]
}
},
"facets": {
"tags": {
"terms": {
"field": "tags.exact",
"size": 15
},
"facet_filter": {
"or": [
{
"term": {
"_type": "inventory_item"
}
},
{
"term": {
"_type": "organization"
}
}
]
}
},
"type": {
"terms": {
"field": "_type"
}
},
"selected_sessions": {
"nested": "schedules",
"facet_filter": {
"and": [
{
"match_all": {
}
},
{
"geo_bounding_box": {
"schedules.location.coordinates": {
"top_left": {
"lat": 37.81892251706024,
"lon": -122.36382430479199
},
"bottom_right": {
"lat": 37.23999538461684,
"lon": -121.63381452064644
}
}
}
}
]
},
"terms": {
"script": "doc[\"schedules.id\"].value + \"\n\" +doc[\"schedules.location.coordinates\"].lat + \"\n\" + doc[\"schedules.location.coordinates\"].lon + \"\n\" + doc[\"schedules.location.id\"].value",
"size": 5000
}
},
"discounts": {
"nested": "schedules",
"facet_filter": {
"and": [
{
"match_all": {
}
},
{
"geo_bounding_box": {
"schedules.location.coordinates": {
"top_left": {
"lat": 37.81892251706024,
"lon": -122.36382430479199
},
"bottom_right": {
"lat": 37.23999538461684,
"lon": -121.63381452064644
}
}
}
}
]
},
"terms": {
"field": "schedules.discount.active"
}
},
"locations": {
"nested": "schedules",
"facet_filter": {
"and": [
{
"match_all": {
}
},
{
"geo_bounding_box": {
"schedules.location.coordinates": {
"top_left": {
"lat": 37.81892251706024,
"lon": -122.36382430479199
},
"bottom_right": {
"lat": 37.23999538461684,
"lon": -121.63381452064644
}
}
}
}
]
},
"terms": {
"size": 10,
"field": "schedules.location.locality_hierarchy.exact"
}
},
"days_of_week": {
"nested": "schedules",
"facet_filter": {
"and": [
{
"match_all": {
}
},
{
"geo_bounding_box": {
"schedules.location.coordinates": {
"top_left": {
"lat": 37.81892251706024,
"lon": -122.36382430479199
},
"bottom_right": {
"lat": 37.23999538461684,
"lon": -121.63381452064644
}
}
}
}
]
},
"terms": {
"field": "schedules.days_of_week_array"
}
},
"dow_clustering": {
"nested": "schedules",
"facet_filter": {
"and": [
{
"match_all": {
}
},
{
"geo_bounding_box": {
"schedules.location.coordinates": {
"top_left": {
"lat": 37.81892251706024,
"lon": -122.36382430479199
},
"bottom_right": {
"lat": 37.23999538461684,
"lon": -121.63381452064644
}
}
}
}
]
},
"terms": {
"field": "schedules.day_clustering"
}
},
"time_of_day": {
"nested": "schedules",
"facet_filter": {
"and": [
{
"match_all": {
}
},
{
"geo_bounding_box": {
"schedules.location.coordinates": {
"top_left": {
"lat": 37.81892251706024,
"lon": -122.36382430479199
},
"bottom_right": {
"lat": 37.23999538461684,
"lon": -121.63381452064644
}
}
}
}
]
},
"terms": {
"field": "schedules.time_of_day"
}
},
"ages": {
"nested": "schedules",
"facet_filter": {
"and": [
{
"match_all": {
}
},
{
"geo_bounding_box": {
"schedules.location.coordinates": {
"top_left": {
"lat": 37.81892251706024,
"lon": -122.36382430479199
},
"bottom_right": {
"lat": 37.23999538461684,
"lon": -121.63381452064644
}
}
}
}
]
},
"terms": {
"field": "schedules.ages_array",
"size": 20
}
},
"cost": {
"nested": "schedules",
"facet_filter": {
"and": [
{
"match_all": {
}
},
{
"geo_bounding_box": {
"schedules.location.coordinates": {
"top_left": {
"lat": 37.81892251706024,
"lon": -122.36382430479199
},
"bottom_right": {
"lat": 37.23999538461684,
"lon": -121.63381452064644
}
}
}
}
]
},
"range": {
"field": "schedules.cost",
"ranges": [
{
"to": 50
},
{
"from": 50,
"to": 100
},
{
"from": 100,
"to": 250
},
{
"from": 250
}
]
}
},
"this_weekend": {
"nested": "schedules",
"facet_filter": {
"and": [
{
"match_all": {
}
},
{
"geo_bounding_box": {
"schedules.location.coordinates": {
"top_left": {
"lat": 37.81892251706024,
"lon": -122.36382430479199
},
"bottom_right": {
"lat": 37.23999538461684,
"lon": -121.63381452064644
}
}
}
}
]
},
"filter": {
"and": [
{
"range": {
"schedules.starts_on": {
"gte": "2015-03-21",
"lte": "2015-03-22"
}
}
},
{
"range": {
"schedules.ends_on": {
"gte": "2015-03-21",
"lte": "2015-03-22"
}
}
}
]
}
},
"next_weekend": {
"nested": "schedules",
"facet_filter": {
"and": [
{
"match_all": {
}
},
{
"geo_bounding_box": {
"schedules.location.coordinates": {
"top_left": {
"lat": 37.81892251706024,
"lon": -122.36382430479199
},
"bottom_right": {
"lat": 37.23999538461684,
"lon": -121.63381452064644
}
}
}
}
]
},
"filter": {
"and": [
{
"range": {
"schedules.starts_on": {
"gte": "2015-03-28",
"lte": "2015-03-29"
}
}
},
{
"range": {
"schedules.ends_on": {
"gte": "2015-03-28",
"lte": "2015-03-29"
}
}
}
]
}
},
"this_month": {
"nested": "schedules",
"facet_filter": {
"and": [
{
"match_all": {
}
},
{
"geo_bounding_box": {
"schedules.location.coordinates": {
"top_left": {
"lat": 37.81892251706024,
"lon": -122.36382430479199
},
"bottom_right": {
"lat": 37.23999538461684,
"lon": -121.63381452064644
}
}
}
}
]
},
"filter": {
"and": [
{
"range": {
"schedules.starts_on": {
"gte": "2015-03-18",
"lte": "2015-04-01"
}
}
},
{
"range": {
"schedules.ends_on": {
"gte": "2015-03-18",
"lte": "2015-04-01"
}
}
}
]
}
},
"next_month": {
"nested": "schedules",
"facet_filter": {
"and": [
{
"match_all": {
}
},
{
"geo_bounding_box": {
"schedules.location.coordinates": {
"top_left": {
"lat": 37.81892251706024,
"lon": -122.36382430479199
},
"bottom_right": {
"lat": 37.23999538461684,
"lon": -121.63381452064644
}
}
}
}
]
},
"filter": {
"and": [
{
"range": {
"schedules.starts_on": {
"gte": "2015-04-01",
"lte": "2015-05-01"
}
}
},
{
"range": {
"schedules.ends_on": {
"gte": "2015-04-01",
"lte": "2015-05-01"
}
}
}
]
}
},
"this_summer": {
"nested": "schedules",
"facet_filter": {
"and": [
{
"match_all": {
}
},
{
"geo_bounding_box": {
"schedules.location.coordinates": {
"top_left": {
"lat": 37.81892251706024,
"lon": -122.36382430479199
},
"bottom_right": {
"lat": 37.23999538461684,
"lon": -121.63381452064644
}
}
}
}
]
},
"filter": {
"and": [
{
"range": {
"schedules.starts_on": {
"gte": "2015-06-21",
"lte": "2015-09-22"
}
}
},
{
"range": {
"schedules.ends_on": {
"gte": "2015-06-21",
"lte": "2015-09-22"
}
}
}
]
}
}
},
"explain": true
}
{
"took":33,
"timed_out":false,
"_shards":{
"total":5,
"successful":5,
"failed":0
},
"hits":{
"total":129,
"max_score":null,
"hits":[
{
"_shard":0,
"_node":"YMcw7ZFSRb-mkkcAeK8jzQ",
"_index":"sigby-development-20150317_183538",
"_type":"inventory_item",
"_id":"934",
"_score":2.1213703,
"sort":[
2.1213703,
1.0
],
"_explanation":{
"value":2.1213703,
"description":"sum of:",
"details":[
{
"value":4.9999995E-5,
"description":"function score, product of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
},
{
"value":7.0710674E-5,
"description":"Math.min of",
"details":[
{
"value":7.0710674E-5,
"description":"function score, score mode [multiply]",
"details":[
{
"value":7.0710674E-5,
"description":"function score, product of:",
"details":[
{
"value":1.0,
"description":"match filter: *:*"
},
{
"value":7.0710674E-5,
"description":"script score function: composed of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
}
]
}
]
}
]
},
{
"value":3.4028235E38,
"description":"maxBoost"
}
]
},
{
"value":1.0,
"description":"queryBoost"
}
]
},
{
"value":2.1213202,
"description":"max of:",
"details":[
{
"value":2.1213202,
"description":"Score based on child doc range from 27 to 31"
}
]
}
]
}
},
{
"_shard":1,
"_node":"YMcw7ZFSRb-mkkcAeK8jzQ",
"_index":"sigby-development-20150317_183538",
"_type":"inventory_item",
"_id":"928",
"_score":2.1213703,
"sort":[
2.1213703,
1.0
],
"_explanation":{
"value":2.1213703,
"description":"sum of:",
"details":[
{
"value":4.9999995E-5,
"description":"function score, product of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
},
{
"value":7.0710674E-5,
"description":"Math.min of",
"details":[
{
"value":7.0710674E-5,
"description":"function score, score mode [multiply]",
"details":[
{
"value":7.0710674E-5,
"description":"function score, product of:",
"details":[
{
"value":1.0,
"description":"match filter: *:*"
},
{
"value":7.0710674E-5,
"description":"script score function: composed of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
}
]
}
]
}
]
},
{
"value":3.4028235E38,
"description":"maxBoost"
}
]
},
{
"value":1.0,
"description":"queryBoost"
}
]
},
{
"value":2.1213202,
"description":"max of:",
"details":[
{
"value":2.1213202,
"description":"Score based on child doc range from 26 to 31"
}
]
}
]
}
},
{
"_shard":1,
"_node":"YMcw7ZFSRb-mkkcAeK8jzQ",
"_index":"sigby-development-20150317_183538",
"_type":"inventory_item",
"_id":"930",
"_score":2.1213703,
"sort":[
2.1213703,
1.0
],
"_explanation":{
"value":2.1213703,
"description":"sum of:",
"details":[
{
"value":4.9999995E-5,
"description":"function score, product of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
},
{
"value":7.0710674E-5,
"description":"Math.min of",
"details":[
{
"value":7.0710674E-5,
"description":"function score, score mode [multiply]",
"details":[
{
"value":7.0710674E-5,
"description":"function score, product of:",
"details":[
{
"value":1.0,
"description":"match filter: *:*"
},
{
"value":7.0710674E-5,
"description":"script score function: composed of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
}
]
}
]
}
]
},
{
"value":3.4028235E38,
"description":"maxBoost"
}
]
},
{
"value":1.0,
"description":"queryBoost"
}
]
},
{
"value":2.1213202,
"description":"max of:",
"details":[
{
"value":2.1213202,
"description":"Score based on child doc range from 33 to 38"
}
]
}
]
}
},
{
"_shard":1,
"_node":"YMcw7ZFSRb-mkkcAeK8jzQ",
"_index":"sigby-development-20150317_183538",
"_type":"inventory_item",
"_id":"1155",
"_score":2.1213703,
"sort":[
2.1213703,
1.0
],
"_explanation":{
"value":2.1213703,
"description":"sum of:",
"details":[
{
"value":4.9999995E-5,
"description":"function score, product of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
},
{
"value":7.0710674E-5,
"description":"Math.min of",
"details":[
{
"value":7.0710674E-5,
"description":"function score, score mode [multiply]",
"details":[
{
"value":7.0710674E-5,
"description":"function score, product of:",
"details":[
{
"value":1.0,
"description":"match filter: *:*"
},
{
"value":7.0710674E-5,
"description":"script score function: composed of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
}
]
}
]
}
]
},
{
"value":3.4028235E38,
"description":"maxBoost"
}
]
},
{
"value":1.0,
"description":"queryBoost"
}
]
},
{
"value":2.1213202,
"description":"max of:",
"details":[
{
"value":2.1213202,
"description":"Score based on child doc range from 79 to 79"
}
]
}
]
}
},
{
"_shard":1,
"_node":"YMcw7ZFSRb-mkkcAeK8jzQ",
"_index":"sigby-development-20150317_183538",
"_type":"inventory_item",
"_id":"1206",
"_score":2.1213703,
"sort":[
2.1213703,
1.0
],
"_explanation":{
"value":2.1213703,
"description":"sum of:",
"details":[
{
"value":4.9999995E-5,
"description":"function score, product of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
},
{
"value":7.0710674E-5,
"description":"Math.min of",
"details":[
{
"value":7.0710674E-5,
"description":"function score, score mode [multiply]",
"details":[
{
"value":7.0710674E-5,
"description":"function score, product of:",
"details":[
{
"value":1.0,
"description":"match filter: *:*"
},
{
"value":7.0710674E-5,
"description":"script score function: composed of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
}
]
}
]
}
]
},
{
"value":3.4028235E38,
"description":"maxBoost"
}
]
},
{
"value":1.0,
"description":"queryBoost"
}
]
},
{
"value":2.1213202,
"description":"max of:",
"details":[
{
"value":2.1213202,
"description":"Score based on child doc range from 90 to 96"
}
]
}
]
}
},
{
"_shard":2,
"_node":"YMcw7ZFSRb-mkkcAeK8jzQ",
"_index":"sigby-development-20150317_183538",
"_type":"inventory_item",
"_id":"929",
"_score":2.1213703,
"sort":[
2.1213703,
1.0
],
"_explanation":{
"value":2.1213703,
"description":"sum of:",
"details":[
{
"value":4.9999995E-5,
"description":"function score, product of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
},
{
"value":7.0710674E-5,
"description":"Math.min of",
"details":[
{
"value":7.0710674E-5,
"description":"function score, score mode [multiply]",
"details":[
{
"value":7.0710674E-5,
"description":"function score, product of:",
"details":[
{
"value":1.0,
"description":"match filter: *:*"
},
{
"value":7.0710674E-5,
"description":"script score function: composed of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
}
]
}
]
}
]
},
{
"value":3.4028235E38,
"description":"maxBoost"
}
]
},
{
"value":1.0,
"description":"queryBoost"
}
]
},
{
"value":2.1213202,
"description":"max of:",
"details":[
{
"value":2.1213202,
"description":"Score based on child doc range from 27 to 32"
}
]
}
]
}
},
{
"_shard":2,
"_node":"YMcw7ZFSRb-mkkcAeK8jzQ",
"_index":"sigby-development-20150317_183538",
"_type":"inventory_item",
"_id":"931",
"_score":2.1213703,
"sort":[
2.1213703,
1.0
],
"_explanation":{
"value":2.1213703,
"description":"sum of:",
"details":[
{
"value":4.9999995E-5,
"description":"function score, product of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
},
{
"value":7.0710674E-5,
"description":"Math.min of",
"details":[
{
"value":7.0710674E-5,
"description":"function score, score mode [multiply]",
"details":[
{
"value":7.0710674E-5,
"description":"function score, product of:",
"details":[
{
"value":1.0,
"description":"match filter: *:*"
},
{
"value":7.0710674E-5,
"description":"script score function: composed of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
}
]
}
]
}
]
},
{
"value":3.4028235E38,
"description":"maxBoost"
}
]
},
{
"value":1.0,
"description":"queryBoost"
}
]
},
{
"value":2.1213202,
"description":"max of:",
"details":[
{
"value":2.1213202,
"description":"Score based on child doc range from 34 to 39"
}
]
}
]
}
},
{
"_shard":2,
"_node":"YMcw7ZFSRb-mkkcAeK8jzQ",
"_index":"sigby-development-20150317_183538",
"_type":"inventory_item",
"_id":"936",
"_score":2.1213703,
"sort":[
2.1213703,
1.0
],
"_explanation":{
"value":2.1213703,
"description":"sum of:",
"details":[
{
"value":4.9999995E-5,
"description":"function score, product of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
},
{
"value":7.0710674E-5,
"description":"Math.min of",
"details":[
{
"value":7.0710674E-5,
"description":"function score, score mode [multiply]",
"details":[
{
"value":7.0710674E-5,
"description":"function score, product of:",
"details":[
{
"value":1.0,
"description":"match filter: *:*"
},
{
"value":7.0710674E-5,
"description":"script score function: composed of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
}
]
}
]
}
]
},
{
"value":3.4028235E38,
"description":"maxBoost"
}
]
},
{
"value":1.0,
"description":"queryBoost"
}
]
},
{
"value":2.1213202,
"description":"max of:",
"details":[
{
"value":2.1213202,
"description":"Score based on child doc range from 41 to 45"
}
]
}
]
}
},
{
"_shard":2,
"_node":"YMcw7ZFSRb-mkkcAeK8jzQ",
"_index":"sigby-development-20150317_183538",
"_type":"inventory_item",
"_id":"1156",
"_score":2.1213703,
"sort":[
2.1213703,
1.0
],
"_explanation":{
"value":2.1213703,
"description":"sum of:",
"details":[
{
"value":4.9999995E-5,
"description":"function score, product of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
},
{
"value":7.0710674E-5,
"description":"Math.min of",
"details":[
{
"value":7.0710674E-5,
"description":"function score, score mode [multiply]",
"details":[
{
"value":7.0710674E-5,
"description":"function score, product of:",
"details":[
{
"value":1.0,
"description":"match filter: *:*"
},
{
"value":7.0710674E-5,
"description":"script score function: composed of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
}
]
}
]
}
]
},
{
"value":3.4028235E38,
"description":"maxBoost"
}
]
},
{
"value":1.0,
"description":"queryBoost"
}
]
},
{
"value":2.1213202,
"description":"max of:",
"details":[
{
"value":2.1213202,
"description":"Score based on child doc range from 85 to 85"
}
]
}
]
}
},
{
"_shard":2,
"_node":"YMcw7ZFSRb-mkkcAeK8jzQ",
"_index":"sigby-development-20150317_183538",
"_type":"inventory_item",
"_id":"1377",
"_score":2.1213703,
"sort":[
2.1213703,
1.0
],
"_explanation":{
"value":2.1213703,
"description":"sum of:",
"details":[
{
"value":4.9999995E-5,
"description":"function score, product of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
},
{
"value":7.0710674E-5,
"description":"Math.min of",
"details":[
{
"value":7.0710674E-5,
"description":"function score, score mode [multiply]",
"details":[
{
"value":7.0710674E-5,
"description":"function score, product of:",
"details":[
{
"value":1.0,
"description":"match filter: *:*"
},
{
"value":7.0710674E-5,
"description":"script score function: composed of:",
"details":[
{
"value":0.70710677,
"description":"ConstantScore(+*:*), product of:",
"details":[
{
"value":1.0,
"description":"boost"
},
{
"value":0.70710677,
"description":"queryNorm"
}
]
}
]
}
]
}
]
},
{
"value":3.4028235E38,
"description":"maxBoost"
}
]
},
{
"value":1.0,
"description":"queryBoost"
}
]
},
{
"value":2.1213202,
"description":"max of:",
"details":[
{
"value":2.1213202,
"description":"Score based on child doc range from 134 to 135"
}
]
}
]
}
}
]
},
"facets":{
"tags":{
"_type":"terms",
"missing":129,
"total":0,
"other":0,
"terms":[
]
},
"type":{
"_type":"terms",
"missing":0,
"total":129,
"other":0,
"terms":[
{
"term":"organization",
"count":108
},
{
"term":"inventory_item",
"count":21
}
]
},
"selected_sessions":{
"_type":"terms",
"missing":0,
"total":81,
"other":0,
"terms":[
{
"term":"713\n37.51786\n-122.0104115\n382",
"count":1
},
{
"term":"712\n37.51786\n-122.0104115\n382",
"count":1
},
{
"term":"711\n37.51786\n-122.0104115\n382",
"count":1
},
{
"term":"710\n37.51786\n-122.0104115\n382",
"count":1
},
{
"term":"709\n37.51786\n-122.0104115\n382",
"count":1
},
{
"term":"708\n37.51786\n-122.0104115\n382",
"count":1
},
{
"term":"707\n37.51786\n-122.0104115\n382",
"count":1
},
{
"term":"706\n37.552409\n-121.9820493\n377",
"count":1
},
{
"term":"705\n37.552409\n-121.9820493\n377",
"count":1
},
{
"term":"704\n37.552409\n-121.9820493\n377",
"count":1
},
{
"term":"703\n37.552409\n-121.9820493\n377",
"count":1
},
{
"term":"702\n37.552409\n-121.9820493\n377",
"count":1
},
{
"term":"701\n37.552409\n-121.9820493\n377",
"count":1
},
{
"term":"700\n37.51786\n-122.0104115\n353",
"count":1
},
{
"term":"699\n37.51786\n-122.0104115\n353",
"count":1
},
{
"term":"698\n37.4327872\n-121.8988355\n351",
"count":1
},
{
"term":"697\n37.4327872\n-121.8988355\n351",
"count":1
},
{
"term":"696\n37.4327872\n-121.8988355\n351",
"count":1
},
{
"term":"695\n37.4327872\n-121.8988355\n351",
"count":1
},
{
"term":"692\n37.4327872\n-121.8988355\n351",
"count":1
},
{
"term":"691\n37.4327872\n-121.8988355\n351",
"count":1
},
{
"term":"689\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"688\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"687\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"686\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"685\n37.5423872\n-121.9399871\n339",
"count":1
},
{
"term":"684\n37.5423872\n-121.9399871\n339",
"count":1
},
{
"term":"683\n37.5423872\n-121.9399871\n339",
"count":1
},
{
"term":"682\n37.5423872\n-121.9399871\n339",
"count":1
},
{
"term":"681\n37.5423872\n-121.9399871\n339",
"count":1
},
{
"term":"680\n37.5423872\n-121.9399871\n339",
"count":1
},
{
"term":"679\n37.5423872\n-121.9399871\n339",
"count":1
},
{
"term":"661\n37.5579165\n-121.9525249\n325",
"count":1
},
{
"term":"660\n37.5579165\n-121.9525249\n325",
"count":1
},
{
"term":"659\n37.5579165\n-121.9525249\n325",
"count":1
},
{
"term":"658\n37.5579165\n-121.9525249\n325",
"count":1
},
{
"term":"653\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"652\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"651\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"650\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"649\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"648\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"647\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"646\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"645\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"620\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"619\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"618\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"617\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"616\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"615\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"614\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"613\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"612\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"600\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"599\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"598\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"597\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"596\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"595\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"594\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"593\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"592\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"591\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"590\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"589\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"588\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"587\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"586\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"585\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"584\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"583\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"571\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"570\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"569\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"568\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"567\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"566\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"565\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"564\n37.5269086\n-121.9510779\n231",
"count":1
},
{
"term":"563\n37.5269086\n-121.9510779\n231",
"count":1
}
]
},
"discounts":{
"_type":"terms",
"missing":81,
"total":0,
"other":0,
"terms":[
]
},
"locations":{
"_type":"terms",
"missing":81,
"total":0,
"other":0,
"terms":[
]
},
"days_of_week":{
"_type":"terms",
"missing":0,
"total":143,
"other":0,
"terms":[
{
"term":"W",
"count":33
},
{
"term":"Tu",
"count":30
},
{
"term":"F",
"count":27
},
{
"term":"M",
"count":26
},
{
"term":"Th",
"count":16
},
{
"term":"Sa",
"count":6
},
{
"term":"Su",
"count":5
}
]
},
"dow_clustering":{
"_type":"terms",
"missing":0,
"total":81,
"other":0,
"terms":[
{
"term":"weekdays",
"count":70
},
{
"term":"weekends",
"count":11
}
]
},
"time_of_day":{
"_type":"terms",
"missing":0,
"total":81,
"other":0,
"terms":[
{
"term":"afternoon",
"count":70
},
{
"term":"morning",
"count":11
}
]
},
"ages":{
"_type":"terms",
"missing":0,
"total":1976,
"other":1378,
"terms":[
{
"term":10,
"count":63
},
{
"term":11,
"count":59
},
{
"term":9,
"count":57
},
{
"term":8,
"count":52
},
{
"term":7,
"count":50
},
{
"term":12,
"count":44
},
{
"term":14,
"count":30
},
{
"term":13,
"count":30
},
{
"term":6,
"count":21
},
{
"term":5,
"count":21
},
{
"term":4,
"count":21
},
{
"term":3,
"count":18
},
{
"term":99,
"count":17
},
{
"term":98,
"count":17
},
{
"term":97,
"count":17
},
{
"term":96,
"count":17
},
{
"term":95,
"count":17
},
{
"term":94,
"count":17
},
{
"term":93,
"count":15
},
{
"term":92,
"count":15
}
]
},
"cost":{
"_type":"range",
"ranges":[
{
"to":50.0,
"count":0,
"total_count":0,
"total":0.0,
"mean":0.0
},
{
"from":50.0,
"to":100.0,
"count":6,
"min":55.0,
"max":74.0,
"total_count":6,
"total":373.0,
"mean":62.166666666666664
},
{
"from":100.0,
"to":250.0,
"count":53,
"min":109.0,
"max":240.0,
"total_count":53,
"total":10167.0,
"mean":191.83018867924528
},
{
"from":250.0,
"count":22,
"min":260.0,
"max":525.0,
"total_count":22,
"total":9430.0,
"mean":428.6363636363636
}
]
},
"this_weekend":{
"_type":"filter",
"count":0
},
"next_weekend":{
"_type":"filter",
"count":0
},
"this_month":{
"_type":"filter",
"count":0
},
"next_month":{
"_type":"filter",
"count":0
},
"this_summer":{
"_type":"filter",
"count":6
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment