Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.6, 4.0-ALPHA
    • Fix Version/s: 3.6, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      Since SOLR-2438, we can support localized rangequeries if someone has (ICU)CollationKeyFilter in the chain.

      I think it might be best to add these automagically, because if you use these filters then not analyzing
      with them just means stuff doesn't work at all, since the terms are represented as collation keys.

      In trunk this already works, because (ICU)CollationField takes care of it.

      1. SOLR-2919.patch
        37 kB
        Robert Muir

        Activity

        Hide
        Robert Muir added a comment -

        Here's a patch turning this on.

        I also exposed additional expert sort options for ICUCollationKeyFactory/ICUCollationField and added tests:

        • alternate: 'shifted' or 'non-ignorable'. Can be used to ignore punctuation/whitespace.
        • caseLevel: 'true' or 'false'. Useful with strength=primary to ignore accents but not case.
        • caseFirst: 'lower' or 'upper'. Useful to control which is sorted first when case is not ignored.
        • numeric: 'true' or 'false'. Digits are sorted according to numeric value, e.g. foobar-9 sorts before foobar-10
        • variableTop: single character or contraction. Controls what is variable for 'alternate'
        Show
        Robert Muir added a comment - Here's a patch turning this on. I also exposed additional expert sort options for ICUCollationKeyFactory/ICUCollationField and added tests: alternate: 'shifted' or 'non-ignorable'. Can be used to ignore punctuation/whitespace. caseLevel: 'true' or 'false'. Useful with strength=primary to ignore accents but not case. caseFirst: 'lower' or 'upper'. Useful to control which is sorted first when case is not ignored. numeric: 'true' or 'false'. Digits are sorted according to numeric value, e.g. foobar-9 sorts before foobar-10 variableTop: single character or contraction. Controls what is variable for 'alternate'
        Hide
        Robert Muir added a comment -

        Setting 4.0 only because the filters are still supported (deprecated) for index backwards
        compatibility and so we should just add the support there for now too in case you are
        using the deprecated filters.

        Show
        Robert Muir added a comment - Setting 4.0 only because the filters are still supported (deprecated) for index backwards compatibility and so we should just add the support there for now too in case you are using the deprecated filters.

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Muir
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development