|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.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.
| Inner Class Summary | |
class |
AbstractSearchIndexCollection.PropertyInput
|
| 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(java.util.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,
java.util.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,
java.util.Set languages)
Executes the search |
ISearchSession |
executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults,
IRidList searchFromHereList,
ISortPropertyName sortProperty,
java.util.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,
java.util.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,
java.util.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. |
java.util.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. |
java.util.Collection |
getPropertyValues(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
java.util.Collection indexes)
Returns the distinct property values of the indexes for the specified property, only considering the documents fullfilling the search restriction. |
java.util.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. |
java.lang.String |
getQueryAsString()
Returns the momentary query as a string, ready to be saved as a .properties file |
abstract ISearchResultList |
getSearchResults(java.util.List rawSearchResults,
IResourceContext context)
|
void |
loadQuery(java.util.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 java.util.Collection |
searchSimilarTerms(java.util.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(java.util.Collection indexes)
| Method Detail |
public abstract ISearchResultList executeQuery(IQueryEntryList queryEntryList,
IResourceContext context,
int maxResults)
throws WcmException
ISearchIndexCollectionexecuteQuery in interface ISearchIndexCollectioncom.sapportals.wcm.service.indexmanagement.retrieval.search.ISearchIndexCollectionqueryEntryList - - list of query entries for the searchcontext - - user contextmaxResults - - maximum number of search results
public abstract ISearchResultList executeQuery(IQueryEntryList queryEntryList,
IResourceContext context,
int maxResults,
ICollection searchFromHere)
throws WcmException
ISearchIndexCollectionexecuteQuery in interface ISearchIndexCollectioncom.sapportals.wcm.service.indexmanagement.retrieval.search.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
public abstract ISearchResultList executeQuery(IQueryEntryList queryEntryList,
IResourceContext context,
int maxResults,
ICollection searchFromHere,
java.util.Set languages)
throws WcmException
ISearchIndexCollectionexecuteQuery in interface ISearchIndexCollectioncom.sapportals.wcm.service.indexmanagement.retrieval.search.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
public abstract ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context)
throws WcmException
ISearchIndexCollectionexecuteQueryWithSession in interface ISearchIndexCollectioncom.sapportals.wcm.service.indexmanagement.retrieval.search.ISearchIndexCollectionqueryEntryList - - list of query entries for the searchcontext - - user context
public abstract ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
ICollection searchFromHere)
throws WcmException
ISearchIndexCollectionexecuteQueryWithSession in interface ISearchIndexCollectioncom.sapportals.wcm.service.indexmanagement.retrieval.search.ISearchIndexCollectionqueryEntryList - - list of query entries for the searchcontext - - user contextsearchFromHere - - folder from where search results must be direct or indirect children
public abstract ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults)
throws WcmException
ISearchIndexCollectionexecuteQueryWithSession in interface ISearchIndexCollectioncom.sapportals.wcm.service.indexmanagement.retrieval.search.ISearchIndexCollectionqueryEntryList - - list of query entries for the searchcontext - - user contextinitNumberResults - initial maximum number of raw results.
The number is increased automatically when the result session requests more raw results.
public abstract ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults,
ICollection searchFromHere)
throws WcmException
ISearchIndexCollectionexecuteQueryWithSession in interface ISearchIndexCollectioncom.sapportals.wcm.service.indexmanagement.retrieval.search.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
public abstract ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults,
ICollection searchFromHere,
ISortPropertyName sortProperty)
throws WcmException
ISearchIndexCollectionexecuteQueryWithSession in interface ISearchIndexCollectioncom.sapportals.wcm.service.indexmanagement.retrieval.search.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
public ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults,
ICollection searchFromHere,
ISortPropertyName sortProperty,
java.util.Set languages)
throws WcmException
ISearchIndexCollectionexecuteQueryWithSession in interface ISearchIndexCollectioncom.sapportals.wcm.service.indexmanagement.retrieval.search.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
public ISearchSession executeQueryWithSession(IQueryEntryList queryEntryList,
IResourceContext context,
int initNumberMaxRawResults,
IRidList searchFromHereList,
ISortPropertyName sortProperty,
java.util.Set languages)
throws WcmException
ISearchIndexCollectionexecuteQueryWithSession in interface ISearchIndexCollectioncom.sapportals.wcm.service.indexmanagement.retrieval.search.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
public abstract ISearchResultList searchSimilarDocuments(IResourceList searchDocuments,
int maxResults)
throws WcmException
ISearchIndexCollectionsearchSimilarDocuments in interface ISearchIndexCollectioncom.sapportals.wcm.service.indexmanagement.retrieval.search.ISearchIndexCollectionsearchDocuments - - list of documents for that similar documents have to be foundmaxResults - - maximum number of similar documents
public abstract ISearchSession searchSimilarDocumentsWithSession(IResourceList searchDocuments)
throws WcmException
ISearchIndexCollectionsearchSimilarDocumentsWithSession in interface ISearchIndexCollectioncom.sapportals.wcm.service.indexmanagement.retrieval.search.ISearchIndexCollectionsearchDocuments - - list of documents for that similar documents have to be found
public abstract ISearchSession searchSimilarDocumentsWithSession(IResourceList searchDocuments,
int initNumberMaxRawResults)
throws WcmException
ISearchIndexCollectionsearchSimilarDocumentsWithSession in interface ISearchIndexCollectioncom.sapportals.wcm.service.indexmanagement.retrieval.search.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.
public abstract java.util.Collection searchSimilarTerms(java.util.Collection terms,
int maxTerms)
throws WcmException
ISearchIndexCollectionsearchSimilarTerms in interface ISearchIndexCollectioncom.sapportals.wcm.service.indexmanagement.retrieval.search.ISearchIndexCollectionterms - Collection of terms (Strings)maxTerms - - maximum number of returned similar termspublic void setMaxSnippetWords(int numOfWords)
setMaxSnippetWords in interface ISearchIndexCollectionnumOfWords - public int getMaxSnippetWords()
getMaxSnippetWords in interface ISearchIndexCollection
public java.lang.String getQueryAsString()
throws WcmException
ISearchIndexCollectiongetQueryAsString in interface ISearchIndexCollection
public void loadQuery(java.util.Properties props)
throws WcmException
loadQuery in interface ISearchIndexCollectionpublic IQueryEntry getNewQueryEntry()
getNewQueryEntry in interface ISearchIndexCollectionpublic IQueryEntryList getNewQueryEntryList()
getNewQueryEntryList in interface ISearchIndexCollection
public abstract ISearchResultList getSearchResults(java.util.List rawSearchResults,
IResourceContext context)
throws ResourceException
getSearchResults in interface ISearchIndexCollectionrawSearchResults - list of IRawSearchResult
public IPropertyDistributionList getPropertyDistributionOverview(IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
ISearchIndex index)
throws WcmException
ISearchIndexCollectiongetPropertyDistributionOverview in interface ISearchIndexCollectionISearchIndexCollection
public IPropertyDistributionList getPropertyDistributionOverview(IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
java.util.Collection indexList)
throws WcmException
ISearchIndexCollectiongetPropertyDistributionOverview in interface ISearchIndexCollectionISearchIndexCollection
public IPropertyDistributionList getPropertyDistributionOverview(IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context)
throws WcmException
ISearchIndexCollectiongetPropertyDistributionOverview in interface ISearchIndexCollectionISearchIndexCollection
public IPropertyRangeList getPropertyRanges(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
ISearchIndex index)
throws WcmException
ISearchIndexCollectiongetPropertyRanges in interface ISearchIndexCollectionISearchIndexCollection
public IPropertyRangeList getPropertyRanges(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
java.util.Collection indexList)
throws WcmException
ISearchIndexCollectiongetPropertyRanges in interface ISearchIndexCollectionISearchIndexCollection
public IPropertyRangeList getPropertyRanges(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context)
throws WcmException
ISearchIndexCollectiongetPropertyRanges in interface ISearchIndexCollectionISearchIndexCollection
public java.util.Collection getPropertyValues(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
ISearchIndex index)
throws WcmException
ISearchIndexCollectiongetPropertyValues in interface ISearchIndexCollectionISearchIndexCollection
public java.util.Collection getPropertyValues(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context,
java.util.Collection indexes)
throws WcmException
ISearchIndexCollectiongetPropertyValues in interface ISearchIndexCollectionISearchIndexCollection
public java.util.Collection getPropertyValues(IPropertyName propertyName,
IQueryEntryList queryEntryList,
ICollection searchFromHere,
IResourceContext context)
throws WcmException
ISearchIndexCollectiongetPropertyValues in interface ISearchIndexCollectionISearchIndexCollection
protected ISearchSession getNewSearchSession(IQueryEntryList queryEntries,
IRidList searchFromHereList,
ISearchIndexCollection searchIndexCollection,
IResourceContext context,
int initMaxRawResults,
ISortPropertyName sortProperty)
throws WcmException
queryEntries - the query entry list of the querysearchFromHere - collection to search from here (can be null)searchIndexCollection - the search index collection to address for researchingcontext - the user contextinitMaxRawResults - initial maximum number of raw resultssortProperty - property name for sorting the results
protected ISearchResult createSearchResultObject(IResource resource,
float rankValue)
throws WcmException
resource - search result resourcerankValue -
public static ISearchResult createNewSearchResultObject(IResource resource,
float rankValue)
throws WcmException
resource - contained in the search resultrankValue - contained in the search resultWcmException - 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
protected IProperty createInitialProperty(IPropertyName propName)
throws ResourceException
propName - name of the property
protected PropertyType getPropertyType(IPropertyName propName)
throws ResourceException
propName - name of the property
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||