|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectDefaultPlatformSearchRequest
com.sap.businessobjects.platform.search.common.SearchIndexRequest
public class SearchIndexRequest
The SearchIndexRequest class provides the parameters to define a search request. The search request is passed to
the Platform Search Service. The Platform Search Service uses the request parameters to search in the indexed area and returns the
results to the client.
| Nested Class Summary | |
|---|---|
static class |
SearchIndexRequest.CategoryTypes
The CategoryTypes is an enum to define different category types. |
class |
SearchIndexRequest.Qualifiers
Internal use only. |
| Constructor Summary | |
|---|---|
SearchIndexRequest()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addQualifier(java.lang.String property,
java.lang.String value)
Internal use only. |
void |
fromXML(XmlPullParser parser)
Internal use only. |
void |
fromXMLPage(XmlPullParser parser)
Internal use only. |
void |
fromXMLQuery(XmlPullParser parser,
int event)
Internal use only. |
java.lang.String[] |
getCategories()
Internal use only. |
SearchIndexRequest.CategoryTypes[] |
getCategoryTypes()
Internal use only. |
int |
getMaxCategoriesShown()
Internal use only. |
int |
getMaxDocuments()
Internal use only. |
int |
getMaxHitLinks()
Internal use only. |
int |
getMaxInfoBlocks()
|
int |
getMaxInstances()
Internal use only. |
int |
getMaxSubCategoriesShown()
Internal use only. |
int |
getPage()
Internal use only. |
int |
getPageSize()
Internal use only. |
java.lang.String |
getQuery()
Internal use only. |
java.lang.String |
getSearchAgent()
Internal use only. |
java.lang.String[] |
getSearchAgents()
Internal use only. |
boolean |
isCategoryInfoEnabled()
Internal use only. |
boolean |
isGroupFacetsByType()
Internal use only. |
boolean |
isGroupInstancesUnderParent()
Internal use only. |
boolean |
isHighLightingInfoEnabled()
This method is used to know if the highlighting info is enabled. |
boolean |
isHitLinksEnabled()
Internal use only. |
boolean |
isHitPromptsEnabled()
This method is used to know if the prompt is enabled or not. |
boolean |
isSuggestedQueriesEnabled()
Internal use only. |
SearchIndexRequest.Qualifiers |
qualifiers()
Internal use only. |
void |
setCategories(java.lang.String[] categories)
This method defines a search request to retrieve a particular document from the repository. |
void |
setCategoryInfoEnabled(boolean categoryInfo)
This method determines whether to retrieve categories in the search result. |
void |
setCategoryTypes(SearchIndexRequest.CategoryTypes[] types)
This method is used to specify the Category Types that should be retrieved, i.e. |
void |
setGroupFacetsByType(boolean groupFacetsByType)
This method is used to retrieve all the category values in a single bag or grouped into different bags. |
void |
setGroupInstancesUnderParent(boolean groupInstancesUnderParent)
Internal use only. |
void |
setHighLightingInfoEnabled(boolean highLightingInfo)
This method determines whether to highlight the search keyword in the title, description and keyword that are displayed as part of search results.By default, it is set to true. |
void |
setHitLinksEnabled(boolean hitLinks)
This method determines whether to display the hit links in the search results. |
void |
setHitPromptsEnabled(boolean hitPrompts)
This method determines whether to retrieve prompts in the search results. |
void |
setMaxCategoriesShown(int categories)
This method is used to set the maximum number of categories displayed in a search result. |
void |
setMaxDocuments(int maxDocuments)
This method is used to control the number of hits to be returned as part of the search request. |
void |
setMaxHitLinks(int maxHitLinks)
This method is used to control the number of hit links returned to the user. |
void |
setMaxInfoBlocks(int maxInfoBlocks)
|
void |
setMaxInstances(int maxInstances)
This method specifies the number of instances that must be returned in the search result. |
void |
setMaxSubCategoriesShown(int subcategories)
This method is used to set the maximum number of sub-object categories displayed in a search result. |
void |
setPage(int page)
This method is used to set the page number of a search request that you want to retrieve. |
void |
setPageSize(int pageSize)
This method is used to set the number of objects you want to display in a given page. |
void |
setQuery(java.lang.String queryString)
This method is used to set the search string. |
void |
setSearchAgents(java.lang.String[] searchAgents)
This method allows you to integrate other search engines server, such as Polestar, with the BOE server. |
void |
setSuggestedQueriesEnabled(boolean suggestedQueries)
This method determines whether to display suggested queries in the search result. |
void |
toXML(XmlSerializer serializer)
Internal use only. |
void |
toXMLQuery(XmlSerializer serializer)
Internal use only. |
void |
toXMLRange(XmlSerializer serializer)
Internal use only. |
void |
validateRequest()
Internal use only. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchIndexRequest()
| Method Detail |
|---|
public java.lang.String getSearchAgent()
Internal use only.
public void setCategories(java.lang.String[] categories)
This method defines a search request to retrieve a particular document from the repository. For example, you may want to search for documents that are located in a specific folder or documents that are created by a particular author.
categories - An array of strings to specify the parameters based on which you want to search for info objects.public java.lang.String[] getCategories()
Internal use only.
public SearchIndexRequest.CategoryTypes[] getCategoryTypes()
Internal use only.
public void setCategoryTypes(SearchIndexRequest.CategoryTypes[] types)
This method is used to specify the Category Types that should be retrieved, i.e. Metadata, Content and/or All categories.
types - An array of the CategoryTypes enumeration to specify the category types you want to search for.public boolean isGroupFacetsByType()
Internal use only.
public void setGroupFacetsByType(boolean groupFacetsByType)
This method is used to retrieve all the category values in a single bag or grouped into different bags.
groupFacetsByType - A boolean value to enable or disable the grouping.
public void addQualifier(java.lang.String property,
java.lang.String value)
Internal use only.
public SearchIndexRequest.Qualifiers qualifiers()
Internal use only.
public int getMaxInstances()
Internal use only.
public void setMaxInstances(int maxInstances)
This method specifies the number of instances that must be returned in the search result. This is useful if there are more than one instance of a document that is being searched.
maxInstances - An int value to specify the number of instances.public boolean isGroupInstancesUnderParent()
Internal use only.
public void setGroupInstancesUnderParent(boolean groupInstancesUnderParent)
Internal use only.
public int getMaxHitLinks()
Internal use only.
public void setMaxHitLinks(int maxHitLinks)
This method is used to control the number of hit links returned to the user. By default the number of hit links sent back will be 1.
maxHitLinks - Number of hit links to be returned.public int getMaxDocuments()
Internal use only.
public void setMaxDocuments(int maxDocuments)
This method is used to control the number of hits to be returned as part of the search request. The default value is 1000.
maxDocuments - The maximum number of search results to be returned.
public void fromXML(XmlPullParser parser)
throws java.lang.Exception
Internal use only.
java.lang.Exception
public void toXML(XmlSerializer serializer)
throws java.lang.Exception
Internal use only.
java.lang.Exceptionpublic boolean isHighLightingInfoEnabled()
This method is used to know if the highlighting info is enabled. Returns the boolean value.
public void setHighLightingInfoEnabled(boolean highLightingInfo)
This method determines whether to highlight the search keyword in the title, description and keyword that are displayed as part
of search results.By default, it is set to true.
highLightingInfo - A boolean value to enable or disable the highlighting of matched content in the
search results.public boolean isHitLinksEnabled()
Internal use only.
public void setHitLinksEnabled(boolean hitLinks)
This method determines whether to display the hit links in the search results. By default, it is set to true.
hitLinks - A boolean value to enable or disable the display of hit links in the search result.public boolean isHitPromptsEnabled()
This method is used to know if the prompt is enabled or not. Returns the boolean value
public void setHitPromptsEnabled(boolean hitPrompts)
This method determines whether to retrieve prompts in the search results. Prompts are supported by Crystal Reports, Web Intelligence documents and Desktop Intelligence documents. By default, prompts are displayed in the search result.
hitPrompts - A boolean value to enable or disable the display of prompts in the search result.public boolean isSuggestedQueriesEnabled()
Internal use only.
public void setSuggestedQueriesEnabled(boolean suggestedQueries)
This method determines whether to display suggested queries in the search result. The suggested queries that are generated based on the search keyword enable you to create new Web Intelligence documents. By default, suggested queries are displayed in the search result.
suggestedQueries - A boolean value to enable or disable the retrieval of suggested queries in the search
result.public boolean isCategoryInfoEnabled()
Internal use only.
public void setCategoryInfoEnabled(boolean categoryInfo)
This method determines whether to retrieve categories in the search result. By default, categories are displayed in the search result.
categoryInfo - A boolean value to enable or disable the display of categories in the search result.public java.lang.String[] getSearchAgents()
Internal use only.
public void setSearchAgents(java.lang.String[] searchAgents)
This method allows you to integrate other search engines server, such as Polestar, with the BOE server.
searchAgents - A String containing the cuid of the server that has to be integrated.public int getMaxInfoBlocks()
public void setMaxInfoBlocks(int maxInfoBlocks)
public void setQuery(java.lang.String queryString)
throws PlatformSearchException
This method is used to set the search string.
queryString - A String value to set the search string for search request.
PlatformSearchExceptionpublic java.lang.String getQuery()
Internal use only.
public void setPageSize(int pageSize)
This method is used to set the number of objects you want to display in a given page.
pageSize - A Int value to set the page- size for a search request.public int getPageSize()
Internal use only.
public void setPage(int page)
This method is used to set the page number of a search request that you want to retrieve.
page - A int value to set the page number for search request.public int getPage()
Internal use only.
public void fromXMLQuery(XmlPullParser parser,
int event)
throws java.lang.Exception
Internal use only.
java.lang.Exception
public void fromXMLPage(XmlPullParser parser)
throws java.lang.Exception
Internal use only.
java.lang.Exception
public void toXMLQuery(XmlSerializer serializer)
throws java.lang.Exception
Internal use only.
java.lang.Exception
public void toXMLRange(XmlSerializer serializer)
throws java.lang.Exception
Internal use only.
java.lang.Exceptionpublic void validateRequest()
Internal use only.
public int getMaxCategoriesShown()
Internal use only.
public void setMaxCategoriesShown(int categories)
This method is used to set the maximum number of categories displayed in a search result.
categories - An int value to set the maximum number of categories displayed in a search result.public int getMaxSubCategoriesShown()
Internal use only.
public void setMaxSubCategoriesShown(int subcategories)
This method is used to set the maximum number of sub-object categories displayed in a search result.
categories - An int value to set the maximum number of sub-object categories displayed in a search result.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||