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


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: platform-ua-dev-bounces@xxxxxxxxxxx

31/01/2006 04:01 PM

Please respond to
"Eclipse Platform User Assistance component developers list."

To
platform-ua-dev@xxxxxxxxxxx
cc
Subject
[platform-ua-dev] Trying to use Search Participants





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


Back to the top