Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://127.0.0.1:9200/index/_search -POST
- {
- "filter": {
- "bool": {
- "should": [
- {
- "bool": {
- "must": [
- {
- "type": {
- "value": "type1"
- }
- },
- {
- "query": {
- "query_string": {
- "default_field": "_all",
- "query": "this AND that OR thus"
- }
- }
- }
- ]
- }
- },
- {
- "bool": {
- "must": [
- {
- "type": {
- "value": "type2"
- }
- },
- {
- "query": {
- "query_string": {
- "default_field": "_all",
- "query": "this AND that OR thus"
- }
- }
- }
- ]
- }
- },
- {
- "bool": {
- "must": [
- {
- "type": {
- "value": "type3"
- }
- },
- {
- "query": {
- "query_string": {
- "default_field": "_all",
- "query": "this AND that OR thus"
- }
- }
- }
- ]
- }
- }
- ]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement