Package com.mypurecloud.sdk.v2.model
Class KnowledgeDocumentSearchRequest
java.lang.Object
com.mypurecloud.sdk.v2.model.KnowledgeDocumentSearchRequest
- All Implemented Interfaces:
Serializable
KnowledgeDocumentSearchRequest
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumGets or Sets answerModestatic enumThe type of the query that initiates the search.static enumThe field in the documents that you want to sort the search results by.static enumThe sort order for search results. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanswerHighlightTopResults(Integer answerHighlightTopResults) The number of articles to be sent for answer-highlighting.answerMode(List<KnowledgeDocumentSearchRequest.AnswerModeEnum> answerMode) Allows extracted answers from an article (AnswerHighlight) and/or AI-generated answers (AnswerGeneration).application(KnowledgeSearchClientApplication application) The client application details from which search request was sent.confidenceThreshold(Float confidenceThreshold) The confidence threshold for the search results.conversationContext(KnowledgeConversationContext conversationContext) Conversation context information if the search is initiated in the context of a conversation.booleanfilter(DocumentQuery filter) Filter for the document search.getQuery()getTotal()inthashCode()includeDraftDocuments(Boolean includeDraftDocuments) Indicates whether the search results would also include draft documents.interval(DocumentQueryInterval interval) Retrieves the documents created/modified/published in specified date and time range.pageNumber(Integer pageNumber) Page number of the returned results.Page size of the returned results.preprocessQuery(Boolean preprocessQuery) Indicates whether the search query should be preprocessed.Query to search content in the knowledge base.The type of the query that initiates the search.voidsetAnswerHighlightTopResults(Integer answerHighlightTopResults) voidvoidsetApplication(KnowledgeSearchClientApplication application) voidsetConfidenceThreshold(Float confidenceThreshold) voidsetConversationContext(KnowledgeConversationContext conversationContext) voidsetFilter(DocumentQuery filter) voidsetIncludeDraftDocuments(Boolean includeDraftDocuments) voidsetInterval(DocumentQueryInterval interval) voidsetPageNumber(Integer pageNumber) voidsetPageSize(Integer pageSize) voidsetPreprocessQuery(Boolean preprocessQuery) voidvoidvoidvoidThe field in the documents that you want to sort the search results by.The sort order for search results.toString()
-
Constructor Details
-
KnowledgeDocumentSearchRequest
public KnowledgeDocumentSearchRequest() -
KnowledgeDocumentSearchRequest
-
-
Method Details
-
query
Query to search content in the knowledge base. Maximum of 30 records per query can be fetched. -
getQuery
-
setQuery
-
pageSize
Page size of the returned results. -
getPageSize
-
setPageSize
-
pageNumber
Page number of the returned results. -
getPageNumber
-
setPageNumber
-
getSearchId
-
getTotal
-
getPageCount
-
queryType
public KnowledgeDocumentSearchRequest queryType(KnowledgeDocumentSearchRequest.QueryTypeEnum queryType) The type of the query that initiates the search. -
getQueryType
-
setQueryType
-
includeDraftDocuments
Indicates whether the search results would also include draft documents. -
getIncludeDraftDocuments
-
setIncludeDraftDocuments
-
interval
Retrieves the documents created/modified/published in specified date and time range. -
getInterval
-
setInterval
-
filter
Filter for the document search. -
getFilter
-
setFilter
-
sortOrder
public KnowledgeDocumentSearchRequest sortOrder(KnowledgeDocumentSearchRequest.SortOrderEnum sortOrder) The sort order for search results. -
getSortOrder
-
setSortOrder
-
sortBy
The field in the documents that you want to sort the search results by. -
getSortBy
-
setSortBy
-
application
The client application details from which search request was sent. -
getApplication
-
setApplication
-
conversationContext
public KnowledgeDocumentSearchRequest conversationContext(KnowledgeConversationContext conversationContext) Conversation context information if the search is initiated in the context of a conversation. -
getConversationContext
-
setConversationContext
-
confidenceThreshold
The confidence threshold for the search results. If applied, the returned results will have an equal or higher confidence than the threshold. The value should be between 0 to 1. -
getConfidenceThreshold
-
setConfidenceThreshold
-
answerHighlightTopResults
The number of articles to be sent for answer-highlighting. Can range from 1-5. minimum: 1 maximum: 5 -
getAnswerHighlightTopResults
-
setAnswerHighlightTopResults
-
answerMode
public KnowledgeDocumentSearchRequest answerMode(List<KnowledgeDocumentSearchRequest.AnswerModeEnum> answerMode) Allows extracted answers from an article (AnswerHighlight) and/or AI-generated answers (AnswerGeneration). Default mode: AnswerHighlight. Use this property with answerHighlightTopResults. -
getAnswerMode
-
setAnswerMode
-
preprocessQuery
Indicates whether the search query should be preprocessed. -
getPreprocessQuery
-
setPreprocessQuery
-
equals
-
hashCode
public int hashCode() -
toString
-