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

Searching for %>% is broken, using :: in search is broken #320

Open
richierocks opened this issue Mar 20, 2017 · 5 comments
Open

Searching for %>% is broken, using :: in search is broken #320

richierocks opened this issue Mar 20, 2017 · 5 comments
Labels

Comments

@richierocks
Copy link

Searching for magrittr's pipe operator, %>% leads me to

https://www.rdocumentation.org/search?q=%25%3E%25

with no functions found.

The page I wanted is here

https://www.rdocumentation.org/packages/magrittr/versions/1.5/topics/%25%3E%25

@ludov04 ludov04 added the bug label Mar 21, 2017
@ludov04
Copy link
Contributor

ludov04 commented Mar 21, 2017

Thanks for reporting, seems like the search is confused by thoses special characters

@ludov04 ludov04 added wontfix and removed bug labels Apr 24, 2017
@ludov04
Copy link
Contributor

ludov04 commented Apr 24, 2017

It turns out thoses characters are stripped out at index time by elasticsearch. This phase is called the analysis, and the standard analyzer removes most of the punctuation: https://www.elastic.co/guide/en/elasticsearch/guide/current/analysis-intro.html

The only way to have them back would be to reindex everything in a new index that uses another analyzer. This can take a very long time and results for more "common" usage can be affected in a bad way.

I would leave this alone for now. Hopefully people can search for pipe (https://www.rdocumentation.org/search?q=pipe) and find what they are looking for

@richierocks
Copy link
Author

I don't know if it afffects your decision, but searching for functions by using packagename::functionname is also a useful thing to do, and currently not working due to punctuation stripping.

@ludov04
Copy link
Contributor

ludov04 commented Apr 24, 2017

Good to know, I'll keep this in mind while exploring solutions

@filipsch filipsch changed the title Searching for %>% is broken Searching for %>% is broken, using :: in search is broken May 22, 2017
@ludov04
Copy link
Contributor

ludov04 commented Aug 6, 2017

Searching for packagename::function is now possible, leaving the issue open cause the original issue is till unsolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants