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

Allow localizable fields to be mapped by a map

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Hello everybody,

      I am using SolrJ and I would really appreaciate if there was an annotation that maps the localizable fields in a map of <Locale, String>. Just like this:

      public class Product {
      
          @LocaleField
          private Map<Locale, String> name;
      }
      

      instead of

      public class Product {
          @Field
          private String name_en;
      
          @Field
          private String name_fr;
          
          @Field
          private String name_de;
      
          //etc
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            paranoiabla Petar Tahchiev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: