Offer to search Google when no search results are returned#62
Offer to search Google when no search results are returned#62jonstodle wants to merge 2 commits into
Conversation
reinismu
left a comment
There was a problem hiding this comment.
I feel like this kind of thing should be made differently. I propose that there should be property "IsGlobalProvider" and when search returns nothing or less than some amount then we could fill it in with global providers like google. Than any provider would have this option. Another thing is that not everyone will want this, so configuration must be in place for it.
|
|
||
| protected override Task<IQueryResult> CreateFallbackResult(string query) | ||
| { | ||
| throw new NotImplementedException(); |
There was a problem hiding this comment.
Yes, this is a bit temporary (forgot to add a comment about that). Any suggestions on how to handle the cases where a provider is not global provider
|
I see your point about not every provider being a global provider. Do you think the |
|
Maybe not a property, but extended IQueryProvider -> IGlobalQueryProvider. Tho it depends. Need more people opinion on this. |
|
Yeah, that's more like what I was leaning towards too. Let's get some more opinions, though 👍 |
|
Nice initiative, but I think this PR strays from the original issue which was that the Google provider should allow you to search for things not suggested by the Google web service. Personally I think that each provider should be responsible for whether or not to show fallback values, and not done globally. |
|
|
Adds a function on
IQueryProviderto supply a "fallback result" which supplies a generic search with the provider. This makes it possible to add a setting specifying a desired fallback provider in the user settings later.This closes #8.