Skip to content

Instantly share code, notes, and snippets.

@kostromich
Created August 5, 2016 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kostromich/4931a496183de5ea345bf18520d0d49d to your computer and use it in GitHub Desktop.
Save kostromich/4931a496183de5ea345bf18520d0d49d to your computer and use it in GitHub Desktop.
[
'took' => 3
'timed_out' => false
'_shards' => [
'total' => 5
'successful' => 5
'failed' => 0
]
'hits' => [
'total' => 329
'max_score' => 0.08075056
'hits' => [
0 => [
'_shard' => 4
'_node' => 'NuAmcO2ZS-SKOuIrRpI6Gg'
'_index' => 'es'
'_type' => 'ru'
'_id' => '81010031'
'_score' => 0.08075056
'fields' => [
'INSERT_en.NAME' => [
0 => 'Swarovski Zirconia'
1 => 'Swarovski Zirconia'
2 => 'Swarovski Zirconia'
]
'INSERT_en.TYPE' => [
0 => 'Cubic zirconia'
1 => 'Cubic zirconia'
2 => 'Cubic zirconia'
3 => 'Cubic zirconia'
4 => 'Cubic zirconia'
5 => 'Cubic zirconia'
]
'INSERT_en.COLOR' => [
0 => 'Colorless'
1 => 'Colorless'
2 => 'Colorless'
]
'CATEGORY_en' => [
0 => 'Rings'
]
]
'_explanation' => [
'value' => 0.08075056
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.08075056
'description' => 'product of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'Score based on child doc range from 21969 to 21983'
'details' => []
]
]
]
1 => [
'value' => 0.33333334
'description' => 'coord(1/3)'
'details' => []
]
]
]
1 => [
'value' => 0
'description' => 'match on required clause, product of:'
'details' => [
0 => [
'value' => 0
'description' => '# clause'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => '_type:ru, product of:'
'details' => [
0 => [
'value' => 1
'description' => 'boost'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => 'queryNorm'
'details' => []
]
]
]
]
]
]
]
]
1 => [
'_shard' => 4
'_node' => 'NuAmcO2ZS-SKOuIrRpI6Gg'
'_index' => 'es'
'_type' => 'ru'
'_id' => '81010163'
'_score' => 0.08075056
'fields' => [
'INSERT_en.NAME' => [
0 => 'Swarovski Zirconia'
1 => 'Swarovski Zirconia'
2 => 'Swarovski Zirconia'
]
'INSERT_en.TYPE' => [
0 => 'Cubic zirconia'
1 => 'Cubic zirconia'
2 => 'Cubic zirconia'
3 => 'Cubic zirconia'
4 => 'Cubic zirconia'
5 => 'Cubic zirconia'
]
'INSERT_en.COLOR' => [
0 => 'Colorless'
1 => 'Colorless'
2 => 'Colorless'
]
'CATEGORY_en' => [
0 => 'Rings'
]
]
'_explanation' => [
'value' => 0.08075056
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.08075056
'description' => 'product of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'Score based on child doc range from 21991 to 22005'
'details' => []
]
]
]
1 => [
'value' => 0.33333334
'description' => 'coord(1/3)'
'details' => []
]
]
]
1 => [
'value' => 0
'description' => 'match on required clause, product of:'
'details' => [
0 => [
'value' => 0
'description' => '# clause'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => '_type:ru, product of:'
'details' => [
0 => [
'value' => 1
'description' => 'boost'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => 'queryNorm'
'details' => []
]
]
]
]
]
]
]
]
2 => [
'_shard' => 4
'_node' => 'NuAmcO2ZS-SKOuIrRpI6Gg'
'_index' => 'es'
'_type' => 'ru'
'_id' => '81010202'
'_score' => 0.08075056
'fields' => [
'INSERT_en.NAME' => [
0 => 'Swarovski Zirconia'
1 => 'Swarovski Zirconia'
2 => 'Swarovski Zirconia'
]
'INSERT_en.TYPE' => [
0 => 'Cubic zirconia'
1 => 'Cubic zirconia'
2 => 'Cubic zirconia'
3 => 'Cubic zirconia'
4 => 'Cubic zirconia'
5 => 'Cubic zirconia'
]
'INSERT_en.COLOR' => [
0 => 'Colorless'
1 => 'Colorless'
2 => 'Colorless'
]
'CATEGORY_en' => [
0 => 'Rings'
]
]
'_explanation' => [
'value' => 0.08075056
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.08075056
'description' => 'product of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'Score based on child doc range from 22073 to 22087'
'details' => []
]
]
]
1 => [
'value' => 0.33333334
'description' => 'coord(1/3)'
'details' => []
]
]
]
1 => [
'value' => 0
'description' => 'match on required clause, product of:'
'details' => [
0 => [
'value' => 0
'description' => '# clause'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => '_type:ru, product of:'
'details' => [
0 => [
'value' => 1
'description' => 'boost'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => 'queryNorm'
'details' => []
]
]
]
]
]
]
]
]
3 => [
'_shard' => 4
'_node' => 'NuAmcO2ZS-SKOuIrRpI6Gg'
'_index' => 'es'
'_type' => 'ru'
'_id' => '81010232'
'_score' => 0.08075056
'fields' => [
'INSERT_en.NAME' => [
0 => 'Swarovski Zirconia'
1 => 'Swarovski Zirconia'
2 => 'Swarovski Zirconia'
]
'INSERT_en.TYPE' => [
0 => 'Cubic zirconia'
1 => 'Cubic zirconia'
2 => 'Cubic zirconia'
3 => 'Cubic zirconia'
4 => 'Cubic zirconia'
5 => 'Cubic zirconia'
]
'INSERT_en.COLOR' => [
0 => 'Colorless'
1 => 'Colorless'
2 => 'Colorless'
]
'CATEGORY_en' => [
0 => 'Rings'
]
]
'_explanation' => [
'value' => 0.08075056
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.08075056
'description' => 'product of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'Score based on child doc range from 22117 to 22131'
'details' => []
]
]
]
1 => [
'value' => 0.33333334
'description' => 'coord(1/3)'
'details' => []
]
]
]
1 => [
'value' => 0
'description' => 'match on required clause, product of:'
'details' => [
0 => [
'value' => 0
'description' => '# clause'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => '_type:ru, product of:'
'details' => [
0 => [
'value' => 1
'description' => 'boost'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => 'queryNorm'
'details' => []
]
]
]
]
]
]
]
]
4 => [
'_shard' => 4
'_node' => 'NuAmcO2ZS-SKOuIrRpI6Gg'
'_index' => 'es'
'_type' => 'ru'
'_id' => '81020152'
'_score' => 0.08075056
'fields' => [
'INSERT_en.NAME' => [
0 => 'Swarovski Zirconia'
1 => 'Swarovski Zirconia'
2 => 'Swarovski Zirconia'
]
'INSERT_en.TYPE' => [
0 => 'Cubic zirconia'
1 => 'Cubic zirconia'
2 => 'Cubic zirconia'
3 => 'Cubic zirconia'
4 => 'Cubic zirconia'
5 => 'Cubic zirconia'
]
'INSERT_en.COLOR' => [
0 => 'Colorless'
1 => 'Colorless'
2 => 'Colorless'
]
'CATEGORY_en' => [
0 => 'Earrings'
]
]
'_explanation' => [
'value' => 0.08075056
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.08075056
'description' => 'product of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'Score based on child doc range from 22233 to 22247'
'details' => []
]
]
]
1 => [
'value' => 0.33333334
'description' => 'coord(1/3)'
'details' => []
]
]
]
1 => [
'value' => 0
'description' => 'match on required clause, product of:'
'details' => [
0 => [
'value' => 0
'description' => '# clause'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => '_type:ru, product of:'
'details' => [
0 => [
'value' => 1
'description' => 'boost'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => 'queryNorm'
'details' => []
]
]
]
]
]
]
]
]
5 => [
'_shard' => 4
'_node' => 'NuAmcO2ZS-SKOuIrRpI6Gg'
'_index' => 'es'
'_type' => 'ru'
'_id' => '81020158'
'_score' => 0.08075056
'fields' => [
'INSERT_en.NAME' => [
0 => 'Swarovski Zirconia'
1 => 'Swarovski Zirconia'
2 => 'Swarovski Zirconia'
]
'INSERT_en.TYPE' => [
0 => 'Cubic zirconia'
1 => 'Cubic zirconia'
2 => 'Cubic zirconia'
3 => 'Cubic zirconia'
4 => 'Cubic zirconia'
5 => 'Cubic zirconia'
]
'INSERT_en.COLOR' => [
0 => 'Colorless'
1 => 'Colorless'
2 => 'Colorless'
]
'CATEGORY_en' => [
0 => 'Earrings'
]
]
'_explanation' => [
'value' => 0.08075056
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.08075056
'description' => 'product of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'Score based on child doc range from 22249 to 22263'
'details' => []
]
]
]
1 => [
'value' => 0.33333334
'description' => 'coord(1/3)'
'details' => []
]
]
]
1 => [
'value' => 0
'description' => 'match on required clause, product of:'
'details' => [
0 => [
'value' => 0
'description' => '# clause'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => '_type:ru, product of:'
'details' => [
0 => [
'value' => 1
'description' => 'boost'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => 'queryNorm'
'details' => []
]
]
]
]
]
]
]
]
6 => [
'_shard' => 4
'_node' => 'NuAmcO2ZS-SKOuIrRpI6Gg'
'_index' => 'es'
'_type' => 'ru'
'_id' => '81020263'
'_score' => 0.08075056
'fields' => [
'INSERT_en.NAME' => [
0 => 'Swarovski Zirconia'
1 => 'Swarovski Zirconia'
2 => 'Swarovski Zirconia'
]
'INSERT_en.TYPE' => [
0 => 'Cubic zirconia'
1 => 'Cubic zirconia'
2 => 'Cubic zirconia'
3 => 'Cubic zirconia'
4 => 'Cubic zirconia'
5 => 'Cubic zirconia'
]
'INSERT_en.COLOR' => [
0 => 'Colorless'
1 => 'Colorless'
2 => 'Colorless'
]
'CATEGORY_en' => [
0 => 'Earrings'
]
]
'_explanation' => [
'value' => 0.08075056
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.08075056
'description' => 'product of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'Score based on child doc range from 22401 to 22415'
'details' => []
]
]
]
1 => [
'value' => 0.33333334
'description' => 'coord(1/3)'
'details' => []
]
]
]
1 => [
'value' => 0
'description' => 'match on required clause, product of:'
'details' => [
0 => [
'value' => 0
'description' => '# clause'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => '_type:ru, product of:'
'details' => [
0 => [
'value' => 1
'description' => 'boost'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => 'queryNorm'
'details' => []
]
]
]
]
]
]
]
]
7 => [
'_shard' => 4
'_node' => 'NuAmcO2ZS-SKOuIrRpI6Gg'
'_index' => 'es'
'_type' => 'ru'
'_id' => '81030033'
'_score' => 0.08075056
'fields' => [
'INSERT_en.NAME' => [
0 => 'Swarovski Zirconia'
1 => 'Swarovski Zirconia'
2 => 'Swarovski Zirconia'
]
'INSERT_en.TYPE' => [
0 => 'Cubic zirconia'
1 => 'Cubic zirconia'
2 => 'Cubic zirconia'
3 => 'Cubic zirconia'
4 => 'Cubic zirconia'
5 => 'Cubic zirconia'
]
'INSERT_en.COLOR' => [
0 => 'Colorless'
1 => 'Colorless'
2 => 'Colorless'
]
'CATEGORY_en' => [
0 => 'Pendants'
]
]
'_explanation' => [
'value' => 0.08075056
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.08075056
'description' => 'product of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'Score based on child doc range from 22434 to 22448'
'details' => []
]
]
]
1 => [
'value' => 0.33333334
'description' => 'coord(1/3)'
'details' => []
]
]
]
1 => [
'value' => 0
'description' => 'match on required clause, product of:'
'details' => [
0 => [
'value' => 0
'description' => '# clause'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => '_type:ru, product of:'
'details' => [
0 => [
'value' => 1
'description' => 'boost'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => 'queryNorm'
'details' => []
]
]
]
]
]
]
]
]
8 => [
'_shard' => 4
'_node' => 'NuAmcO2ZS-SKOuIrRpI6Gg'
'_index' => 'es'
'_type' => 'ru'
'_id' => '81070002'
'_score' => 0.08075056
'fields' => [
'INSERT_en.NAME' => [
0 => 'Swarovski Zirconia'
1 => 'Swarovski Zirconia'
2 => 'Swarovski Zirconia'
]
'INSERT_en.TYPE' => [
0 => 'Cubic zirconia'
1 => 'Cubic zirconia'
2 => 'Cubic zirconia'
3 => 'Cubic zirconia'
4 => 'Cubic zirconia'
5 => 'Cubic zirconia'
]
'INSERT_en.COLOR' => [
0 => 'Colorless'
1 => 'Colorless'
2 => 'Colorless'
]
'CATEGORY_en' => [
0 => 'Necklaces'
]
]
'_explanation' => [
'value' => 0.08075056
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.08075056
'description' => 'product of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.24225168
'description' => 'Score based on child doc range from 23700 to 23714'
'details' => []
]
]
]
1 => [
'value' => 0.33333334
'description' => 'coord(1/3)'
'details' => []
]
]
]
1 => [
'value' => 0
'description' => 'match on required clause, product of:'
'details' => [
0 => [
'value' => 0
'description' => '# clause'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => '_type:ru, product of:'
'details' => [
0 => [
'value' => 1
'description' => 'boost'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => 'queryNorm'
'details' => []
]
]
]
]
]
]
]
]
9 => [
'_shard' => 4
'_node' => 'NuAmcO2ZS-SKOuIrRpI6Gg'
'_index' => 'es'
'_type' => 'ru'
'_id' => '81010001'
'_score' => 0.080750555
'fields' => [
'INSERT_en.NAME' => [
0 => 'Swarovski Zirconia'
]
'INSERT_en.TYPE' => [
0 => 'Cubic zirconia'
1 => 'Cubic zirconia'
]
'INSERT_en.COLOR' => [
0 => 'Colorless'
]
'CATEGORY_en' => [
0 => 'Rings'
]
]
'_explanation' => [
'value' => 0.080750555
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.080750555
'description' => 'product of:'
'details' => [
0 => [
'value' => 0.24225166
'description' => 'sum of:'
'details' => [
0 => [
'value' => 0.24225166
'description' => 'Score based on child doc range from 21957 to 21961'
'details' => []
]
]
]
1 => [
'value' => 0.33333334
'description' => 'coord(1/3)'
'details' => []
]
]
]
1 => [
'value' => 0
'description' => 'match on required clause, product of:'
'details' => [
0 => [
'value' => 0
'description' => '# clause'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => '_type:ru, product of:'
'details' => [
0 => [
'value' => 1
'description' => 'boost'
'details' => []
]
1 => [
'value' => 0.0007024551
'description' => 'queryNorm'
'details' => []
]
]
]
]
]
]
]
]
]
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment