| 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... |