Hi all,
I've been playing with NHibernate Search, but encountered the
following error when I call the PurgeAll method on a FullTextSession
object:
KeyNotFpundException - The given key was not present in the
dictionary.
Here is a code snippet:
using(IFullTextSession s =
Search.CreateFullTextSession(sf.OpenSession()))
{
using(ITransaction tx = s.BeginTransaction())
{
s.PurgeAll(typeof(Book));
var b1 = new Book(1,
"Author1",
"Title1",
"Summary1");
s.Save(b1);
var b2 = new Book(2,
"Author2",
"Title2",
"Summary2");
s.Save(b2);
tx.Commit();
}
}
Any thoughts on what I'm doing wrong?
Kind regards,
Jan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---