Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GET /catalog_data/book/_search?routing=1&pretty=1
- {
- "query": {
- "filtered": {
- "filter": {
- "term": {
- "usernum": "1"
- }
- },
- "query": {
- "match": {
- "_all": {
- "query": "locke",
- "operator": "and"
- }
- }
- }
- }
- },
- "aggs": {
- "collections": {
- "terms": {
- "field": "collections",
- "size": 10
- }
- },
- "format": {
- "terms": {
- "field": "format",
- "size": 10
- }
- },
- "date": {
- "terms": {
- "field": "date",
- "size": 10
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement