SAP NetWeaver '04

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

[contained in: com.sap.km.cm.service.par - km.shared.service.indexmanagement_api.jar]
public interface IRawSearchSession

Access to a search session from the input side.


Method Summary
 void addPropertyInfo(java.lang.String attrName, IPropertyInfo propertyInfo)
           
 IRawSearchResult createRawSearchResult(java.lang.String docKey, float rankValue)
           
 IRawSearchResult createRawSearchResult(java.lang.String docKey, float rankValue, IProperty sortProperty, IPropertyMap resultResourceProperties)
           
 IPropertyInfo getPropertyInfo(java.lang.String attrName)
           
 java.util.List getRawSearchResults()
          Gets all in the session existing results
 java.util.List getRawSearchResults(int newMaxResults)
          If the session has less than new max results a search with newMaxResults is performed and these raw results are returned.
 ISearchResultList getSearchResults(java.util.List rawSearchResults)
          Converts raw search results in real search results
 ISortPropertyName getSortProperty()
           
 void setRawSearchResults(java.util.List rawSearchResults)
          List of raw search results is set by the index impl
 void setSearchLanguages(java.util.Set languages)
          Sets the languages, on which the search is restricted.
 void setTotalNumberResultKeys(int totalNumberDocKeys)
          Sets the total number of document keys that can be returned.
 

Method Detail

setRawSearchResults

public void setRawSearchResults(java.util.List rawSearchResults)
List of raw search results is set by the index impl
Parameters:
searchResultList - list of IRawSearchResult

getRawSearchResults

public java.util.List getRawSearchResults(int newMaxResults)
                                   throws WcmException
If the session has less than new max results a search with newMaxResults is performed and these raw results are returned. Otherwise the raw search results of the session are returned.
Parameters:
newMaxResults - new maximum number of returned results
Returns:
list of IRawSearchResult

getRawSearchResults

public java.util.List getRawSearchResults()
Gets all in the session existing results
Returns:
list of IRawSearchResult

getSearchResults

public ISearchResultList getSearchResults(java.util.List rawSearchResults)
                                   throws ResourceException
Converts raw search results in real search results
Parameters:
rawSearchResults - list of IRawSearchResult
Returns:
list of search result objects (with resources)

createRawSearchResult

public IRawSearchResult createRawSearchResult(java.lang.String docKey,
                                              float rankValue)
Parameters:
docKey - document key of the result
rankValue - rank value of the search result
Returns:
new raw search result

createRawSearchResult

public IRawSearchResult createRawSearchResult(java.lang.String docKey,
                                              float rankValue,
                                              IProperty sortProperty,
                                              IPropertyMap resultResourceProperties)
Parameters:
docKey - document key of the result
rankValue - rank value of the search result
sortProperty - property that has been used for sorting
resultResourceProperties - properties of the result that have been retrieved by the search engine
Returns:
new raw search result

getSortProperty

public ISortPropertyName getSortProperty()
Returns:
property that has been used for sorting

setTotalNumberResultKeys

public void setTotalNumberResultKeys(int totalNumberDocKeys)
Sets the total number of document keys that can be returned.
Parameters:
totalNumberDocKeys - total number of document keys

setSearchLanguages

public void setSearchLanguages(java.util.Set languages)
Sets the languages, on which the search is restricted.
Parameters:
languages - set of strings describing languages

getPropertyInfo

public IPropertyInfo getPropertyInfo(java.lang.String attrName)
Parameters:
trexAttrName -  
Returns:
 

addPropertyInfo

public void addPropertyInfo(java.lang.String attrName,
                            IPropertyInfo propertyInfo)
Parameters:
propertyInfo -  

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
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.