-
Notifications
You must be signed in to change notification settings - Fork 494
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
Allow boolean operators when searching Dataverse guides #4884
Comments
it would be easier to just do the quotes and not parts, as the other 3 require equation parsing (and are needed less often) |
Here is the Sphinx project site to search for more info on features and config options. |
This issue may be a good place to dig into for more details on search. It discusses the sphinx-doc stemmer(s) and how to generate one's own sphinx-doc/sphinx#1784 . |
Here's an issue on Sphinx's repo where someone is asking for exact phrase searching with quotation marks: It appears that Sphinx does not currently support this because of they way it handles indexing. I'll leave a comment in that issue, and I also plan on asking about this and boolean operators in their google group. |
Created a thread in their google group to ask about this: https://groups.google.com/forum/#!topic/sphinx-users/kLX5b9vMWck |
@dlmurphy what if you download the PDF from http://guides.dataverse.org/en/latest/Dataverse.pdf and do the search from whatever PDF reader you like? Here's how a search for "terms of use" looks on Mac for me: Related: #2148 |
@dlmurphy as I mentioned you might want to ask in #sphinx at https://writethedocs.slack.com |
Good point that the PDF is more searchable. We can't expect our users to find the PDF, download it, and search it whenever they need to find something in the guides. But it is good that there's a publicly accessible workaround like this. Good idea about Write the Docs, I'm going to look into them and see if they can give us some advice. |
I don't think we're going to get this out of Sphinx. It might take moving to Docusaurus: 🦖 Vote to close. |
@pdurbin The PDF search with Sphinx is sufficient for most cases in my opinion but I believe this issue can be improved by advertising the PDF option within the guides. So above the Sphinx search box there could be a link to download the PDF version of the documentation (and a note saying |
@kuhlaid not a bad idea. Please feel free to create an issue for this. I'm glad you think PDF search is sufficient! Closing. |
Looking through recent search logs for our guides, I noticed a lot of attempts at using quotations to search for exact phrases. Unfortunately, the search tool for our guides is very basic and does not allow this kind (or any other kind) of boolean operator.
One user searched for "terms of use" in quotations. This is what happens when you attempt this query in our current search:
As you can see, this currently returns a useless list of all pages that use the words "use", "user", "used", etc. However, there are plenty of relevant sections about Terms of Use on our guides that are being drowned out. When I search "terms of use" using quotes on my local copy of the guides using SublimeText, I get these useful results:
In order to help users find what they're looking for in the guides, I propose we rework the Guides Search feature to allow standard boolean search operators, including:
The text was updated successfully, but these errors were encountered: