Thanks Oliver,
Submitted as Bug # 31552.

-D

> -----Original Message-----
> From: Oliver Zeigermann [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 05, 2004 4:21 PM
> To: Slide Developers Mailing List
> Subject: Re: New indexer class...now how to integrate search 
> capability
> 
> 
> Certainly, create a bugzilla entry and attach what you have. If it is 
> making more progress, we can even consider adding it to the proposals 
> section.
> 
> Oliver
> 
> 
> Darren Hartford schrieb:
> 
> > Some testing, on 1000 records normal basic/default 
> searching on the XMLFileDescriptor takes 3 seconds (3000ms).  
> Direct Lucene search for the same search over the same files 
> took under 100ms.  Now, just need to get it integrated within 
> the Slide search/query infrastructure.  Is there some place I 
> can post the code so others can take a look and help me 
> figure out what I'm missing?
> > 
> > thanky,
> > -D
> > 
> > 
> >> -----Original Message-----
> >>From:       Darren Hartford  
> >>Sent:       Tuesday, October 05, 2004 2:49 PM
> >>To: '[EMAIL PROTECTED]'
> >>Subject:    RE: New indexer class...now how to integrate 
> >>search capability
> >>
> >>I've created a LuceneNodeQuery class in addition to a 
> >>LuceneNodeExpression and LuceneNodeExpressionFactory on my 
> >>local machine.
> >>
> >>Added the following line into my domain.xml within the store 
> >>definition:
> >><parameter 
> >>name="basicQueryClass">org.apache.slide.index.LuceneNodeQuery<
> > 
> > /parameter>
> > 
> >>--verified this is working, as this is calling the empty 
> >>LuceneNodeQuery constructor--
> >>
> >>The LuceneNodeQuery has the following method:
> >>=====
> >>   public IBasicExpressionFactory getExpressionFactory() {
> >>System.out.println("creating LuceneNodeExpressionFactory");
> >>        return new LuceneNodeExpressionFactory ();
> >>    }
> >>====
> >>
> >>However, LuceneNodeExpressionFactory is never called, nor 
> >>LuceneNodeExpression.  Any ideas?
> >>
> >>thanky,
> >>-D
> >>
> >>
> >>> -----Original Message-----
> >>>From:      Darren Hartford  
> >>>Sent:      Tuesday, October 05, 2004 10:44 AM
> >>>To:        '[EMAIL PROTECTED]'
> >>>Subject:   New indexer class...now how to integrate search 
> >>>capability
> >>>
> >>>Hey all,
> >>>Made some small modifications to the 
> >>>'org.apache.slide.TextContentIndexer' to create a 
> >>
> >>'LuceneNodeIndexer'.
> >>
> >>>The only real thing that was changed was the indexed content:
> >>>=====
> >>>         // Create document
> >>>         Document doc = new Document();
> >>>         
> >>>         doc.add(Field.Keyword(URI_FIELD, uri.toString()));
> >>>         Enumeration em = readProperties(revisionDescriptor, 
> >>>revisionContent);
> >>>         while(em.hasMoreElements()){
> >>>           NodeProperty prop = (NodeProperty)em.nextElement();
> >>>           
> >>>doc.add(Field.Keyword(prop.getName(),prop.getValue().toString()));
> >>>           System.out.println("create index: -" + 
> >>>prop.getName() + "- with value: " + prop.getValue().toString());
> >>>         }
> >>>
> >>>            indexWriter.addDocument(doc);
> >>>            indexWriter.optimize();
> >>>======
> >>>
> >>>This seems to be working good (only for newly added documents 
> >>>or properties that are updated).
> >>>
> >>>How do I get the SearchMethod to take advantage of this new index?
> >>>
> >>>-D
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to