Package net.bluemind.backend.mail.api
Class SearchQuery
java.lang.Object
net.bluemind.backend.mail.api.SearchQuery
Defines message search parameters
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefinition of aMailboxFoldersearch restrictionstatic classHeader key/value pairstatic classHeader searchstatic enumDefines the search operator of the requested header search valuesstatic classThe scope of a search -
Field Summary
FieldsModifier and TypeFieldDescriptionEnables the search by the specific header valuesDefines the default search operator ofqueryandrecordQuerylongMaximum resultsEnables the search by the MessageId headerlongResult Set offsetAn Elasticsearch compliant query string body document onlyAn Elasticsearch compliant query string record document onlyEnables the search by the References headerThe scope of this searchAn optional id associated to this query -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchQueryallHeaders(Map<String, String> headerValues, SearchQuery.LogicalOperator operator)
-
Field Details
-
searchSessionId
An optional id associated to this query -
query
An Elasticsearch compliant query string body document only -
recordQuery
An Elasticsearch compliant query string record document only -
messageId
Enables the search by the MessageId header -
references
Enables the search by the References header -
headerQuery
Enables the search by the specific header values -
maxResults
public long maxResultsMaximum results -
offset
public long offsetResult Set offset -
scope
The scope of this search -
logicalOperator
Defines the default search operator ofqueryandrecordQuery
-
-
Constructor Details
-
SearchQuery
public SearchQuery()
-
-
Method Details
-
allHeaders
public static SearchQuery allHeaders(Map<String, String> headerValues, SearchQuery.LogicalOperator operator)
-