On 27 Mar 2014, at 11:18, Emmanuel Bernard <emmanuel(a)hibernate.org> wrote:
>
>> org.hibernate.search.SearchFactory ->
org.hibernate.search.spi.SearchFactory
>
> as Emmanuel said, that's an API currently. I'm inclined to think we
> should convert it to an SPI, and provide a richer more ORM specific
> version in the ORM module?
> That way, we could keep the package name. It would break things for
> Infinispan Query API but it seems that would happen anyway.
And each event source would need a SearchFactory subinterface + some delegator
implementation? Is that your idea?
Because SearchFactory contains very useful cross event source methods like retrieving an
analyzer, accessing Lucene directly and providing access to the query DSL.
That could work.
BTW SearchFactory would still remain an API by that factor.
- o.h.s.boostrap.SearchFactory
- o.h.s.boostrap.CommonSearchFactory