Lucene.NET through NHibernate.Search and POCO Enti

2020-08-02 03:24发布

问题:

Is there anyway to keep true POCO Entities while working with Lucene.NET through NHibernate.Search ?

It seems that Lucene.NET (NHibernate.Search) mapping only work with Attributes within Entity classes.

回答1:

Actually this was true, not too long ago. However, there are different mapping providers out there. Take a look into the source code for the Mapping namespace. You will have to build your own provider but it is possible.