[hibernate-dev] DocumentBuilder refactoring in Hibernate Search: how to deal (internally) with metadata
Emmanuel Bernard
emmanuel at hibernate.org
Fri May 31 07:23:23 EDT 2013
On Fri 2013-05-31 11:17, Hardy Ferentschik wrote:
>
> On 31 Jan 2013, at 11:13 AM, Hardy Ferentschik <hardy at hibernate.org> wrote:
>
> >> Set<String> getIndexNames();
> >>
> >> Would something like Set<IndexDescriptor> getIndexes() make sense?
> >
> > That's an interesting thought. In fact I was wondering whether more index specific information is needed. On the other hand,
> > I was thinking thinking that as long as you have the index name you can always get more information via accessing the IndexManager
> > directly - SearchFactoryImplementor.getAllIndexesManager.getIndexManager(String indexName)
>
> Forgot to mention that I really dislike getAllIndexesManager(). I would love to rename it to getIndexManagers() or getIndexManagerHolder().
> Might be something for Search 5!?
I'd say deprecate the existing one and create getIndexManagerHolder()
right now. No need to wait for 5.
More information about the hibernate-dev
mailing list