| Sanne Grinovero I think it's about applying custom bridge using custom annotations, a bit like what is mentioned in
HSEARCH-18 Reopened . It would be close to how custom validation works in Hibernate Validator. I think it would be a very, very nice way to implement the concept of "complex field bridge" we talked about (bridges that aren't just simple functions). We could introduce something like that in Hibernate Search 6:
@org.hibernate.search.BridgeAnnotation(impl = MyCustomBridgeImpl.class)
public @interface MyCustomBridge {
public MyEnum param1;
public String param2 = "someDefault";
}
@MyCustomBridge(param1 = MyEnum.SOME_VALUE, param2 = "myParam")
private MyCustomObject myProperty;
@org.hibernate.search.BridgeAnnotation(impl = MyCustomBridgeImpl.class)
public class MyCustomBridgeImpl extends HibernateSearchComplexBridge<MyCustomBridge> {
...
public void initialize(MyCustomBridge annotation) {
}
...
}
|