Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ua-dev] Trying to use Search Participants

Dejan,

Thanks for the assistance! I implemented my getAllDocuments, addDocument, and getContributingPlugins methods, and they are all getting invoked properly. I can also observe the index getting updated properly (can even inspect it after the fact). However, the document doesn't appear in a search (searching for a very specific phrase/word in the document). Any thought at to why?

Thanks,
Goss



Inactive hide details for Dejan Glozic <dejan@xxxxxxxxxx>Dejan Glozic <dejan@xxxxxxxxxx>


          Dejan Glozic <dejan@xxxxxxxxxx>
          Sent by: platform-ua-dev-bounces@xxxxxxxxxxx

          01/31/2006 05:34 PM

          Please respond to
          "Eclipse Platform User Assistance component developers list." <platform-ua-dev@xxxxxxxxxxx>

To

"Eclipse Platform User Assistance component developers list." <platform-ua-dev@xxxxxxxxxxx>

cc

"Eclipse Platform User Assistance component developers list." <platform-ua-dev@xxxxxxxxxxx>, platform-ua-dev-bounces@xxxxxxxxxxx

Subject

Re: [platform-ua-dev] Trying to use Search Participants

Actually, 'addDocument' is called in both cases. The way you configured the
search participant though, it will be treated as 'global' i.e. as if it is
adding new documents previously unknown to the help system. For this to
work, it must return these new documents in the 'getAllDocuments()' method.
After that, 'addDocument' will be called to index each document not already
in the index.

What probably confused you was that CheatsheetSearchParticipant extends
XMLSearchParticipant and 'addDocument' is implemented there.

Regards,

Dejan Glozic, Ph.D.
Manager, Eclipse Development 1A
D1/R0Q/8200/MKM
IBM Canada Ltd.
Tel. 905 413-2745  T/L 969-2745
Fax. 905 413-4850



                                                                         
            Curtis                                                        
            D'Entremont/Toron                                            
            to/IBM@IBMCA                                               To
            Sent by:                  "Eclipse Platform User Assistance  
            platform-ua-dev-b         component developers list."        
            ounces@xxxxxxxxxx         <platform-ua-dev@xxxxxxxxxxx>      
            g                                                          cc
                                                                         
                                                                  Subject
            01/31/2006 04:34          Re: [platform-ua-dev] Trying to use
            PM                        Search Participants                
                                                                         
                                                                         
            Please respond to                                            
            "Eclipse Platform                                            
             User Assistance                                              
                component                                                
            developers list."                                            
                                                                         
                                                                         





Hi Goss,

Are the documents you're attempting to index supposed to be part of the
table of contents (like html or xhtml docs), or are they separate from the
help system (like cheatsheets)?

If yes, you should make sure they are indeed showing up, and you must also
specify what file types you can index in the extension (see
XHTMLSearchParticipant extension for an example). In this case the system
will go through the TOC and if it finds a file of the type you listed, it
will call addDocument for it. If you don't specify any times, it won't call
you.

If no, the addDocument method isn't supposed to be called. In this mode,
the system doesn't know about your documents so it can't pass them to you
for indexing. Instead, you must pass them to the system via the
getAllDocuments method.

Have a look at the schema for the extension point you're using, and in the
LuceneSearchParticipant class javadocs for more info.

Thanks,
Curtis d'Entremont
Eclipse User Assistance
IBM Toronto Lab

Phone: (905) 413-5754
E-Mail: curtispd@xxxxxxxxxx



                                                                         
Goss Nuzzo-jones <gnuzzojo@xxxxxxxxxx>                                    
                                                                         
Sent by:                                                               To
platform-ua-dev-bounces@xxxxxxxxxxx             platform-ua-dev@eclipse.o
                                                rg                        
                                                                       cc
31/01/2006 04:01 PM                                                      
                                                                  Subject
                                                [platform-ua-dev] Trying  
           Please respond to                    to use Search            
   "Eclipse Platform User Assistance            Participants              
      component developers list."                                        
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         





Hi,

I'm attempting to use a LuceneSearchParticipant to index some dynamic
e-learning content. I'm using the following extension:

<extension
point="org.eclipse.help.base.luceneSearchParticipants">
<searchParticipant
id="com.ibm.extremeblue.elearning.external.ScormSearchParticipant"
participant="com.ibm.extremeblue.elearning.external.ScormSearchParticipant"
/>
</extension>


However, the class extending LuceneSearchParticipant,
com.ibm.extremeblue.elearning.external.ScormSearchParticipant, never has
its addDocument method invoked. Is there an additional step I'm missing?

Thanks,
Goss_______________________________________________
platform-ua-dev mailing list
platform-ua-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-ua-dev
_______________________________________________
platform-ua-dev mailing list
platform-ua-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-ua-dev


_______________________________________________
platform-ua-dev mailing list
platform-ua-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-ua-dev

GIF image

GIF image

GIF image


Back to the top