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

StrField should allow locale sensitive sorting

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 4.9, 6.0
    • None
    • None
    • All

    Description

      Currently, StrField does not take a parameter which it can pass to ctor of SortField making the StrField's sorting rely on the locale of the JVM. Ideally, StrField should allow setting the locale in the schema.xml and use it to create a new instance of the SortField in getSortField() method, something like:
      snip:
      public SortField getSortField(SchemaField field,boolean reverse)

      { ... Locale locale = new Locale(lang,country); return new SortField(field.getName(), locale, reverse); }

      More details about this issue here:
      http://www.nabble.com/CJKAnalyzer-and-Chinese-Text-sort-td22374195.html

      Attachments

        1. LocaleStrField.java
          2 kB
          Sachin

        Activity

          People

            Unassigned Unassigned
            sachin.nigam Sachin
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: