【发布时间】:2010-02-26 11:22:13
【问题描述】:
我的搜索出现问题,没有返回预期的结果。
我试图在我的索引上运行 Luke,但它说它已被锁定,我需要强制解锁它(虽然我不是绝地/西斯)
我试图删除 index 文件夹并运行我的 recreate-indicies 应用程序,但该文件夹已被锁定。使用解锁器我发现有大约 100 个 w3wp.exe 条目(相同的 PID,不同的句柄)在索引上被锁定。
怎么了?
我在我的 NHibernate 配置中这样做:
c.SetListener(ListenerType.PostUpdate, new FullTextIndexEventListener());
c.SetListener(ListenerType.PostInsert, new FullTextIndexEventListener());
c.SetListener(ListenerType.PostDelete, new FullTextIndexEventListener());
这是我查询索引的唯一地方:
var fullTextSession = NHibernate.Search.Search.CreateFullTextSession(this.unitOfWork.Session);
var fullTextQuery = fullTextSession.CreateFullTextQuery(query, typeof (Person));
fullTextQuery.SetMaxResults(100);
return fullTextQuery.List<Person>();
发生了什么事?我做错了什么?
谢谢
【问题讨论】:
-
你可能不是绝地武士,但卢克是
标签: nhibernate lucene