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

Interface ISearchSession


public interface ISearchSession

The session object contains the search results in a raw format. To get search results getSearchResults must be called. The session concept optimizes performance because only for the displayed results resources must be retrieved from the resource factory.


Method Summary
 int getNumberResultKeys()
          Gets the number of document keys that have been found so far.
 IQueryEntryList getQueryEntryList()
          Returns the query list of the session.
 Map getRenderParameters()
          Returns the rendring parameters defined in search for the session.
 IResourceContext getResourceContext()
          Context of the user that performed the search.
 ISearchResultList getSearchResults(int from, int to)
          List of search results from position a to b in the result list.
 ISearchResultList getSearchResults(int from, int to, IResourceListFilter resourceListFilter, IParameters filterParameters)
          List of search results from position a to b in the result list.
 int getTotalNumberResultKeys()
          Gets the total number of document keys that can be returned.
 void setRenderParameters(Map renderParameters)
          Sets the rendring parameters defined in search for the session.
 

Method Detail

getSearchResults

public ISearchResultList getSearchResults(int from,
                                          int to)
                                   throws WcmException
List of search results from position a to b in the result list.
If the result range once has been requested the next time the search results are returned from an internal cache.

Parameters:
from - position of first returned document in the result list
to - position of last returned document in the result list
Returns:
search result list
Throws:
WcmException

getSearchResults

public ISearchResultList getSearchResults(int from,
                                          int to,
                                          IResourceListFilter resourceListFilter,
                                          IParameters filterParameters)
                                   throws WcmException
List of search results from position a to b in the result list.
If the result range once has been requested the next time the search results are returned from an internal cache.

Parameters:
from - position of first returned document in the result list
to - position of last returned document in the result list
resourceListFilter - filters the search results before they are returned
filterParameters - parameters for the resource list filter
Returns:
search result list
Throws:
WcmException

getResourceContext

public IResourceContext getResourceContext()
Context of the user that performed the search.

Returns:
the user context for this session

getNumberResultKeys

public int getNumberResultKeys()
Gets the number of document keys that have been found so far.

Returns:
number of found document keys

getTotalNumberResultKeys

public int getTotalNumberResultKeys()
Gets the total number of document keys that can be returned. IRawSearchSession.setTotalNumberResultKeys must be used to get a value here.

Returns:
total number of document keys

getQueryEntryList

public IQueryEntryList getQueryEntryList()
Returns the query list of the session.

Returns:
the query list

getRenderParameters

public Map getRenderParameters()
Returns the rendring parameters defined in search for the session.

Returns:
the rendering parameter map

setRenderParameters

public void setRenderParameters(Map renderParameters)
Sets the rendring parameters defined in search for the session.

Returns:
the rendering parameter map


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. 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.