Skip to content

Boolean Elastic Search query #87

@kapish5467

Description

@kapish5467

Hi ,
I am trying to run the following ES boolean query-

'query' : {
'bool' : { 
  'must' :[{'match': {'Description':{"query":desc}}},
               {'match': {'Industry':{"query":" Legal, Search Engine, Software"}}}
            ]
       }
       }

And I using the following json body for nboost request-

'nboost': {
'uhost': 'localhost',
'uport': 9200,
'query_path': 'body.query.bool.must.match.',
'topk_path': 'body.size',
'default_topk': 10,
'topn': 50,
'choices_path': 'body.hits',
'cvalues_path': '_source.
'
}

I am getting the below error -
{'doc': 'Could not parse query in request', 'msg': '()', 'type': 'MissingQuery'}

I tried to follow up with similar issues available but could not find a definte answer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions