Quote:
As we know , we have to way to indicate if a entity will be indexed or not ; with the annotation @Indexed or also with a XML file.
that's only partly right. Obviously you can use annotation, but there is not xml configuration for Hibernate Search.
Quote:
Now , i would like to know , if i can implement a other way to indicate the indexed entity ? programmatically ?
Thx :)
Yes, there is a programmatic API. Just refer to the online docs for more information and examples -
http://docs.jboss.org/hibernate/stable/ ... ammaticapiThe entry point is SearchMapping.
--Hardy