NHibernate 搜索 - _hibernate_class 问题
我有一个名为“Client”的映射类,用于 NHibernate,并用 Lucene 搜索属性进行装饰。当 NHibernate.Search 进行初始索引时,我通过 Luke 发现特殊属性 _hibernate_class 显示某些文档(索引文档)的以下值...
CProxyTypeABC_Common_EntitiesClientEntities_NHibernate_ProxyINHibernateProxy1, DynamicAssemblyProxyGen, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
但对于某些文档显示以下值的文档...
ABC.Common.Entities.User、FAOCommon、Version=1.0.0.0、Culture=neutral、PublicKeyToken=null
奇怪的是,文档(索引文档)或具有第一个值的记录无法通过搜索完整索引查询,其中全文查询返回文档中索引的记录的正确值,其属性显示在第二个。
不确定在索引时,为什么某些文档会包含 _hibernate_class 值,如第一个示例所示?
I have this mapped class called as "Client" used for NHibernate and is decorated with Lucene search attributes. When NHibernate.Search does initial indexing, I found through Luke that the special property _hibernate_class shows following value for some documents(index docs)...
CProxyTypeABC_Common_EntitiesClientEntities_NHibernate_ProxyINHibernateProxy1, DynamicAssemblyProxyGen, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
But for some documents following value is shown...
ABC.Common.Entities.User, FAOCommon, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Strange thing is, the document(index doc) OR records with first value are not searchable through full index query where as full text query returns correct value for records indexed in the document with property shown second.
Not sure while indexing, why would some document contain _hibernate_class value as shown in the first example ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这看起来像是 NH 搜索中的错误,您不应该能够在索引中获取它
请将复制品发布到 NH 邮件列表
This looks like a bug in NH Search, you shouldn't be able to get this in the index
Please post a repro to the NH mailing list