Skip to content

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

Open
@richierocks

Description

@richierocks

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

Activity

ludov04

ludov04 commented on Mar 21, 2017

@ludov04
Contributor

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

ludov04

ludov04 commented on Apr 24, 2017

@ludov04
Contributor

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

richierocks commented on Apr 24, 2017

@richierocks
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

ludov04 commented on Apr 24, 2017

@ludov04
Contributor

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

changed the title [-]Searching for %>% is broken[/-] [+]Searching for %>% is broken, using :: in search is broken[/+] on May 22, 2017
ludov04

ludov04 commented on Aug 6, 2017

@ludov04
Contributor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @richierocks@ludov04

        Issue actions

          Searching for %>% is broken, using :: in search is broken · Issue #320 · datacamp/rdocumentation-app