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

PathHierarchyTokenizerFactory needs better docs, tests, and example config

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1, 4.0-ALPHA
    • 4.0-BETA, 6.0
    • None
    • None

    Description

      As noted by Alok Bhandari on the solr-user mailing list, the example configuration of PathHierarchyTokenizerFactory (in both the example schema.xml and in the factory javadocs) is not very useful to most people because it uses the tokenizer both at index and at query time.

      So a query like q=text_path_field:"/aaa/bbb/ccc" will not only match "/aaa/bbb/ccc" and "/aaa/bbb/ccc/ddd" but also "/aaa/" and "/aaa/xxxx" which is not likely what people expect.

      Attachments

        1. SOLR-3674.patch
          11 kB
          Chris M. Hostetter

        Activity

          People

            hossman Chris M. Hostetter
            hossman Chris M. Hostetter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: