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

        Robert Muir created issue -
        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.
        Robert Muir made changes -
        Field Original Value New Value
        Affects Version/s 4.0 [ 12314992 ]
        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'
        Robert Muir made changes -
        Attachment SOLR-2919.patch [ 12505302 ]
        Robert Muir made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 3.6 [ 12319065 ]
        Fix Version/s 4.0 [ 12314992 ]
        Resolution Fixed [ 1 ]
        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        2d 17h 20m 1 Robert Muir 28/Nov/11 11:28
        Resolved Resolved Closed Closed
        528d 23h 13m 1 Uwe Schindler 10/May/13 11:41

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development