nboost icon indicating copy to clipboard operation
nboost copied to clipboard

Boolean Elastic Search query

Open kapish5467 opened this issue 5 years ago • 4 comments

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.

kapish5467 avatar Jul 23 '20 23:07 kapish5467

what is the --search_route ?

codeAshu avatar Aug 05 '20 07:08 codeAshu

Not using search route as I am running the query through python script.

kapish5467 avatar Aug 10 '20 17:08 kapish5467

did you get this too work by any chance? I have trying something similar. apparently you are able to do a dynamic selecting fields to rerank but I haven't seem to be able to get to work.

something similar was brought: https://github.com/koursaros-ai/nboost/issues/24

samtamp95 avatar Sep 10 '20 08:09 samtamp95

same question

we29758143 avatar Feb 12 '21 16:02 we29758143