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

Option to send best fuzzy matched json over http #347

Open
mandarjoshi420 opened this issue Aug 1, 2021 · 1 comment
Open

Option to send best fuzzy matched json over http #347

mandarjoshi420 opened this issue Aug 1, 2021 · 1 comment
Assignees

Comments

@mandarjoshi420
Copy link

I am trying to develop a web service to call the URL like <YOUR_NODE_SERVER>/playmovie?q={textfield}.
I tried with curl that the data returned by the node server is just the text "OK".

It would be good to have an option to return the matched json so that I can provide better response in the web service.
e.g. "OK. Playing the movie {matched movie name}".

Now the matched movie name may be slightly different from the requested name or it may be a partial name. So, cannot simply replay the requested name.
Also, in case the fuzzy matching has multiple options which are very similar, it will be good to inform the user which option this script chose, instead of a user finding it out after the video starts playing.

@keydon
Copy link
Collaborator

keydon commented Aug 1, 2021

About the first point yea good idea, I can do that.
For the second, not sure what you mean. Do you wish a fuzzy search endpoint, which just return the X best matches without actually playing them? Sure, could add that too.

@keydon keydon self-assigned this Aug 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants