Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "query" :{"match": {"title": my_query_string}}.
- GET indice/_search
- {
- "query": {
- "bool": {
- "should": [
- {
- "match": {
- "title": "title"
- }
- },
- {
- "match": {
- "category": "category"
- }
- }
- ]
- }
- }
- }
- "query": {
- "filtered": {
- "query": {
- "match": {
- "title": YOUR_QUERY_STRING,
- }
- },
- "filter": {
- "term": {
- "category": YOUR_CATEGORY
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement