Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GET app_file_dev/_search
- {
- "query": {
- "match_all": {}
- }
- }
- {
- "took": 2,
- "timed_out": false,
- "_shards": {
- "total": 5,
- "successful": 5,
- "skipped": 0,
- "failed": 0
- },
- "hits": {
- "total": 4,
- "max_score": 1,
- "hits": [
- {
- "_index": "app_file_dev",
- "_type": "file",
- "_id": "5",
- "_score": 1,
- "_source": {
- "id": 5,
- "tags": [
- "blue"
- ]
- }
- },
- {
- "_index": "app_file_dev",
- "_type": "file",
- "_id": "8",
- "_score": 1,
- "_source": {
- "id": 8,
- "tags": [
- "blue",
- "green"
- ]
- }
- },
- {
- "_index": "app_file_dev",
- "_type": "file",
- "_id": "6",
- "_score": 1,
- "_source": {
- "id": 6,
- "tags": [
- "green"
- ]
- }
- },
- {
- "_index": "app_file_dev",
- "_type": "file",
- "_id": "7",
- "_score": 1,
- "_source": {
- "id": 7,
- "tags": []
- }
- }
- ]
- }
- }
- GET app_file_dev/_search
- {
- "query": {
- "match": {
- "tags": {
- "query": "blue"
- }
- }
- }
- }
- GET app_file_dev/_search
- {
- "query": {
- "match": {
- "tags": {
- "query": "blue green",
- "operator": "or"
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement