-
Notifications
You must be signed in to change notification settings - Fork 92
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
General Search Box #79
Comments
As written here:
Examples:
Given the engineering work involved to make something worth having, and the fact Google already exists, the UI space and user choice problem introduced, it ought to be a very good search that indexes in a way Google cannot or something. That said, an update to hoogle that searches e.g. all of Hackage including docstrings, readme files, etc. and source code search a la Google Code Search would be very handy and something Google cannot do, but perhaps orthogonal to this issue. |
At a minimum, how about a google search box that limits to being across various haskell.org domains? :-P (I agree that it is a lot of engineering work to make a good thing. I know some people that worked on a team to do so for a commercial site. It is also why I have some ideas about how it could be feasible :-)) |
One approach, which might give good-payoff low-effort, would be a textbox which does Hoogle completions as you type, and Google search when you hit enter. For the "as you type" thing I'd envisage see http://community.haskell.org/~ndm/shake/, the textbox in the top right - type something like I suspect that writing something that indexes all of the Haskell domains, and picks the best result using sensible weighting is going to be worse than Google. There's very little way to do things like incoming link weighting unless you spider the whole web at the same time. |
Note that the reason that "s-expression" doesn't find anything on the Python site web search is because the answers you get from google aren't on the python site. They are other people's libraries. This is actually a feature: The python site provides documentation on a blessed set of libraries, and there isn't a blessed s-expression parser. If you go to PyPI (Python's version of Hackage) and do the search there, you get a selection of s-expression libraries (none of which are what you want, probably). Likewise, if you do a search for "random" on the front page, you get a different set of results than if you do if you search the library documentation. In this case, using "python random" in google arguable does the right thing, in that it returns a link to an old version of the library doc page.and then blogs/SO/etc. that deal with generating random numbers in python. The closest thing Haskell has to such a library set is the packages in haskell platform, though that's clearly debatable. I believe we should provide some kind of search for that, and have opened issue #104 for that. |
It's not really a feature, it just shows that the feature is useless compared to regular google. |
Coming off an email suggestion, imagine a search button in the top right. It first navigates through page in the app, and brings up a list of that content. Then, it also falls through to a wiki search, and brings in a list of wiki pages. And perhaps it can realize you typed a function signature and fall through to a hoogle or hayoo search. And a hackage search too.
Doing these "omnisearch" things is an art. But if you have a good one, it quickly becomes very addictive!
The text was updated successfully, but these errors were encountered: