|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
com.sapportals.wcm.service.indexmanagement.AbstractIndexCollection
com.sapportals.wcm.service.indexmanagement.retrieval.search.AbstractSearchIndexCollection
Collection of search indexes to perform search and other retrieval operations on them.
| Nested Class Summary | |
class |
AbstractSearchIndexCollection.PropertyInput
|
| Field Summary |
| Fields inherited from class com.sapportals.wcm.service.indexmanagement.AbstractIndexCollection |
m_indexes |
| Fields inherited from interface com.sapportals.wcm.service.indexmanagement.retrieval.search.ISearchIndexCollection |
DEFAULT_INIT_MAX_RAW_RESULTS |
| Constructor Summary | |
AbstractSearchIndexCollection(Collection indexes)
|
|
| Method Summary | |
protected IProperty |
createInitialProperty(IPropertyName propName)
Creates a property with initial value for a property name. |
static ISearchResult |
createNewSearchResultObject(IResource resource,
float rankValue)
Creates a new search result object containing the resource and rank values of the parameters. |
protected ISearchResult |
createSearchResultObject(IResource resource,
float rankValue)
Gets a search result object initialized with the given resource and rank value. |
abstract ISearchResultList |
executeQuery(IQueryEntryList queryEntryList,
IResourceContext context,
int maxResults)
Executes the search |
abstract ISearchResultList |
executeQuery(IQueryEntryList queryEntryList,
IResourceContext context,
int maxResults,
ICollection searchFromHere)
Executes the search |
abstract ISearchResultList |
executeQuery(IQueryEntryList queryEntryList,
IResourceContext context,
int maxResults,
ICollection searchFromHere,
Set languages)
Executes the search |
abstract ISearchSession |
executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context)
Executes the search |
abstract ISearchSession |
executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
ICollection searchFromHere)
Executes the search |
abstract ISearchSession |
executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults)
Executes the search |
abstract ISearchSession |
executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults,
ICollection searchFromHere)
Executes the search |
abstract ISearchSession |
executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults,
ICollection searchFromHere,
ISortPropertyName sortProperty)
Executes the search |
ISearchSession |
executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults,
ICollection searchFromHere,
ISortPropertyName sortProperty,
Set languages)
Executes the search |
ISearchSession |
executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults,
IRidList searchFromHereList,
ISortPropertyName sortProperty,
Set languages)
Executes the search |
int |
getMaxSnippetWords()
Sets the number of snippet words returned for documents in a search. |
IQueryEntry |
getNewQueryEntry()
|
IQueryEntryList |
getNewQueryEntryList()
|
protected ISearchSession |
getNewSearchSession(IQueryEntryList queryEntries,
IRidList searchFromHereList,
ISearchIndexCollection searchIndexCollection,
IResourceContext context,
int initMaxRawResults,
ISortPropertyName sortProperty)
Gets a new search session instance |
protected ISearchSession |
getNewSearchSession(IResourceList similarDocsInput,
ISearchIndexCollection searchIndexCollection,
IResourceContext context,
int initMaxRawResults,
ISortPropertyName sortProperty)
Gets a new search session instance |
IPropertyDistributionList |
getPropertyDistributionOverview(IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context)
Returns basic information about the distribution of the properties of the indexes, of the SearchIndexCollection only considering the documents fullfilling the search restriction. |
IPropertyDistributionList |
getPropertyDistributionOverview(IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
Collection indexList)
Returns basic information about the distribution of the properties of the indexes, only considering the documents fullfilling the search restriction. |
IPropertyDistributionList |
getPropertyDistributionOverview(IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
ISearchIndex index)
Returns basic information about the distribution of the properties of an index, only considering the documents fullfilling the search restriction. |
IPropertyRangeList |
getPropertyRanges(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context)
Returns the ranges of the properties of the indexes of the ISearchIndexCollection, only considering the documents fullfilling the search restriction. |
IPropertyRangeList |
getPropertyRanges(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
Collection indexList)
Returns the ranges of the properties of the indexes, only considering the documents fullfilling the search restriction. |
IPropertyRangeList |
getPropertyRanges(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
ISearchIndex index)
Returns the ranges of the properties of an index, only considering the documents fullfilling the search restriction. |
protected PropertyType |
getPropertyType(IPropertyName propName)
Determines the property type using the property config service. |
Collection |
getPropertyValues(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context)
Returns the distinct property values of all indexes of the ISearchIndexCollection for the specified property, only considering the documents fullfilling the search restriction. |
Collection |
getPropertyValues(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
Collection indexes)
Returns the distinct property values of the indexes for the specified property, only considering the documents fullfilling the search restriction. |
Collection |
getPropertyValues(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
ISearchIndex index)
Returns the distinct property values of an index, only considering the documents fullfilling the search restriction. |
String |
getQueryAsString()
Returns the momentary query as a string, ready to be saved as a .properties file |
abstract ISearchResultList |
getSearchResults(List rawSearchResults,
IResourceContext context)
|
void |
loadQuery(Properties props)
Deprecated. as of NW04. |
abstract ISearchResultList |
searchSimilarDocuments(IResourceList searchDocuments,
int maxResults)
searches similar documents |
abstract ISearchSession |
searchSimilarDocumentsWithSession(IResourceList searchDocuments)
searches similar documents |
abstract ISearchSession |
searchSimilarDocumentsWithSession(IResourceList searchDocuments,
int initNumberMaxRawResults)
searches similar documents |
abstract Collection |
searchSimilarTerms(Collection terms,
int maxTerms)
searches similar terms to a collection of terms |
void |
setMaxSnippetWords(int numOfWords)
Sets the number of snippet words returned for documents in a search. |
| Methods inherited from class com.sapportals.wcm.service.indexmanagement.AbstractIndexCollection |
addIndex, getIndex, iterator, size |
| Methods inherited from class java.util.AbstractCollection |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sapportals.wcm.service.indexmanagement.retrieval.search.ISearchIndexCollection |
addIndex, searchSimilarDocumentsWithSession |
| Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Constructor Detail |
public AbstractSearchIndexCollection(Collection indexes)
| Method Detail |
public abstract ISearchResultList executeQuery(IQueryEntryList queryEntryList,
IResourceContext context,
int maxResults)
throws WcmException
ISearchIndexCollection
executeQuery in interface ISearchIndexCollectionqueryEntryList - - list of query entries for the searchcontext - - user contextmaxResults - - maximum number of search results
WcmException
public abstract ISearchResultList executeQuery(IQueryEntryList queryEntryList,
IResourceContext context,
int maxResults,
ICollection searchFromHere)
throws WcmException
ISearchIndexCollection
executeQuery in interface ISearchIndexCollectionqueryEntryList - - list of query entries for the searchcontext - - user contextmaxResults - - maximum number of search resultssearchFromHere - - folder from where search results must be direct or indirect children
WcmException
public abstract ISearchResultList executeQuery(IQueryEntryList queryEntryList,
IResourceContext context,
int maxResults,
ICollection searchFromHere,
Set languages)
throws WcmException
ISearchIndexCollection
executeQuery in interface ISearchIndexCollectionqueryEntryList - - list of query entries for the searchcontext - - user contextmaxResults - - maximum number of search resultssearchFromHere - - folder from where search results must be direct or indirect childrenlanguages - - set of strings, representing languages on which the search is restricted
WcmException
public abstract ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context)
throws WcmException
ISearchIndexCollection
executeQueryWithSession in interface ISearchIndexCollectionqueryEntryList - - list of query entries for the searchcontext - - user context
WcmException
public abstract ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
ICollection searchFromHere)
throws WcmException
ISearchIndexCollection
executeQueryWithSession in interface ISearchIndexCollectionqueryEntryList - - list of query entries for the searchcontext - - user contextsearchFromHere - - folder from where search results must be direct or indirect children
WcmException
public abstract ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults)
throws WcmException
ISearchIndexCollection
executeQueryWithSession in interface ISearchIndexCollectionqueryEntryList - - list of query entries for the searchcontext - - user context
WcmException
public abstract ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults,
ICollection searchFromHere)
throws WcmException
ISearchIndexCollection
executeQueryWithSession in interface ISearchIndexCollectionqueryEntryList - - list of query entries for the searchcontext - - user contextinitNumberMaxRawResults - initial maximum number of raw results.
The number is increased automatically when the result session requests more raw results.searchFromHere - - folder from where search results must be direct or indirect children
WcmException
public abstract ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults,
ICollection searchFromHere,
ISortPropertyName sortProperty)
throws WcmException
ISearchIndexCollection
executeQueryWithSession in interface ISearchIndexCollectionqueryEntryList - - list of query entries for the searchcontext - - user contextinitNumberMaxRawResults - initial maximum number of raw results.
The number is increased automatically when the result session requests more raw results.searchFromHere - - folder from where search results must be direct or indirect childrensortProperty - property name for sorting the results
WcmException
public ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults,
ICollection searchFromHere,
ISortPropertyName sortProperty,
Set languages)
throws WcmException
ISearchIndexCollection
executeQueryWithSession in interface ISearchIndexCollectionqueryEntryList - - list of query entries for the searchcontext - - user contextinitNumberMaxRawResults - initial maximum number of raw results.
The number is increased automatically when the result session requests more raw results.searchFromHere - - folder from where search results must be direct or indirect childrenlanguages - - restricts the search on the languages contained (as strings)sortProperty - property name for sorting the results
WcmException
public ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults,
IRidList searchFromHereList,
ISortPropertyName sortProperty,
Set languages)
throws WcmException
ISearchIndexCollection
executeQueryWithSession in interface ISearchIndexCollectionqueryEntryList - - list of query entries for the searchcontext - - user contextinitNumberMaxRawResults - initial maximum number of raw results.
The number is increased automatically when the result session requests more raw results.searchFromHereList - - folder with ICollections from where search results
must be a direct or indirect childrenlanguages - - restricts the search on the languages contained (as strings)sortProperty - property name for sorting the results
WcmException
public abstract ISearchResultList searchSimilarDocuments(IResourceList searchDocuments,
int maxResults)
throws WcmException
ISearchIndexCollection
searchSimilarDocuments in interface ISearchIndexCollectionsearchDocuments - - list of documents for that similar documents have to be foundmaxResults - - maximum number of similar documents
WcmException
public abstract ISearchSession searchSimilarDocumentsWithSession(IResourceList searchDocuments)
throws WcmException
ISearchIndexCollection
searchSimilarDocumentsWithSession in interface ISearchIndexCollectionsearchDocuments - - list of documents for that similar documents have to be found
WcmException
public abstract ISearchSession searchSimilarDocumentsWithSession(IResourceList searchDocuments,
int initNumberMaxRawResults)
throws WcmException
ISearchIndexCollection
searchSimilarDocumentsWithSession in interface ISearchIndexCollectionsearchDocuments - - list of documents for that similar documents have to be foundinitNumberMaxRawResults - initial maximum number of raw results.
The number is increased automatically when the result session requests more raw results.
WcmException
public abstract Collection searchSimilarTerms(Collection terms,
int maxTerms)
throws WcmException
ISearchIndexCollection
searchSimilarTerms in interface ISearchIndexCollectionterms - Collection of terms (Strings)maxTerms - - maximum number of returned similar terms
WcmExceptionpublic void setMaxSnippetWords(int numOfWords)
setMaxSnippetWords in interface ISearchIndexCollectionnumOfWords - public int getMaxSnippetWords()
getMaxSnippetWords in interface ISearchIndexCollection
public String getQueryAsString()
throws WcmException
ISearchIndexCollection
getQueryAsString in interface ISearchIndexCollectionWcmException
public void loadQuery(Properties props)
throws WcmException
loadQuery in interface ISearchIndexCollectionWcmExceptionpublic IQueryEntry getNewQueryEntry()
getNewQueryEntry in interface ISearchIndexCollectionpublic IQueryEntryList getNewQueryEntryList()
getNewQueryEntryList in interface ISearchIndexCollection
public abstract ISearchResultList getSearchResults(List rawSearchResults,
IResourceContext context)
throws ResourceException
getSearchResults in interface ISearchIndexCollectionrawSearchResults - list of IRawSearchResult
ResourceException
public IPropertyDistributionList getPropertyDistributionOverview(IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
ISearchIndex index)
throws WcmException
ISearchIndexCollection
getPropertyDistributionOverview in interface ISearchIndexCollectionqueryEntryList - restricts the considered documents to those fullfilling this
expressionsearchFromHere - restricts the considered documents to those located under
this collectioncontext - resource context, not used to filter the result applying the
access rights to the documents.
WcmExceptionISearchIndexCollection
public IPropertyDistributionList getPropertyDistributionOverview(IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
Collection indexList)
throws WcmException
ISearchIndexCollection
getPropertyDistributionOverview in interface ISearchIndexCollectionqueryEntryList - restricts the considered documents to those fullfilling this
expressionsearchFromHere - restricts the considered documents to those located under
this collectioncontext - resource context, not used to filter the result applying the
access rights to the documents.indexList - list of ISearchIndex of one type, e.g. AbstractTrexSearchIndex
WcmExceptionISearchIndexCollection
public IPropertyDistributionList getPropertyDistributionOverview(IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context)
throws WcmException
ISearchIndexCollection
getPropertyDistributionOverview in interface ISearchIndexCollectionqueryEntryList - restricts the considered documents to those fullfilling this
expressionsearchFromHere - restricts the considered documents to those located under
this collectioncontext - resource context, not used to filter the result applying the
access rights to the documents.
WcmExceptionISearchIndexCollection
public IPropertyRangeList getPropertyRanges(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
ISearchIndex index)
throws WcmException
ISearchIndexCollection
getPropertyRanges in interface ISearchIndexCollectionpropertyName - the property for which the ranges are extractedqueryEntryList - restricts the considered documents to those fullfilling this
expressionsearchFromHere - restricts the considered documents to those located under
this collectioncontext - resource context, not used to filter the result applying the
access rights to the documents.index -
WcmException - in case of an errorISearchIndexCollection
public IPropertyRangeList getPropertyRanges(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
Collection indexList)
throws WcmException
ISearchIndexCollection
getPropertyRanges in interface ISearchIndexCollectionpropertyName - the property for which the ranges are extractedqueryEntryList - restricts the considered documents to those fullfilling this
expressionsearchFromHere - restricts the considered documents to those located under
this collectioncontext - resource context, not used to filter the result applying the
access rights to the documents.indexList -
WcmException - in case of an errorISearchIndexCollection
public IPropertyRangeList getPropertyRanges(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context)
throws WcmException
ISearchIndexCollection
getPropertyRanges in interface ISearchIndexCollectionpropertyName - the property for which the ranges are extractedqueryEntryList - restricts the considered documents to those fullfilling this
expressionsearchFromHere - restricts the considered documents to those located under
this collectioncontext - resource context, not used to filter the result applying the
access rights to the documents.
WcmException - in case of an errorISearchIndexCollection
public Collection getPropertyValues(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
ISearchIndex index)
throws WcmException
ISearchIndexCollection
getPropertyValues in interface ISearchIndexCollectionpropertyName - the property for which the values are extractedqueryEntryList - restricts the considered documents to those fullfilling this
expressionsearchFromHere - restricts the considered documents to those located under
this collectioncontext - resource context, not used to filter the result applying the
access rights to the documents.index -
WcmException - in case of an errorISearchIndexCollection
public Collection getPropertyValues(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
Collection indexes)
throws WcmException
ISearchIndexCollection
getPropertyValues in interface ISearchIndexCollectionpropertyName - the property for which the values are extractedqueryEntryList - restricts the considered documents to those fullfilling this
expressionsearchFromHere - restricts the considered documents to those located under
this collectioncontext - resource context, not used to filter the result applying the
access rights to the documents.indexes -
WcmException - in case of an errorISearchIndexCollection
public Collection getPropertyValues(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context)
throws WcmException
ISearchIndexCollection
getPropertyValues in interface ISearchIndexCollectionpropertyName - the property for which the values are extractedqueryEntryList - restricts the considered documents to those fullfilling this
expressionsearchFromHere - restricts the considered documents to those located under
this collectioncontext - resource context, not used to filter the result applying the
access rights to the documents.
WcmException - in case of an errorISearchIndexCollection
protected ISearchSession getNewSearchSession(IQueryEntryList queryEntries,
IRidList searchFromHereList,
ISearchIndexCollection searchIndexCollection,
IResourceContext context,
int initMaxRawResults,
ISortPropertyName sortProperty)
throws WcmException
queryEntries - the query entry list of the querysearchIndexCollection - the search index collection to address for researchingcontext - the user contextinitMaxRawResults - initial maximum number of raw resultssortProperty - property name for sorting the results
WcmException
protected ISearchResult createSearchResultObject(IResource resource,
float rankValue)
throws WcmException
resource - search result resourcerankValue -
WcmException
public static ISearchResult createNewSearchResultObject(IResource resource,
float rankValue)
throws WcmException
resource - contained in the search resultrankValue - contained in the search result
WcmException - in case of a failure
protected ISearchSession getNewSearchSession(IResourceList similarDocsInput,
ISearchIndexCollection searchIndexCollection,
IResourceContext context,
int initMaxRawResults,
ISortPropertyName sortProperty)
throws WcmException
similarDocsInput - the basis for similar document searchsearchIndexCollection - the search index collection to address for researchingcontext - the user contextinitMaxRawResults - initial maximum number of raw resultssortProperty - property name for sorting the results
WcmException
protected IProperty createInitialProperty(IPropertyName propName)
throws ResourceException
propName - name of the property
ResourceException
protected PropertyType getPropertyType(IPropertyName propName)
throws ResourceException
propName - name of the property
ResourceException
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||