Interface IHelpSearchIndex

  • public interface IHelpSearchIndex
    Represents a Lucene index for one locale. The interface is used to allow participants to delegate indexing of documents outside of the TOC using the same algorithms as those in TOC.
    This interface is not intended to be implemented by clients.
    This interface is not intended to be extended by clients.
    • Method Detail

      • addSearchableDocument

        IStatus addSearchableDocument​(String pluginId,
                                      String name,
                                      URL url,
                                      String id,
                                      ISearchDocument doc)
        Adds a document to the search index database by parsing it using one of the file-based search participants, or the default HTML search participant. Use this method when encountering documents outside of TOC that are nevertheless of the known format and help system knows how to handle.
        pluginId - the id of the contributing plug-in
        name - the name of the document
        url - the URL of the document using format '/pluginId/href'
        id - the unique id of this document as defined in the participant
        doc - the document to be added
        the status of the operation
      • getLocale

        String getLocale()
        A search index is created for each locale.
        the locale associated with this index.