-
Notifications
You must be signed in to change notification settings - Fork 7
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
Documentation lacking for SearchRequest parameters #7
Comments
This python client is based on Manticore HTTP JSON protocol, it doesn't natively support We'll look into the other issues |
Is adding support for |
Yes. We had it in our internal ticketing system. I've just exposed it to github - manticoresoftware/manticoresearch#715 |
➤ Nick Sergeev commented: Done in 29e878b0 |
Unfortunately, I raised two questions in one ticket (sorry for this):
Can you please clarify what was done? |
The issue about |
This means the following is not possible with the generated client APIs (Im using python)?
I dont see any of the Open API generated libraries (except PHP?) supporting this flag. (Since it requires a ranker?) The difference in support between SQL and the JSON api might be worthwhile to have a single place (in documentation?) describing what's not yet supported. Im still not decided on whether I should be using the SQL path while these reach equilibrium (if ever) |
➤ Nick Sergeev commented: Done in 723cea2 |
I'm new to manticoresearch and manticoresearch-python and I am looking for more detailed documentation for the arguments in the
SearchRequest
constructor.I noticed that the "match" in the HTTP query is not equivalent to the the
MATCH
in the SQL syntax.For example, consider the following query,
Do Cholesterol Statin Drugs Cause Breast Cancer?
, to be run on an index. I use the below to see the plan used for how the query is being searched for:Notice the
AND
operator used at the start and since none of the documents in my index have all the tokens from this query, no documents are returned.When I instead break the tokens manually in my query, separating each with a
|
delimiter, the plan is different (with theOR
operator between the tokens) and I get back results.But the HTTP syntax (as used below) returns results without having to break the query into tokens. This has me confused.
Another question related to the arguments in the
SearchRequest
class: How do I pass things likeOPTIONS ranker=expr('bm25')
as part of theSearchRequest
object? Or is this is not possible at the moment unless I execute in SQL syntax using theUtilsApi
'ssql
method?The text was updated successfully, but these errors were encountered: