Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GET/my_index/_search
- {
- "_source": false,
- "aggs": {
- "global": {
- "global": {
- },
- "aggs": {
- "all_products": {
- "nested": {
- "path": "simple"
- },
- "aggs": {
- "filter_top": {
- "filter": {
- "bool": {
- "must": [
- {
- "match": {
- "simple.compound_words": {
- "query": "tisch",
- "operator": "AND"
- }
- }
- }
- ]
- }
- },
- "aggs": {
- "filter_merged": {
- "aggs": {
- "filter": {
- "bool": {
- "must": [
- {
- "terms": {
- "simple.filter_color": [
- "green",
- "red"
- ]
- }
- }
- ]
- }
- },
- "aggs": {
- "filter_category": {
- "terms": {
- "field": "simple.filter_category"
- }
- }
- }
- }
- },
- "filter_color": {
- "terms": {
- "field": "simple.filter_color"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement