public interface ISearchResult
getIndexId()
getPosition()
setIndexId(String)
setPosition(Integer)
Modifier and Type | Method and Description |
---|---|
void |
addLocalProperty(IProperty property)
Adds a new local property.
|
String |
getContentSnippet()
Returns the content snippet.
|
String |
getIndexId()
The identifier of the index from where the results stems might
be fetched by this method.
|
IPropertyMap |
getLocalProperties()
Return the local properties, including the content snippet.
|
Integer |
getPosition()
Only used internally when original sorting of the search results from Trex is used.
|
float |
getRankValue()
Specifies how good the result document fits to the search query.
|
IResource |
getResource() |
String |
getResultLanguage()
Document language if it was returned with the search result.
|
IResource |
getWrappedResource() |
void |
setContentSnippet(String contentSnippet)
Sets the content snippet.
|
void |
setIndexId(String indexId)
The identifier of the index from where the results stems might
be set here.
|
void |
setLocalProperties(IPropertyMap propertyMap)
Sets the local properties.
|
void |
setPosition(Integer i)
Only used internally when original sorting of the search results from Trex is used.
|
void |
setResultLanguage(String language)
Sets the document language.
|
void |
setUseWrapper(boolean b,
IMetaModel metaModel,
Set fetchedProperties)
Defines if a special wrapped resource is returned for getWrappedResource.
|
IResource getResource()
IResource getWrappedResource()
float getRankValue()
String getResultLanguage()
null
if not available.void setResultLanguage(String language)
language
- document languagevoid setContentSnippet(String contentSnippet) throws ResourceException
contentSnippet
- contentSnippetResourceException
- in case of a failure.String getContentSnippet() throws ResourceException
null
if not available.ResourceException
- in case of a failure.void setLocalProperties(IPropertyMap propertyMap)
propertyMap
- which contains new local properties.IPropertyMap getLocalProperties()
void addLocalProperty(IProperty property)
property
- the new propertyvoid setIndexId(String indexId)
indexId
- indexIdString getIndexId()
void setUseWrapper(boolean b, IMetaModel metaModel, Set fetchedProperties)
b
- bmetaModel
- metaModelfetchedProperties
- property names which are requested from the search servervoid setPosition(Integer i)
i
- iInteger getPosition()
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice