Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8990

UI: query links from the "Top Terms" table on the Schema Browser page should use the "term" parser

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0.1, 6.1, 7.0
    • Component/s: Admin UI
    • Labels:
      None

      Description

      If you are using a StrField, or a TextField with a Keyword tokenizer then it's very possible your indexed terms will include white space.

      But the links created by the Schema Browser UI screen to serach for a term in the "Top Terms" list assume that just prepending hte term with the fieldname (ie: $fieldname + ":" $term) will be valid – and instead they don't match the correct term.


      Example:

      Load the example/films data into a "films" collection, and then load the Schema Browser page for the "genre" field...

      http://127.0.1.1:8983/solr/#/films/schema?field=genre

      The "Top Terms" list includes terms such as Rommance Film but clicking on this term takes you to this URL...

      http://127.0.1.1:8983/solr/#/films/query?q=genre:Romance%20Film

      ...which is just doing a search for "genre:Romance" OR "Film" (in the default field)

      Instead it should link to...
      http://127.0.1.1:8983/solr/#/gettingstarted/query?q=%7B!term+f=genre%7DRomance+Film

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hossman Hoss Man
                Reporter:
                hossman Hoss Man
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: