adapt the tests added for HSEARCH-1872 In Progress so that org.hibernate.search.test.dsl.SortDSLTest.WrappedDoubleValueFieldBridge becomes a MetadataProvidingFieldBridge and uses document.add(new SortedNumericDocValuesField(name, doubleValue)); instead of the current luceneOptions.addNumericFieldToDocument( name, doubleValue, document );