[hibernate-dev] DocumentBuilder refactoring in Hibernate Search: how to deal (internally) with metadata

Hardy Ferentschik hardy at hibernate.org
Fri May 31 05:17:00 EDT 2013


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!?

--Hardy




More information about the hibernate-dev mailing list