Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12275

Restore support for @Field(analyzer = ...) and @Field(normalizer = ...)

    XMLWordPrintable

Details

    Description

      In Infinispan 11 (Hibernate Search 5.10/5.11), it used to be possible to assign an analyzer or normalizer to a field with the following syntax:

      @Field(analyzer = @Analyzer(definition = "myAnalyzer"))
      private String myProperty;
      
      @Field(analyzer = @Normalizer(definition = "myNormalizer"))
      private String myProperty;
      

      It seems that we made a mistake during the upgrade to Search 6, and support for this syntax was removed. All that's left is the property-scoped syntax, where the analyzer is defined next to the field:

      @Field
      @Analyzer(definition = "myAnalyzer")
      private String myProperty;
      

      If we want to provide at least partial backward compatibility in annotations, we should restore support for the former syntax (and keep the latter).

      For the record, analyzer assigned using the former syntax take precedence over analyzers assigned using the latter.

      Attachments

        Activity

          People

            rh-ee-yrodiere Yoann Rodiere
            rh-ee-yrodiere Yoann Rodiere
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: