Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "profile": true,
- "sort": [
- {
- "id": {
- "order": "asc"
- }
- }
- ],
- "query": {
- "nested": {
- "path": "resumes",
- "query": {
- "multi_match": {
- "query": " Системный аналитик",
- "type": "most_fields",
- "fields": [
- "resumes.cv_text",
- "resumes.transliterated_cv_text"
- ],
- "operator": "and"
- }
- }
- }
- },
- "aggs": {
- "citizenships": {
- "nested": {
- "path": "resumes"
- },
- "aggs": {
- "filtered": {
- "filter": {
- "bool": {
- "must": {
- "match": {
- "resumes.actual": true
- }
- }
- }
- },
- "aggs": {
- "by_citizenship": {
- "nested": {
- "path": "resumes.citizenship"
- },
- "aggs": {
- "citizenship": {
- "terms": {
- "field": "resumes.citizenship.name"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "_source": false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement