Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-2651

Calls to numericField in the programmatic API create duplicate fields

    Details

      Description

      In this code:

      					.property( "price", ElementType.FIELD )
      						.field()
      							.store( Store.YES )
      							.numericField().precisionStep( 10 )
      

      ... The call to numericField adds a new field with the exact same name, erasing all previous information, for example the call to store( Store.YES ).

      This is because NumericFieldMapping extends FieldMapping, which adds a new field in its constructor. It never should have extended FieldMapping, but as NumericFieldMapping is API, it'll have to stay that way. We'll have to find a workaround...

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                yrodiere Yoann Rodière
                Reporter:
                yrodiere Yoann Rodière
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: