/** * Registers the given class bridge for the currently configured entity type. Any subsequent analyzer, parameter * etc. configurations apply to this class bridge. * * @param instance a class bridge instance * @return a new {@link ClassBridgeMapping} following the method chaining pattern * @hsearch.experimental This method is considered experimental and it may be altered or removed in future releases * @throws org.hibernate.search.exception.SearchException in case the same bridge instance is passed more than once for the * currently configured entity type */ public IndexedClassBridgeMapping classBridgeInstance(FieldBridge instance) { return new IndexedClassBridgeMapping( mapping, entity, instance, this ); }
public AnalyzerDefMapping analyzerDef(String name, Class<? extends TokenizerFactory> tokenizerFactory) { return analyzerDef( name, "", tokenizerFactory ); }
.boost( 2 ) .classBridge( AddressClassBridge.class ) .analyzer( ENGLISH_ANALYZER_NAME ) .property( "addressId", ElementType.FIELD ).documentId().name( "id" ) .property( "lastUpdated", ElementType.FIELD ) .field().name( "last-updated" ) .entity( OrderLine.class ).indexed() .classBridgeInstance( new OrderLineClassBridge( "orderLineName" ) ) .classBridgeInstance( new OrderLineClassBridge( null ) ) .name( "orderLineName_ngram" ) .analyzer( NGRAM_ANALYZER_NAME ) .classBridgeInstance( new OrderLineClassBridge( null ) ) .param( "fieldName", "orderLineNameViaParam" )
/** * Registers the given class bridge for the currently configured entity type. Any subsequent analyzer, parameter * etc. configurations apply to this class bridge. * * @param instance a class bridge instance * @return a new {@link ClassBridgeMapping} following the method chaining pattern * @hsearch.experimental This method is considered experimental and it may be altered or removed in future releases * @throws org.hibernate.search.exception.SearchException in case the same bridge instance is passed more than once for the * currently configured entity type */ public IndexedClassBridgeMapping classBridgeInstance(FieldBridge instance) { return new IndexedClassBridgeMapping( mapping, entity, instance, indexedMapping ); }
public AnalyzerDefMapping analyzerDef(String name, Class<? extends TokenizerFactory> tokenizerFactory) { return analyzerDef( name, "", tokenizerFactory ); }
/** * Registers the given class bridge for the currently configured entity type. Any subsequent analyzer, parameter * etc. configurations apply to this class bridge. * * @param instance a class bridge instance * @return a new {@link ClassBridgeMapping} following the method chaining pattern * @hsearch.experimental This method is considered experimental and it may be altered or removed in future releases * @throws org.hibernate.search.exception.SearchException in case the same bridge instance is passed more than once for the * currently configured entity type */ public IndexedClassBridgeMapping classBridgeInstance(FieldBridge instance) { return new IndexedClassBridgeMapping( mapping, entity, instance, indexedMapping ); }
public IndexedClassBridgeMapping classBridge(Class<?> impl) { return new IndexedClassBridgeMapping( mapping, entity, impl, this ); }
/** * Registers the given class bridge for the currently configured entity type. Any subsequent analyzer, parameter * etc. configurations apply to this class bridge. * * @param instance a class bridge instance * @return a new {@link ClassBridgeMapping} following the method chaining pattern * @hsearch.experimental This method is considered experimental and it may be altered or removed in future releases * @throws org.hibernate.search.exception.SearchException in case the same bridge instance is passed more than once for the * currently configured entity type */ public IndexedClassBridgeMapping classBridgeInstance(FieldBridge instance) { return new IndexedClassBridgeMapping( mapping, entity, instance, this ); }
public IndexedClassBridgeMapping classBridge(Class<?> impl) { return new IndexedClassBridgeMapping( mapping, entity, impl, indexedMapping ); }
public IndexedClassBridgeMapping classBridge(Class<?> impl) { return new IndexedClassBridgeMapping( mapping, entity, impl, this ); }
public IndexedClassBridgeMapping classBridge(Class<?> impl) { return new IndexedClassBridgeMapping( mapping, entity, impl, indexedMapping ); }