|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Starts a search with a given query within a list of indexes,
no matter what search service implementation an index is.
All sub searches are cummulated in one list and finally sorted by rank value.
To get a IFederatedSearch instance follow this example:
IIndexService indexService = (IIndexService)ResourceFactory.getInstance()
.getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);
IFederatedSearch federatedSearch = (IFederatedSearch)indexService
.getObjectInstance(IWcmIndexConst.FEDERATED_SEARCH_INSTANCE);
| Method Summary | |
ISearchResultList |
getEmptySearchResultList()
Empty search result list where search results from other search result lists can be added to. |
int |
getMaxSnippetWords()
Sets the number of snippet words returned for documents in a search. |
IQueryEntry |
getNewQueryEntry()
Initial query entry as part of a search query. |
IQueryEntryList |
getNewQueryEntryList()
Empty list for adding query entries when creating a search query. |
java.util.List |
getSearchIndexes()
Deprecated. as of NW04. Use getSearchIndexes(IResourceContext) |
java.util.List |
getSearchIndexes(IResourceContext context)
Gets all indexes that contain one ore more repositories where the index is a search index. |
ISearchResultList |
search(IQueryEntryList queryEntryList,
ICollection searchFromHere,
int maxResults,
IResourceContext context)
Performs a search within a list of search indexes restricted by a path. |
ISearchResultList |
search(IQueryEntryList queryEntryList,
java.util.List indexes,
int maxResults,
IResourceContext context)
Performs a search within a list of search indexes. |
ISearchResultList |
searchSimilarDocuments(java.util.List indexes,
IResourceList documents,
int maxResults)
Performs a federated similar document search. |
ISearchSession |
searchSimilarDocumentsWithSession(java.util.List indexes,
IResourceList documents)
Performs a federated similar document search. |
ISearchSession |
searchSimilarDocumentsWithSession(java.util.List indexes,
IResourceList documents,
ISortPropertyName sortProperty)
Performs a federated similar document search. |
java.util.List |
searchSimilarTerms(java.util.List indexes,
java.util.Collection terms,
int maxResults)
Searches for terms to a similar to a collection of terms. |
ISearchSession |
searchWithSession(IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context)
Performs a search within a list of search indexes restricted by a path. |
ISearchSession |
searchWithSession(IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
ISortPropertyName sortProperty)
Performs a search within a list of search indexes restricted by a path. |
ISearchSession |
searchWithSession(IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
ISortPropertyName sortProperty,
java.util.Set languages)
Performs a search within a list of search indexes restricted by a path. |
ISearchSession |
searchWithSession(IQueryEntryList queryEntryList,
IRidList searchFromHereList,
IResourceContext context,
ISortPropertyName sortProperty,
java.util.Set languages)
|
ISearchSession |
searchWithSession(IQueryEntryList queryEntryList,
java.util.List indexes,
IResourceContext context)
Performs a search within a list of search indexes. |
ISearchSession |
searchWithSession(IQueryEntryList queryEntryList,
java.util.List indexes,
IResourceContext context,
ISortPropertyName sortProperty)
Performs a search within a list of search indexes. |
void |
setMaxSnippetWords(int numOfWords)
Sets the number of snippet words returned for documents in a search. |
| Method Detail |
public java.util.List getSearchIndexes()
throws WcmException
getSearchIndexes(IResourceContext)
IIndex objects
public java.util.List getSearchIndexes(IResourceContext context)
throws WcmException
context - user contextIIndex objects
public ISearchResultList search(IQueryEntryList queryEntryList,
java.util.List indexes,
int maxResults,
IResourceContext context)
throws WcmException
queryEntryList - list of query entries for the searchindexes - list of IIndex objects that have been choosen for the search.
To get all existing search indexes call the getSearchIndexes method.maxResults - maximum number of search resultscontext - user context
public ISearchSession searchWithSession(IQueryEntryList queryEntryList,
java.util.List indexes,
IResourceContext context)
throws WcmException
getSearchResults must be called on that session.
The session concept optimizes performance because only for the displayed results resources
must be retrieved from the resource factory.queryEntryList - list of query entries for the searchindexes - list of IIndex objects that have been choosen for the search.
To get all existing search indexes call the getSearchIndexes method.context - user context
public ISearchSession searchWithSession(IQueryEntryList queryEntryList,
java.util.List indexes,
IResourceContext context,
ISortPropertyName sortProperty)
throws WcmException
getSearchResults must be called on that session.
The session concept optimizes performance because only for the displayed results resources
must be retrieved from the resource factory.queryEntryList - list of query entries for the searchindexes - list of IIndex objects that have been choosen for the search.
To get all existing search indexes call the getSearchIndexes method.context - user contextsortProperty - property name for sorting the results; if null, the results are
sorted according to their rank value
public ISearchResultList search(IQueryEntryList queryEntryList,
ICollection searchFromHere,
int maxResults,
IResourceContext context)
throws WcmException
queryEntryList - list of query entries for the searchsearchFromHere - folder from where search results must be direct or indirect childrenmaxResults - maximum number of search resultscontext - user context
public ISearchSession searchWithSession(IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context)
throws WcmException
getSearchResults must be called on that session.
The session concept optimizes performance because only for the displayed results resources
must be retrieved from the resource factory.queryEntryList - list of query entries for the searchsearchFromHere - folder from where search results must be direct or indirect childrencontext - user context
public ISearchSession searchWithSession(IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
ISortPropertyName sortProperty)
throws WcmException
getSearchResults must be called on that session.
The session concept optimizes performance because only for the displayed results resources
must be retrieved from the resource factory.queryEntryList - list of query entries for the searchsearchFromHere - folder from where search results must be direct or indirect childrencontext - user contextsortProperty - property name for sorting the results
public ISearchSession searchWithSession(IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
ISortPropertyName sortProperty,
java.util.Set languages)
throws WcmException
languages describes a set
of languages, on which the search is restricted. If this parameter is null or empty,
no restriction takes place.
It returns a session object that contains the search results in a raw format.
To get search results getSearchResults must be called on that session.
The session concept optimizes performance because only for the displayed results resources
must be retrieved from the resource factory.queryEntryList - list of query entries for the searchsearchFromHere - folder from where search results must be direct or indirect childrencontext - user contextsortProperty - property name for sorting the resultslanguages - set of strings, each describing a language
public ISearchSession searchWithSession(IQueryEntryList queryEntryList,
IRidList searchFromHereList,
IResourceContext context,
ISortPropertyName sortProperty,
java.util.Set languages)
throws WcmException
public ISearchResultList searchSimilarDocuments(java.util.List indexes,
IResourceList documents,
int maxResults)
throws WcmException
indexes - list of IIndex objects that have been choosen for the search.
To get all existing search indexes call the getSearchIndexes method.documents - list of documents for that similar documents have to be foundmaxResults - maximum number of search results
public ISearchSession searchSimilarDocumentsWithSession(java.util.List indexes,
IResourceList documents)
throws WcmException
getSearchResults must be called on that session.
The session concept optimizes performance because only for the displayed results resources
must be retrieved from the resource factory.indexes - is a list of (IIndex)index objects that have been choosen for the search.
To get all existing search indexes call the getSearchIndexes method.documents - list of documents for that similar documents have to be found
public ISearchSession searchSimilarDocumentsWithSession(java.util.List indexes,
IResourceList documents,
ISortPropertyName sortProperty)
throws WcmException
getSearchResults must be called on that session.
The session concept optimizes performance because only for the displayed results resources
must be retrieved from the resource factory.indexes - is a list of (IIndex)index objects that have been choosen for the search.
To get all existing search indexes call the getSearchIndexes method.documents - list of documents for that similar documents have to be foundsortProperty - property name for sorting the results; if null, the results are
sorted according to their rank value
public java.util.List searchSimilarTerms(java.util.List indexes,
java.util.Collection terms,
int maxResults)
throws WcmException
indexes - list of IIndex objects that have been choosen for the search.
To get all existing search indexes call the getSearchIndexes method.terms - collection of terms of type StringmaxResults - maximum number of returned similar termsITextminingTermpublic IQueryEntry getNewQueryEntry()
public IQueryEntryList getNewQueryEntryList()
public ISearchResultList getEmptySearchResultList()
public void setMaxSnippetWords(int numOfWords)
numOfWords - public int getMaxSnippetWords()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||