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

StrField should allow locale sensitive sorting

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sachin.nigam Sachin

            Dates

              Created:
              Updated:

              Slack

                Issue deployment