Package com.atlan.model.search
Class IndexSearchRequest
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.search.IndexSearchRequest
- All Implemented Interfaces:
Serializable
Class from which to configure and run a search against Atlan.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
IndexSearchRequest.IndexSearchRequestBuilder<C extends IndexSearchRequest,
B extends IndexSearchRequest.IndexSearchRequestBuilder<C, B>> static final class
Nested classes/interfaces inherited from class com.atlan.model.core.AtlanObject
AtlanObject.AtlanObjectBuilder<C extends AtlanObject,
B extends AtlanObject.AtlanObjectBuilder<C, B>> -
Field Summary
Fields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionstatic IndexSearchRequest.IndexSearchRequestBuilder<?,
?> static IndexSearchRequest.IndexSearchRequestBuilder<?,
?> builder
(co.elastic.clients.elasticsearch._types.query_dsl.Query query) Build a search using the provided query and default options.static IndexSearchRequest.IndexSearchRequestBuilder<?,
?> builder
(IndexSearchDSL dsl) Build a search using the provided DSL and default options.protected boolean
boolean
Whether to include deleted relationships to this asset (true) or not (false).Attributes to include on each result document.getDsl()
Parameters for the search itself.Whether to include Atlan tags for assets (false) or not (true).Whether to include term relationships for assets (false) or not (true).Whether to include Atlan tag names for assets (true) or not (false).Attributes to include on each related entity of each result document.Controls how the search is logged (if at all).Whether to include relationship-level attributes for any relationships to each asset (true) or not (false).When true, include the score of each result.TBCint
hashCode()
search()
Run the search.search
(AtlanClient client) Run the search.toString()
Methods inherited from class com.atlan.model.core.AtlanObject
getRawJsonObject, setRawJsonObject, toJson
-
Constructor Details
-
IndexSearchRequest
-
-
Method Details
-
builder
public static IndexSearchRequest.IndexSearchRequestBuilder<?,?> builder(co.elastic.clients.elasticsearch._types.query_dsl.Query query) Build a search using the provided query and default options.- Parameters:
query
- the query to use for the search- Returns:
- the search request, with default options
-
builder
Build a search using the provided DSL and default options.- Parameters:
dsl
- the query details to use for the search- Returns:
- the search request, with default options
-
search
Run the search.- Returns:
- the matching assets
- Throws:
AtlanException
-
search
Run the search.- Parameters:
client
- connectivity to the Atlan tenant on which to run the search- Returns:
- the matching assets
- Throws:
AtlanException
-
_internal
-
toBuilder
-
getDsl
Parameters for the search itself. -
getAttributes
Attributes to include on each result document. -
getRelationAttributes
Attributes to include on each related entity of each result document. -
getSuppressLogs
TBC -
getShowSearchScore
When true, include the score of each result. By default, this is false and scores are excluded. -
getExcludeMeanings
Whether to include term relationships for assets (false) or not (true). By default, this is false and term relationships are therefore included. -
getExcludeAtlanTags
Whether to include Atlan tags for assets (false) or not (true). By default, this is false and Atlan tags are therefore included. -
getIncludeAtlanTagNames
Whether to include Atlan tag names for assets (true) or not (false). By default, this is true and Atlan tag names are therefore included. Note that this can be set to true even when excludeAtlanTags is set to false. -
getAllowDeletedRelations
Whether to include deleted relationships to this asset (true) or not (false). By default, this is false and therefore only active (not deleted) relationships will be included. -
getRequestRelationshipAttrsForSearch
Whether to include relationship-level attributes for any relationships to each asset (true) or not (false). By default, this is false and therefore relationship-level attributes are not included. -
getRequestMetadata
Controls how the search is logged (if at all). -
equals
- Overrides:
equals
in classAtlanObject
-
canEqual
- Overrides:
canEqual
in classAtlanObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAtlanObject
-
toString
Description copied from class:AtlanObject
- Overrides:
toString
in classAtlanObject
-