Eclipse Platform
Release 3.6

org.eclipse.help.search
Interface ISearchIndex


Deprecated. This interface is deprecated because it exposes Lucene classes, which are not binary compatible between major release. This interface was used by clients which implemented the extension point org.eclipse.help.bace.luceneSearchParticipants. The extension point org.eclipse.help.base.searchParticipant and the interface IHelpSearchIndex should be used instead.

public interface ISearchIndex

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.


Method Summary
 IStatus addDocument(String pluginId, String name, URL url, String id, org.apache.lucene.document.Document doc)
          Deprecated. Adds a document to the search index by parsing it using one of the file-based search participants, or the default HTML search participant.
 String getLocale()
          Deprecated. A search index is created for each locale.
 

Method Detail

addDocument

IStatus addDocument(String pluginId,
                    String name,
                    URL url,
                    String id,
                    org.apache.lucene.document.Document doc)
Deprecated. 
Adds a document to the search index 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.

Parameters:
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 Lucene document
Returns:
the status of the operation

getLocale

String getLocale()
Deprecated. 
A search index is created for each locale.

Returns:
the locale associated with this index.

Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.