I had a problem with my search but did not return the expected results.
I tried to run Luke at my index, but he said it was locked and I needed to get it to unlock (I'm not a Jedi / Sith).
I tried to delete the index folder and run the recreate-indicies application, but the folder was locked. Using unlocker, I found that there are about 100 w3wp.exe entries (the same PID, another Handle) with an index lock.
What's happening?
I do this in my NHibernate configuration:
c.SetListener(ListenerType.PostUpdate, new FullTextIndexEventListener()); c.SetListener(ListenerType.PostInsert, new FullTextIndexEventListener()); c.SetListener(ListenerType.PostDelete, new FullTextIndexEventListener());
And here is the only place where I request the index:
var fullTextSession = NHibernate.Search.Search.CreateFullTextSession(this.unitOfWork.Session); var fullTextQuery = fullTextSession.CreateFullTextQuery(query, typeof (Person)); fullTextQuery.SetMaxResults(100); return fullTextQuery.List<Person>();
What's happening? What am I doing wrong?
thanks
source share