Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "from" : 0,
- "size" : 10, "query" : {
- "filtered" : {
- "query" : {
- "match_all" : { }
- },
- "filter" : {
- "and" : {
- "filters" : [ {
- "nested" : {
- "filter" : {
- "and" : {
- "filters" : [ {
- "terms" : {
- "portals.platform" : [ "6" ]
- }
- }, {
- "terms" : {
- "portals.isActive" : [ true ]
- }
- } ]
- }
- },
- "path" : "portals"
- }
- }, {
- "term" : {
- "language.attribute" : "en"
- }
- } ]
- }
- }
- }
- },
- "_source" : {
- "includes" : [ ],
- "excludes" : [ "related*Ids" ]
- },
- "sort" : [ {
- "name.attribute" : {
- "order" : "asc"
- }
- } ],
- "aggregations" : {
- "byCountry" : {
- "terms" : {
- "field" : "country.isoCountryCode.attribute",
- "size" : 0
- }
- },
- "bySector" : {
- "terms" : {
- "script" : "doc['simpleSectors.name.attribute'].value+'|'+ doc['simpleSectors.id'].value",
- "size" : 0
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement