Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Raw Elasticsearch result:
- {
- "_shards": {
- "failed": 0,
- "successful": 5,
- "total": 5
- },
- "hits": {
- "hits": [
- {
- "_id": "...",
- "_index": "...",
- "_score": null,
- "_source": {
- "best_title": "...",
- "country_codes": {
- "f1": [
- "AU",
- "US"
- ]
- },
- },
- "_type": "cluster",
- "sort": [
- 1422523651820
- ]
- },
- ...
- Attempted query to match documents with `"US"` in the country codes:
- {
- "query": {
- "filtered": {
- "filter": {
- "and": [
- {
- "or": [
- {
- "term": {
- "country_codes.f1": "US"
- }
- }
- ]
- }
- ]
- },
- "query": {
- "query_string": {
- "fields": [
- "best_title",
- ],
- "query": "*"
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement