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

Allow localizable fields to be mapped by a map

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: 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

            • Assignee:
              Unassigned
              Reporter:
              paranoiabla Petar Tahchiev
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: