Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-5817

min_infix_len=1 is not effective for Mapping Rules Search

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 2.7 GA, 2.8 GA, 2.9 GA
    • System
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • -
    • Hide

      Define, then search a mapping rule that has single characters separated by special characters that are not part of the search charset (i.e. `/`, `.`, ...)

      Examples:
      `/a/b/c/`
      `/a.b.c/`
      `/foo/a/bar`
      etc.

      Show
      Define, then search a mapping rule that has single characters separated by special characters that are not part of the search charset (i.e. `/`, `.`, ...) Examples: `/a/b/c/` `/a.b.c/` `/foo/a/bar` etc.

    Description

      A Product mapping rule like: `/v1.0.0/health` can not be searched via the Admin Portal Pattern Search.

      I think this is happening because the configuration `min_infix_len=1` in https://github.com/3scale/porta/blob/3scale-2.7.0/app/indices/proxy_rules_index.rb is not working with `dict=keywords` (see http://sphinxsearch.com/forum/view.html?id=14123 )

      This should work with `dict=crc` which is deprecated ( http://sphinxsearch.com/docs/current/conf-dict.html ) or maybe by adding the special characters to the charset_table --> https://github.com/3scale/porta/blob/master/config/thinking_sphinx.yml#L18 .

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-sillumin Samuele Illuminati (Inactive)
            Jakub Smolár Jakub Smolár
            Samuele Illuminati Samuele Illuminati (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: