Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "query": {
- "bool": {
- "must": [
- {
- "nested": {
- "path": "treatments",
- "query": {
- "bool": {
- "should": [
- {
- "match": {
- "treatments.keywords": "hea"
- }
- },
- {
- "match": {
- "treatments.keywords": "hea"
- }
- },
- {
- "match": {
- "treatments.treatment_name": "hea"
- }
- },
- {
- "prefix": {
- "treatments.keywords": "hea"
- }
- },
- {
- "prefix": {
- "treatments.treatment_name": "hea"
- }
- }
- ],
- "minimum_should_match": 1
- }
- }
- }
- }
- ],
- "minimum_should_match": 1
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement