how do you configure NH.Search event handlers ?

2009/4/21 Jack Ryan <[email protected]>

>
> I've done a little more digging this morning and it looks to me like
> Initialize(Configuration cfg) is not being called on the
> FullTextEventListeners. Which is why the searchFactory is null. Does
> this help at all?
>
> On Apr 21, 9:59 am, "[email protected]" <[email protected]>
> wrote:
> > Sure thing. Here is what it is giving me, As you can probably tell
> > currently I am attempting to call the method from an aspx page.
> >
> >    at NHibernate.Search.Impl.FullTextSessionImpl.Index(Object entity)
> > in C:\Users\jryan\Desktop\NHibernate.Search\src\NHibernate.Search\Impl
> > \FullTextSessionImpl.cs:line 572
> >    at CVC.Data.DAD.InvestmentRequestDocumentRepository.Init() in C:
> > \Projects\CVC DAD Document Search\CVC Framework\CVC.Data\DAD
> > \InvestmentRequestDocument\InvestmentRequestDocumentRepository.cs:line
> > 66
> >    at CVC.DAD.Deals.IndexDocs.Page_Load(Object sender, EventArgs e) in
> > C:\Projects\CVC DAD Document Search\CVC DAD\CVC.DAD\Deals
> > \IndexDocs.aspx.cs:line 15
> >    at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,
> > Object o, Object t, EventArgs e)
> >    at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
> > sender, EventArgs e)
> >    at System.Web.UI.Control.OnLoad(EventArgs e)
> >    at System.Web.UI.Control.LoadRecursive()
> >    at System.Web.UI.Page.ProcessRequestMain(Boolean
> > includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
> >
> > On Apr 21, 8:25 am, Ayende Rahien <[email protected]> wrote:
> >
> > > Can you show the full stack trace?
> >
> > > On Fri, Apr 17, 2009 at 7:07 PM, [email protected] <
> >
> > > [email protected]> wrote:
> >
> > > > I have been trying to integrate NHibernate.Search into one of our
> > > > systems and have been trying to create an index over what is already
> > > > there. In a test system with a small amount of documents I have been
> > > > running the following...
> >
> > > >            IFullTextSession fullTextSession =
> > > > NHibernate.Search.Search.CreateFullTextSession(Session);
> >
> > > >            ICriteria c = fullTextSession.CreateCriteria(typeof
> > > > (Document));
> >
> > > >            IList<Document> list = c.List<Document>();
> >
> > > >            foreach (var document in list)
> > > >            {
> > > >                fullTextSession.Index(document);
> > > >            }
> >
> > > > The Index method throws an error. I have managed to trace this back
> to
> > > > the SearchFactory property of the FullTextIndexEventListener being
> > > > null.
> >
> > > > Does anyone have any pointers as to what might be causing this?
> >
>


-- 
Jozef

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NHibernate Contrib - Development Group" 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.ar/group/nhcdevs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to