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

PathHierarchyTokenizerFactory needs better docs, tests, and example config

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1, 4.0-ALPHA
    • Fix Version/s: 4.0-BETA, 6.0
    • Component/s: None
    • Labels:
      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

          Activity

            People

            • Assignee:
              hossman Chris M. Hostetter
              Reporter:
              hossman Chris M. Hostetter

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment