Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boolean Elastic Search query #87

Open
kapish5467 opened this issue Jul 23, 2020 · 4 comments
Open

Boolean Elastic Search query #87

kapish5467 opened this issue Jul 23, 2020 · 4 comments

Comments

@kapish5467
Copy link

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.

@codeAshu
Copy link

codeAshu commented Aug 5, 2020

what is the --search_route ?

@kapish5467
Copy link
Author

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

@samtamp95
Copy link

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: #24

@we29758143
Copy link

same question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants