Package com.microstrategy.web.objects
Interface WebSearch
- 
- All Superinterfaces:
- EnumWebPersistableState,- KeyedObject,- Persistable,- WebDisplayUnit,- WebFeatures,- WebObjectInfo,- WebPromptSite
 - All Known Subinterfaces:
- WebChangeJournalSearch
 - All Known Implementing Classes:
- WebChangeJournalSearchImpl
 
 public interface WebSearch extends WebObjectInfo, Persistable The WebSearch class represents a search object, either in metadata or created on the fly. It allows the user to modify search properties of both new searches and searches which are saved in the metadata, and submit searches to the Intelligence Server.- Since:
- MicroStrategy Web 7.3.1 or earlier
 
- 
- 
Field Summary- 
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableStateBARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description WebFolderdoSynchronousQuickSearch()Do the Synchronous Quick SearchWebFolderdoSynchronousQuickSearch(boolean searchCluster)Do the Synchronous Quick Searchjava.lang.StringgetAbbreviationPattern()Gets the abbreviation pattern that the Search object will search for.intgetAccessRights()Returns the access rights of the object being searched for, that the search will be narrowed by.intgetBlockBegin()Returns the blockBegin value for the objects that the search returns.intgetBlockCount()Returns the blockCount value for the objects that the search returns.java.lang.StringgetDescriptionPattern()Returns the description pattern that the search is currently limited to.intgetDomain()Returns the current domain for the search.intgetFirstObjectIndex()Returns the index to begin searching from.intgetMaxObjects()Returns the maximum number of objects the search is configured to return.intgetMaxWait()Returns the maximum amount of time, in milliseconds, to wait for a search to finish in synchronous mode.java.lang.StringgetNamePattern()Returns the pattern to search for in the name of the objects in metadata.intgetPollingFrequency()Returns the current polling frequency, in milliseconds.EnumDSSXMLQuickSearchCertifiedStatusgetQuickSearchCertifiedStatus()Get the certified status criteria for the quick searchjava.util.List<java.lang.Integer>getQuickSearchDocumentTypes()Get a list of document types that the user wants to search for.EnumDSSXMLQuickSearchEnabledStatusgetQuickSearchEnabledStatus()Get the user enabled status for quick search.EnumDSSXMLQuickSearchModegetQuickSearchMode()Get the search mode for quick search.EnumDSSXMLQuickSearchVisibilitygetQuickSearchVisibility()Get the include hidden mode to be used for the quick searchWebFoldergetResults()Attempts to get the results of a search from the Intelligence Server.intgetScope()Returns the current scope for the search.java.util.List<WebFolder>getSearchExcludeRoots()Returns the excluded folders for the searchjava.lang.StringgetSearchFields()Return current setting of Search FieldsintgetSearchFlags()Returns the currently set search flags.java.lang.StringgetSearchID()Returns the search ID of the last search submitted by this object, or the last time setSearchID was called.java.lang.StringgetSearchOwner()Returns the value of the search owner restriction on the search, if it is currently set.java.lang.StringgetSearchRoot()Returns the root folder ID that the search is limited to, if applicable.intgetSearchType()Return current setting of Search TypeintgetStateClear()Returns the object states that the search is prohibited from returning.intgetStateSet()Returns the object states that the search will be limited to.intgetStatus()Returns the status of the last getResults call which was made.java.lang.StringgetTargetUserGroupId()Get the search target group id.booleanisAsync()Returns whether getResults will be asynchronous.booleanisGettingTreeInfo()Gets the setting about whether the search result would include the browsing tree structure or not.booleanisQuickSearch()Gets the setting about whether the search should be handled by the new quick search engine.booleanisSynchronousQuickSearch()Gets the setting about whether the search should be handled by the Synchronous quick search engine.voidnotUsedBy(int type)The resulting objects of the search is NOT used by objects of the specified type (EnumDSSXMLObjectTypes) or subtype (EnumDSSXMLObjectSubTypes).voidnotUses(int type)The resulting objects of the search does NOT use the specified type (EnumDSSXMLObjectTypes) or subtype (EnumDSSXMLObjectSubTypes).voidpurge()Purges the search whose ID is set on this WebSearch object from the Intelligence Server's memory.voidreset()Resets all member variables on this object, which causes a reset of the search criteria.voidsetAbbreviationPattern(java.lang.String abbreviationPattern)Sets the abbreviation pattern of objects that a search will return.voidsetAccessRights(int accessRights)This will set the access rights that the search results will be limited by.voidsetAsync(boolean async)Sets whether getResults will be asynchronous.voidsetBlockBegin(int blockBegin)Sets the blockBegin value for the objects that the search returns.voidsetBlockCount(int blockCount)Sets the blockCount value for the objects that the search returns.voidsetCreatedModifiedByDate(java.lang.String beginTime, java.lang.String endTime)Sets the created/modified by date range of the search criteria.voidsetCreatedModifiedByDate(java.util.Date beginTime, java.util.Date endTime)Sets the created/modified by date range of the search criteria.voidsetCreatedModifiedByInterval(int timeInterval, int intervalUnit)Sets the interval for the created/modified by time for the search.voidsetDescriptionPattern(java.lang.String descriptionPattern)Sets the description pattern that the search will be limited to.voidsetDomain(int domain)Sets the domain that the search will be limited to.voidsetFirstObjectIndex(int firstObjectIndex)Sets the index to begin searching from.voidsetGettingTreeInfo(boolean gettingTreeInfo)Sets the setting about whether the search result would include the browsing tree structure or not.voidsetMaxObjects(int maxObjects)Sets the maximum number of objects that the search will return.voidsetMaxWait(int millis)Sets the maximum amount of time, in milliseconds, to wait for a search to finish in synchronous mode.voidsetNamePattern(java.lang.String namePattern)Sets the pattern to search for in the name of the objects in metadata.voidsetPollingFrequency(int millis)Sets the current polling frequency, in milliseconds.voidsetQuickSearch(boolean quickSearch)Sets the setting about whether the search should be handled by the new quick search engine.voidsetQuickSearchCertifiedStatus(EnumDSSXMLQuickSearchCertifiedStatus quickSearchCertifiedStatus)Set the certified status criteria to be used for the quick searchvoidsetQuickSearchDocumentTypes(java.util.List<java.lang.Integer> types)Set a list of document types that the user wants to search for.voidsetQuickSearchEnabledStatus(EnumDSSXMLQuickSearchEnabledStatus userEnabledStatus)Set the user enabled status for quick search.voidsetQuickSearchMode(EnumDSSXMLQuickSearchMode quickSearchMode)Set the search mode for quick search.voidsetQuickSearchVisibility(EnumDSSXMLQuickSearchVisibility quickSearchVisibility)Set the include hidden mode to be used for the quick searchvoidsetScope(int scope)Sets the scope that the search will be limited to.voidsetSearchFields(java.lang.String searchFields)Sets the setting for the new quick search engine.voidsetSearchFlags(int flags)Sets the search flags for the search.voidsetSearchID(java.lang.String searchID)Sets the search ID, which will be used when getResults is called.voidsetSearchOwner(java.lang.String searchOwner)Sets the value of the owner restriction on the search.voidsetSearchRoot(java.lang.String searchRoot)Sets the root folder that the search will be limited to.voidsetSearchType(int searchType)Sets the setting for the new quick search engine.voidsetStateClear(int stateClear)Sets the object states that the search is prohibited from returning.voidsetStateSet(int stateSet)Sets the object states that should be returned in the search.voidsetTargetUserGroupId(java.lang.String targetUserGroupId)Set the search target group id.voidsubmit()Submits the current state of this search object to the Intelligence Server.voidsubmit(java.lang.String searchXML)Submits the given search XML to the Intelligence Server.SimpleListtypes()Returns aSimpleListfrom which types can be added or removed.SimpleListusedBy()Returns aSimpleListwhich can be used to add or remove objects which constrain the search to only return objects which are used by the given object(s).voidusedBy(int type)The resulting objects of the search is used by objects of the specified type (EnumDSSXMLObjectTypes) or subtype (EnumDSSXMLObjectSubTypes).SimpleListuses()Returns aSimpleListwhich can be used to add or remove objects which constrain the search to only return objects which use the given object(s).voiduses(int type)The resulting objects of the search uses the specified type (EnumDSSXMLObjectTypes) or subtype (EnumDSSXMLObjectSubTypes).- 
Methods inherited from interface com.microstrategy.utils.KeyedObject_getObKey
 - 
Methods inherited from interface com.microstrategy.utils.serialization.PersistablerestoreState, restoreState, saveState, saveState, saveState, saveState
 - 
Methods inherited from interface com.microstrategy.web.objects.WebDisplayUnitaddDetails, applyVisitor, canHighlight, getChildUnits, getDisplayName, getDisplayUnitType, hasDetails, highlightUnit, highlightUnit, isHighlighted, isObjectInfo, isSelected, setDisplayName, setSelected
 - 
Methods inherited from interface com.microstrategy.web.objects.WebFeaturesisFeatureAvailable, isFeatureAvailable
 - 
Methods inherited from interface com.microstrategy.web.objects.WebObjectInfobuildShortObjectAttributes, buildShortXML, getAbbreviation, getAccessGranted, getAncestors, getCardStatus, getCertifiedInfo, getComments, getContainerDid, getContainerType, getCreationTime, getCreationTimeStamp, getDataSources, getDescription, getExtendedType, getFactory, getFlags, getIconPath, getID, getModificationTime, getModificationTimeStamp, getName, getNonSchedulable, getOtherNameTransCount, getOwner, getParent, getPreSaveAsFlags, getProjectId, getProjectName, getPropertyFlags, getPropertySetFilter, getPropertySets, getRecommendationInfo, getSecurity, getState, getSubType, getType, getVersionID, getViewMediaSettings, getVisualizationViewMode, getXML, getXML, hasOwner, isAncestorNamedFolder, isDirty, isEmbedded, isHidden, isNew, isPopulated, populate, populate, setAbbreviation, setComments, setDataSources, setDescription, setExtendedType, setFlags, setHidden, setIconPath, setName, setNonSchedulable, setPreSaveAsFlags, setPropertyFlags
 - 
Methods inherited from interface com.microstrategy.web.objects.WebPromptSitegetPromptInstances
 
- 
 
- 
- 
- 
Method Detail- 
getAbbreviationPatternjava.lang.String getAbbreviationPattern() Gets the abbreviation pattern that the Search object will search for. If this is an empty string, then the search will not be restricted on the objects' abbreviation pattern.- Returns:
- The abbreviation pattern to search for.
- See Also:
- setAbbreviationPattern(java.lang.String)
 
 - 
setAbbreviationPatternvoid setAbbreviationPattern(java.lang.String abbreviationPattern) Sets the abbreviation pattern of objects that a search will return.- Parameters:
- abbreviationPattern- Abbreviation pattern to search for. An empty string will ensure that no filtering of the search results is done on the abbreviation pattern.
- See Also:
- getAbbreviationPattern()
 
 - 
getAccessRightsint getAccessRights() Returns the access rights of the object being searched for, that the search will be narrowed by. This value corresponds to those inEnumDSSXMLAccessRightFlags.- Returns:
- An int corresponding to the access rights that the search will be filtered on.
- See Also:
- setAccessRights(int)
 
 - 
setAccessRightsvoid setAccessRights(int accessRights) This will set the access rights that the search results will be limited by.- Parameters:
- accessRights- The value to search for. This is the bitwise OR of values from- EnumDSSXMLAccessRightFlags.
- See Also:
- getAccessRights()
 
 - 
getBlockBeginint getBlockBegin() Returns the blockBegin value for the objects that the search returns. This is used for incremental fetching of the search results, and tells which item in the search should be the first one of the subset of search results that is to be returned.The default value of blockBegin is 1, meaning return items starting with the first object found. - Returns:
- The current setting for the first element to return from the search.
- See Also:
- setBlockBegin(int)
 
 - 
setBlockBeginvoid setBlockBegin(int blockBegin) Sets the blockBegin value for the objects that the search returns. This is used for incremental fetching of the search results, and tells which item in the search should be the first one of the subset of search results that is to be returned.- Parameters:
- blockBegin- The first element in the result list that should be returned from the search.
- See Also:
- getBlockBegin()
 
 - 
getBlockCountint getBlockCount() Returns the blockCount value for the objects that the search returns. This is used for incremental fetching of the search results, and tells how many items should be returned in the subset of search results that is to be returned.The default value of blockCount is -1, meaning return all items. - Returns:
- The current setting for the number of elements, starting from the blockBegin element, to return from the search. This only affects the window of data that is returned by the search - it does not limit the actual number of results from the search.
- See Also:
- setBlockCount(int)
 
 - 
setBlockCountvoid setBlockCount(int blockCount) Sets the blockCount value for the objects that the search returns. This is used for incremental fetching of the search results, and tells how many items should be returned in the subset of search results that is to be returned.- Parameters:
- blockCount- The new setting to use for the number of elements, starting from the blockBegin element, to return from the search. This only affects the window of data that is returned by the search - it does not limit the actual number of results from the search.
- See Also:
- getBlockCount()
 
 - 
getDescriptionPatternjava.lang.String getDescriptionPattern() Returns the description pattern that the search is currently limited to. An empty string denotes that the search will not be limited by the description of the objects.- Returns:
- The current description pattern to search for.
- See Also:
- setDescriptionPattern(java.lang.String)
 
 - 
setDescriptionPatternvoid setDescriptionPattern(java.lang.String descriptionPattern) Sets the description pattern that the search will be limited to. An empty string denotes that the search will not be limited by the description of the objects.- Parameters:
- descriptionPattern- The description pattern to use in the search.
- See Also:
- getDescriptionPattern()
 
 - 
getDomainint getDomain() Returns the current domain for the search. The domain tells the scope in which the search will be performed.The default domain is EnumDSSXMLSearchDomain.DssXmlSearchDomainProject.- Returns:
- An int corresponding to a value in EnumDSSXMLSearchDomain.
- See Also:
- setDomain(int)
 
 - 
setDomainvoid setDomain(int domain) Sets the domain that the search will be limited to. By default, the domain isEnumDSSXMLSearchDomain.DssXmlSearchDomainProject.- Parameters:
- domain- The new value for the domain, coming from the- EnumDSSXMLSearchDomainenumeration.
- See Also:
- getDomain()
 
 - 
getSearchFlagsint getSearchFlags() Returns the currently set search flags.The default value of the search flags is 0. - Returns:
- A value corresponding to a bitwise OR from the enumeration class EnumDSSXMLSearchFlags.
- See Also:
- setSearchFlags(int)
 
 - 
setSearchFlagsvoid setSearchFlags(int flags) Sets the search flags for the search.- Parameters:
- flags- A value corresponding to a bitwise OR from the enumeration class- EnumDSSXMLSearchFlags.
- See Also:
- getSearchFlags()
 
 - 
getMaxObjectsint getMaxObjects() Returns the maximum number of objects the search is configured to return. By default, this value is -1, meaning return all objects, but it can be changed by calling setMaxObjects.- Returns:
- The maximum number of objects a search will return.
- See Also:
- setMaxObjects(int)
 
 - 
setMaxObjectsvoid setMaxObjects(int maxObjects) Sets the maximum number of objects that the search will return. Default is -1, meaning return all objects.- Parameters:
- maxObjects- The maximum number of objects to return from the search.
- See Also:
- getMaxObjects()
 
 - 
getFirstObjectIndexint getFirstObjectIndex() Returns the index to begin searching from. By default, this value is 1, meaning search from beginning, but it can be changed by calling setFirstObjectIndex.- Returns:
- The index to begin searching from.
- See Also:
- setFirstObjectIndex(int)
 
 - 
setFirstObjectIndexvoid setFirstObjectIndex(int firstObjectIndex) Sets the index to begin searching from. Default is 1, meaning search from beginning.- Parameters:
- firstObjectIndex- The index to begin searching from.
- See Also:
- getFirstObjectIndex()
 
 - 
getNamePatternjava.lang.String getNamePattern() Returns the pattern to search for in the name of the objects in metadata.- Returns:
- The name pattern that will be searched for.
- See Also:
- setNamePattern(java.lang.String)
 
 - 
setNamePatternvoid setNamePattern(java.lang.String namePattern) Sets the pattern to search for in the name of the objects in metadata.- Parameters:
- namePattern- The name pattern that will be searched for.
- See Also:
- getNamePattern()
 
 - 
getSearchOwnerjava.lang.String getSearchOwner() Returns the value of the search owner restriction on the search, if it is currently set.- Returns:
- The user whose objects the search is limited to.
- See Also:
- setSearchOwner(java.lang.String)
 
 - 
setSearchOwnervoid setSearchOwner(java.lang.String searchOwner) Sets the value of the owner restriction on the search.- Parameters:
- searchOwner- The user whose objects the search is limited to.
- See Also:
- getSearchOwner()
 
 - 
getSearchRootjava.lang.String getSearchRoot() Returns the root folder ID that the search is limited to, if applicable.- Returns:
- The folder ID that is to be used as the root of the search.
- See Also:
- setSearchRoot(java.lang.String)
 
 - 
setSearchRootvoid setSearchRoot(java.lang.String searchRoot) Sets the root folder that the search will be limited to. Requires an object ID corresponding to a folder.- Parameters:
- searchRoot- The folder ID of a folder that will be used as the root of the search.
- See Also:
- getSearchRoot()
 
 - 
getStateClearint getStateClear() Returns the object states that the search is prohibited from returning. Value comes from the bitwise OR of values fromEnumDSSXMLObjectState. The default value is 0.- Returns:
- The current value for the clear states.
- See Also:
- setStateClear(int)
 
 - 
setStateClearvoid setStateClear(int stateClear) Sets the object states that the search is prohibited from returning.- Parameters:
- stateClear- An int corresponding to the bitwise OR of values from- EnumDSSXMLObjectState. These states will not be in the search result set.
- See Also:
- getStateClear()
 
 - 
getStateSetint getStateSet() Returns the object states that the search will be limited to. Value comes from the bitwise OR of values fromEnumDSSXMLObjectState. The default value is 0.- Returns:
- The current value for the set states.
- See Also:
- setStateSet(int)
 
 - 
setStateSetvoid setStateSet(int stateSet) Sets the object states that should be returned in the search.- Parameters:
- stateSet- An int corresponding to the bitwise OR of values from- EnumDSSXMLObjectState. Only objects with these states will be in the search result.
- See Also:
- getStateSet()
 
 - 
setCreatedModifiedByDatevoid setCreatedModifiedByDate(java.lang.String beginTime, java.lang.String endTime) throws java.lang.IllegalArgumentExceptionSets the created/modified by date range of the search criteria.- Parameters:
- beginTime- A string representing the beginning date of the range.
- endTime- A string representing the ending date of the range.
- Throws:
- java.lang.IllegalArgumentException- Thrown if one of the arguments is null.
 
 - 
setCreatedModifiedByDatevoid setCreatedModifiedByDate(java.util.Date beginTime, java.util.Date endTime) throws java.lang.IllegalArgumentExceptionSets the created/modified by date range of the search criteria.- Parameters:
- beginTime- A java.util.Date set to the beginning date of the range.
- endTime- A java.util.Date set to the ending date of the range.
- Throws:
- java.lang.IllegalArgumentException- Thrown if one of the arguments is null.
 
 - 
setCreatedModifiedByIntervalvoid setCreatedModifiedByInterval(int timeInterval, int intervalUnit)Sets the interval for the created/modified by time for the search. This interval is measured from the time of the search, and the intervalUnit determines what the time unit on timeInterval is.- Parameters:
- timeInterval- The number of intervalUnits from the time of the search to filter the search results with.
- intervalUnit- The unit to use for the search. Comes from- EnumDSSXMLSearchUnit.
 
 - 
typesSimpleList types() Returns aSimpleListfrom which types can be added or removed. Note that theSimpleListreturned can only have java.lang.Integer objects added to it.- Returns:
- A SimpleListreflecting the types of objects which will be searched for.
 
 - 
usedBySimpleList usedBy() Returns aSimpleListwhich can be used to add or remove objects which constrain the search to only return objects which are used by the given object(s). Note that theSimpleListreturned can only haveWebObjectInfoobjects added to it.- Returns:
- A SimpleListreflecting the used-by objects which will constrain the search.
 
 - 
usedByvoid usedBy(int type) The resulting objects of the search is used by objects of the specified type (EnumDSSXMLObjectTypes) or subtype (EnumDSSXMLObjectSubTypes).- Parameters:
- type- specify type (- EnumDSSXMLObjectTypes) or subtype (- EnumDSSXMLObjectSubTypes).
- Since:
- MicroStrategy Web 9.0.0
 
 - 
notUsedByvoid notUsedBy(int type) The resulting objects of the search is NOT used by objects of the specified type (EnumDSSXMLObjectTypes) or subtype (EnumDSSXMLObjectSubTypes).- Parameters:
- type- specify type (- EnumDSSXMLObjectTypes) or subtype (- EnumDSSXMLObjectSubTypes).
- Since:
- MicroStrategy Web 9.0.0
 
 - 
usesSimpleList uses() Returns aSimpleListwhich can be used to add or remove objects which constrain the search to only return objects which use the given object(s). Note that theSimpleListreturned can only haveWebObjectInfoobjects added to it.- Returns:
- A SimpleListreflecting the uses objects which will constrain the search.
 
 - 
usesvoid uses(int type) The resulting objects of the search uses the specified type (EnumDSSXMLObjectTypes) or subtype (EnumDSSXMLObjectSubTypes).- Parameters:
- type- specify type (- EnumDSSXMLObjectTypes) or subtype (- EnumDSSXMLObjectSubTypes).
- Since:
- MicroStrategy Web 9.0.0
 
 - 
notUsesvoid notUses(int type) The resulting objects of the search does NOT use the specified type (EnumDSSXMLObjectTypes) or subtype (EnumDSSXMLObjectSubTypes).- Parameters:
- type- specify type (- EnumDSSXMLObjectTypes) or subtype (- EnumDSSXMLObjectSubTypes).
- Since:
- MicroStrategy Web 9.0.0
 
 - 
doSynchronousQuickSearchWebFolder doSynchronousQuickSearch() throws WebObjectsException Do the Synchronous Quick Search- Returns:
- A folder object representing the folder returned from the search, or null if the search is not yet ready.
- Throws:
- WebObjectsException- Thrown if the search could not be submitted to the Intelligence Server.
 
 - 
doSynchronousQuickSearchWebFolder doSynchronousQuickSearch(boolean searchCluster) throws WebObjectsException Do the Synchronous Quick Search- Parameters:
- searchCluster- , if passing searchCluster as true, the entire cluster will be searched
- Returns:
- A folder object representing the folder returned from the search, or null if the search is not yet ready.
- Throws:
- WebObjectsException- Thrown if the search could not be submitted to the Intelligence Server.
 
 - 
submitvoid submit() throws WebObjectsExceptionSubmits the current state of this search object to the Intelligence Server. This will cause the search ID to be set to the search ID which results from this submission.- Throws:
- WebObjectsException- Thrown if the search could not be submitted to the Intelligence Server.
 
 - 
submitvoid submit(java.lang.String searchXML) throws WebObjectsExceptionSubmits the given search XML to the Intelligence Server. This will cause the search ID to be set to the search ID which results from this submission.- Parameters:
- searchXML- The search XML to be sent to the Intelligence Server. This overrides all properties on this WebSearch object.
- Throws:
- WebObjectsException- Thrown if the search could not be submitted to the Intelligence Server.
 
 - 
getStatusint getStatus() Returns the status of the last getResults call which was made.- Returns:
- The status of the search, a value from EnumDSSXMLObjectSearchStatus.
 
 - 
getSearchIDjava.lang.String getSearchID() Returns the search ID of the last search submitted by this object, or the last time setSearchID was called.- Returns:
- The currently active search ID.
- See Also:
- setSearchID(java.lang.String)
 
 - 
setSearchIDvoid setSearchID(java.lang.String searchID) Sets the search ID, which will be used when getResults is called.- Parameters:
- searchID- The search ID of a search which is executing or has results waiting on the Intelligence Server.
- See Also:
- getSearchID()
 
 - 
isAsyncboolean isAsync() Returns whether getResults will be asynchronous. If this is true, then getResults will poll the Intelligence Server once, and return, storing the status in the status property variable (obtainable via getStatus). If this is false, then the API will poll the Intelligence Server, using the polling frequency set by setPollingFrequency, and return only when either the result of the search is available or the max wait time (which can be set by setMaxWait) has been reached, at which point it will return without a result.- Returns:
- True if this object is asynchronous, false otherwise.
- See Also:
- setAsync(boolean)
 
 - 
setAsyncvoid setAsync(boolean async) Sets whether getResults will be asynchronous. If this is true, then getResults will poll the Intelligence Server once, and return, storing the status in the status property variable (obtainable via getStatus). If this is false, then the API will poll the Intelligence Server, using the polling frequency set by setPollingFrequency, and return only when either the result of the search is available or the max wait time (which can be set by setMaxWait) has been reached, at which point it will return without a result.- Parameters:
- async- The desired setting of [a]synchronous operation.
- See Also:
- isAsync()
 
 - 
getMaxWaitint getMaxWait() Returns the maximum amount of time, in milliseconds, to wait for a search to finish in synchronous mode.- Returns:
- The maximum wait time, in milliseconds. If this value is -1, then getResults will not return unless the search finishes or an error is detected.
- See Also:
- setMaxWait(int)
 
 - 
setMaxWaitvoid setMaxWait(int millis) Sets the maximum amount of time, in milliseconds, to wait for a search to finish in synchronous mode.- Parameters:
- millis- The maximum wait time, in milliseconds. If this value is -1, then getResults will not return unless the search finishes or an error is detected.
- See Also:
- getMaxWait()
 
 - 
getPollingFrequencyint getPollingFrequency() Returns the current polling frequency, in milliseconds. This determines, in synchronous mode, how often the API will poll the Intelligence Server upon calling getResults.- Returns:
- The current polling frequency, in milliseconds.
- See Also:
- setPollingFrequency(int)
 
 - 
setPollingFrequencyvoid setPollingFrequency(int millis) Sets the current polling frequency, in milliseconds. This determines, in synchronous mode, how often the API will poll the Intelligence Server upon calling getResults.- Parameters:
- millis- The desired polling frequency, in milliseconds.
- See Also:
- getPollingFrequency()
 
 - 
getResultsWebFolder getResults() throws WebObjectsException Attempts to get the results of a search from the Intelligence Server. The search ID used will be the one set on this WebSearch object. If the asynchronous setting is true, then this method will return null and set the status variable if the report is not ready. If asynchronous is false, then this method will poll the Intelligence Server, subject to the parameters maxWait and pollingFrequency.- Returns:
- A folder object representing the folder returned from the search, or null if the search is not yet ready.
- Throws:
- WebObjectsException- Signals an error in the execution or retrieval of results of the search.
 
 - 
purgevoid purge() throws WebObjectsExceptionPurges the search whose ID is set on this WebSearch object from the Intelligence Server's memory. This will free up resources dedicated to the given search.- Throws:
- WebObjectsException- Signals an error in purging the search.
 
 - 
resetvoid reset() Resets all member variables on this object, which causes a reset of the search criteria.
 - 
getScopeint getScope() Returns the current scope for the search.The default scope is EnumDSSXMLSearchScope.DssXmlSearchScopeRootedObjects.- Returns:
- An int corresponding to a value in EnumDSSXMLSearchScope.
- Since:
- MicroStrategy Web 8.1.2
- See Also:
- setScope(int)
 
 - 
setScopevoid setScope(int scope) Sets the scope that the search will be limited to. By default, scope isEnumDSSXMLSearchScope.DssXmlSearchScopeRootedObjects.- Parameters:
- scope- domain The new value for the scope, coming from the- EnumDSSXMLSearchScopeenumeration.
- Since:
- MicroStrategy Web 8.1.2
- See Also:
- getScope()
 
 - 
getSearchExcludeRootsjava.util.List<WebFolder> getSearchExcludeRoots() Returns the excluded folders for the search- Since:
- MicroStrategy Web 9.0.1
 
 - 
isGettingTreeInfoboolean isGettingTreeInfo() Gets the setting about whether the search result would include the browsing tree structure or not.- Returns:
- setting about whether the search result would include the browsing tree structure or not.
 
 - 
setGettingTreeInfovoid setGettingTreeInfo(boolean gettingTreeInfo) Sets the setting about whether the search result would include the browsing tree structure or not. When this sets it to true, user would be able to retrieve the search result in a tree structure by calling getChildrenInTree() on the return value from getResults() from this interface.- Parameters:
- gettingTreeInfo-
 
 - 
isQuickSearchboolean isQuickSearch() Gets the setting about whether the search should be handled by the new quick search engine.- Returns:
- setting about whether the search should be handled by the new quick search engine.
 
 - 
setQuickSearchvoid setQuickSearch(boolean quickSearch) Sets the setting about whether the search should be handled by the new quick search engine. When this sets it to true, the search will be handled by the new quick search engine.- Parameters:
- quickSearch-
 
 - 
setSearchTypevoid setSearchType(int searchType) Sets the setting for the new quick search engine. Search Types are defined inEnumDSSXMLSearchTypesWhen this is not set, search reqeust will be redirected to old searc engine.- Parameters:
- searchType-
 
 - 
getSearchTypeint getSearchType() Return current setting of Search Type- Returns:
- int A value in EnumDSSXMLSearchTypes.
 
 - 
setSearchFieldsvoid setSearchFields(java.lang.String searchFields) Sets the setting for the new quick search engine. Search Fields are combination of "name", "description" and "comment" separated by ",". When this is not set, search request will ask engine to use its default value - - Begin With - "name" - Exactly - "name" - Contains Any Word - "name,description,comment"- Parameters:
- searchFields-
 
 - 
getSearchFieldsjava.lang.String getSearchFields() Return current setting of Search Fields- Returns:
- String
 
 - 
isSynchronousQuickSearchboolean isSynchronousQuickSearch() Gets the setting about whether the search should be handled by the Synchronous quick search engine.- Returns:
- setting about whether the search should be handled by the Synchronous quick search engine.
 
 - 
setQuickSearchVisibilityvoid setQuickSearchVisibility(EnumDSSXMLQuickSearchVisibility quickSearchVisibility) Set the include hidden mode to be used for the quick search- Parameters:
- quickSearchVisibility-
 
 - 
getQuickSearchVisibilityEnumDSSXMLQuickSearchVisibility getQuickSearchVisibility() Get the include hidden mode to be used for the quick search- Returns:
 
 - 
setQuickSearchCertifiedStatusvoid setQuickSearchCertifiedStatus(EnumDSSXMLQuickSearchCertifiedStatus quickSearchCertifiedStatus) Set the certified status criteria to be used for the quick search- Parameters:
- quickSearchCertifiedStatus-
 
 - 
getQuickSearchCertifiedStatusEnumDSSXMLQuickSearchCertifiedStatus getQuickSearchCertifiedStatus() Get the certified status criteria for the quick search- Returns:
 
 - 
getQuickSearchDocumentTypesjava.util.List<java.lang.Integer> getQuickSearchDocumentTypes() Get a list of document types that the user wants to search for. Document type please seeEnumDSSXMLViewMedia- Returns:
 
 - 
setQuickSearchDocumentTypesvoid setQuickSearchDocumentTypes(java.util.List<java.lang.Integer> types) Set a list of document types that the user wants to search for. Passing a empty list, all document types will be returned.- Parameters:
- types-
 
 - 
getQuickSearchEnabledStatusEnumDSSXMLQuickSearchEnabledStatus getQuickSearchEnabledStatus() Get the user enabled status for quick search. Right now, only ENABLED_ONLY and ALL are supported.- Returns:
 
 - 
setQuickSearchEnabledStatusvoid setQuickSearchEnabledStatus(EnumDSSXMLQuickSearchEnabledStatus userEnabledStatus) Set the user enabled status for quick search. By setting this field, the user can specify if they want to retrieve all the users matching either full name, username or email- Parameters:
- userEnabledStatus-
 
 - 
getQuickSearchModeEnumDSSXMLQuickSearchMode getQuickSearchMode() Get the search mode for quick search. Only DEFAULT(0) and USER_MENTION(1) are supported. SeeEnumDSSXMLQuickSearchMode.- Returns:
 
 - 
setQuickSearchModevoid setQuickSearchMode(EnumDSSXMLQuickSearchMode quickSearchMode) Set the search mode for quick search. Only DEFAULT(0) and USER_MENTION(1) are supported. DEFAULT will be used if this field was set with search mode other than DEFAULT(0) and USER_MENTION(1). SeeEnumDSSXMLQuickSearchMode.- Parameters:
- quickSearchMode-
 
 - 
getTargetUserGroupIdjava.lang.String getTargetUserGroupId() Get the search target group id.- Returns:
- The search target group id.
 
 - 
setTargetUserGroupIdvoid setTargetUserGroupId(java.lang.String targetUserGroupId) Set the search target group id. By setting this field, it can specify the search result users if they are under this target group.- Parameters:
- targetUserGroupId-
 
 
- 
 
-