com.sapportals.wcm.service.indexmanagement.retrieval.search

Interface ISearchIndex

All Superinterfaces:
IIndex

public interface ISearchIndex
extends IIndex

Index for search and retrieval operations.


Field Summary
static String PROP_NAME_EXPERT
          Name of the resource property that identifies the responsible for the documents content
static String PROP_NAME_PATH
          Name of the resource path property when restricting queries by a path.
 
Method Summary
 Map doGeneric(String function, Map parameters)
          this method enables an index service to perform classification actions that are not reflected by the interface.
 ISearchResultList executeQuery(IQueryEntryList queryEntryList, IResourceContext context, int maxResults)
          Executes the search
 ISearchResultList executeQuery(IQueryEntryList queryEntryList, IResourceContext context, int maxResults, ICollection searchFromHere)
          Executes the search
 ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList, IResourceContext context)
          Executes the search
 ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList, IResourceContext context, ICollection searchFromHere)
          Executes the search
 Collection getDocumentAbstracts(IResourceList resourceDocuments)
          gets the abstract of documents
 Collection getDocumentFeatures(IResourceList resourceDocuments, int maxFeatures)
          gets the features of documents
 IQueryEntry getNewQueryEntry()
           
 IQueryEntryList getNewQueryEntryList()
           
 ISearchIndexCollection getNewSearchIndexCollection()
           
 String getQueryAsString()
          Deprecated. as of NW04.
 void loadQuery(Properties props)
          Deprecated. as of NW04.
 ISearchResultList searchSimilarDocuments(IResourceList searchDocuments, int maxResults)
          searches similar documents
 ISearchSession searchSimilarDocumentsWithSession(IResourceList searchDocuments)
          searches similar documents
 Collection searchSimilarTerms(Collection terms, int maxTerms)
          searches similar terms to a collection of terms
 
Methods inherited from interface com.sapportals.wcm.service.indexmanagement.IIndex
addFolderUri, checkProperties, clear, createIndexOnServer, deindexDocument, deindexDocument, deindexDocument, deindexDocuments, deindexDocuments, deindexDocuments, delete, delete, deleteOnServer, deltaReindex, generate, generate, getCrawlerProfileId, getFolderUris, getIndexedProperties, getIndexFolderForDocument, getIndexFolders, getIndexGroup, getIndexId, getIndexingState, getIndexName, getLanguagesOfIndexedDocuments, getProperties, getResourceInfo, getRID, getSchedulerTimeTable, getServiceId, getServiceTypes, getServiceTypes, getSupportedOptions, getWhatToIndexString, indexDocument, indexDocument, indexDocuments, indexDocuments, indexInternalLinks, init, isActive, reduceNumberOfCrawler, reindex, reindex, removeAllFolderUris, removeFolderUri, setActive, setActiveDuringStartup, setCrawlerProfileId, setInactiveIndexHasChanged, setIndexGroup, setIndexingState, setIndexName, setProperties, setSchedulerTimeTable, setStateAndNumberOfCrawler, setWhatToIndex, typeShouldBeIndexed
 

Field Detail

PROP_NAME_EXPERT

public static final String PROP_NAME_EXPERT
Name of the resource property that identifies the responsible for the documents content

See Also:
Constant Field Values

PROP_NAME_PATH

public static final String PROP_NAME_PATH
Name of the resource path property when restricting queries by a path. For searching documents in all sub folders of the path, add a star(*) behind the path.

See Also:
Constant Field Values
Method Detail

executeQuery

public ISearchResultList executeQuery(IQueryEntryList queryEntryList,
                                      IResourceContext context,
                                      int maxResults)
                               throws WcmException
Executes the search

Parameters:
queryEntryList - - list of query entries for the search
context - - user context
maxResults - - maximum number of search results
Returns:
search result list with the found documents
Throws:
WcmException

executeQuery

public ISearchResultList executeQuery(IQueryEntryList queryEntryList,
                                      IResourceContext context,
                                      int maxResults,
                                      ICollection searchFromHere)
                               throws WcmException
Executes the search

Parameters:
queryEntryList - - list of query entries for the search
context - - user context
maxResults - - maximum number of search results
searchFromHere - - folder from where search results must be direct or indirect children
Returns:
search result list with the found documents
Throws:
WcmException

executeQueryWithSession

public ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
                                              IResourceContext context)
                                       throws WcmException
Executes the search

Parameters:
queryEntryList - - list of query entries for the search
context - - user context
Returns:
search session result
Throws:
WcmException

executeQueryWithSession

public ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
                                              IResourceContext context,
                                              ICollection searchFromHere)
                                       throws WcmException
Executes the search

Parameters:
queryEntryList - - list of query entries for the search
context - - user context
searchFromHere - - folder from where search results must be direct or indirect children
Returns:
search session result
Throws:
WcmException

searchSimilarDocuments

public ISearchResultList searchSimilarDocuments(IResourceList searchDocuments,
                                                int maxResults)
                                         throws WcmException
searches similar documents

Parameters:
searchDocuments - - list of documents for that similar documents have to be found
maxResults - - maximum number of similar documents
Returns:
search result list with the found similar documents
Throws:
WcmException

searchSimilarDocumentsWithSession

public ISearchSession searchSimilarDocumentsWithSession(IResourceList searchDocuments)
                                                 throws WcmException
searches similar documents

Parameters:
searchDocuments - - list of documents for that similar documents have to be found
Returns:
search session result
Throws:
WcmException

searchSimilarTerms

public Collection searchSimilarTerms(Collection terms,
                                     int maxTerms)
                              throws WcmException
searches similar terms to a collection of terms

Parameters:
terms - Collection of terms (Strings)
maxTerms - - maximum number of returned similar terms
Returns:
Collection of ITextminingTerm
Throws:
WcmException

getDocumentFeatures

public Collection getDocumentFeatures(IResourceList resourceDocuments,
                                      int maxFeatures)
                               throws WcmException
gets the features of documents

Parameters:
resourceDocuments - resource list of documents for that features have to be returned
maxFeatures - - maximum number of returned document features
Returns:
Collection of ITextminingResult
Throws:
WcmException

getDocumentAbstracts

public Collection getDocumentAbstracts(IResourceList resourceDocuments)
                                throws WcmException
gets the abstract of documents

Parameters:
resourceDocuments - resource list of documents for that abstracts have to be returned
Returns:
Collection of ITextminingResult
Throws:
WcmException

getQueryAsString

public String getQueryAsString()
                        throws WcmException
Deprecated. as of NW04.

Returns the momentary query as a string, ready to be saved as a .properties file

Throws:
WcmException

loadQuery

public void loadQuery(Properties props)
               throws WcmException
Deprecated. as of NW04.

loads a complete Query from the given properites object.

Throws:
WcmException

getNewQueryEntry

public IQueryEntry getNewQueryEntry()
Returns:
a new query entry instance

getNewQueryEntryList

public IQueryEntryList getNewQueryEntryList()
Returns:
a new query entry list instance

getNewSearchIndexCollection

public ISearchIndexCollection getNewSearchIndexCollection()
                                                   throws ResourceException
Returns:
new search index collection to search in more than one index
Throws:
ResourceException

doGeneric

public Map doGeneric(String function,
                     Map parameters)
              throws WcmException
this method enables an index service to perform classification actions that are not reflected by the interface.

Parameters:
function - - name of the function that has to be performed
Returns:
map with results of the executed function
Throws:
WcmException


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.