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

Suggestions API #38

Open
PhilHannent opened this issue Jul 20, 2017 · 0 comments
Open

Suggestions API #38

PhilHannent opened this issue Jul 20, 2017 · 0 comments

Comments

@PhilHannent
Copy link

Good morning,

Firstly, thanks for the project.

I have tripped over a problem recently where the API doesn't return me what I was expecting. Whilst I know the solution to my problem I am not 100% sure how it best fits with this project.

I have been using the relatedSearch for related key words.

https://github.com/goferito/node-bing-api/blob/master/lib/bing.js#L270

However what I am actually after is the 'suggestions' API:

https://docs.microsoft.com/en-us/azure/cognitive-services/Bing-Autosuggest/get-suggested-search-terms

My fix was to make the related be suggestions, because as it stands it seems to actually just perform the same as web. Should your related call use 'suggestions' or should there be a separate call for suggestions?

Thanks

PhilHannent pushed a commit to PhilHannent/node-bing-api that referenced this issue Mar 15, 2018
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

1 participant