Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "hits": [
- {
- "_index": "titles",
- "_type": "title",
- ...
- "_source": {
- ...
- "genres": [
- {
- "code": "adventure",
- "priority": 1
- },
- {
- "code": "action",
- "priority": 2
- },
- {
- "code": "horror",
- "priority": 3
- }
- ],
- ...
- },
- ...
- ]
- "query": {
- "bool": {
- "filter": [
- {
- "bool": {
- "should":[
- {"term": {
- "genres.code": {
- "value": "action",
- "boost": 1.0
- }
- }},
- {"term": {
- "genres.priority": {
- "value": 1,
- "boost": 1.0
- }
- }}
- ]
- }
- },
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement