Skip to main content

Limiting search result details

By default, each search result will contain very limited details—typically only the unique identities (GUID and qualifiedName) and name of each asset. This is intentional, to prevent retrieving more information than you need, as every piece of information you retrieve will add a little bit of time to the overall runtime of your request.

You can request additional details on each search result, though, to make sure the search gives you back exactly the information you require:

Including asset properties

You can specify any properties of an asset you want to include in each search result, including relationships:

Include asset properties
client.assets.select() // (1)
.includeOnResults(Table.CREATE_TIME) // (2)
.includeOnResults(Table.UPDATE_TIME)
.includeOnResults(Table.COLUMNS)
.stream() // (3)
...
  1. Start building a FluentSearch query (in this example from a client, using its 'assets' member's select() method).
  2. Chain as many includeOnResults calls as you like. Each method call should include a searchable Atlan field you want to include on each search result. (And this can include relationship attributes as well, such as the columns in a table in this example.)
  3. You can then run the search as you like (in this example, streaming the results directly).

Including relationship properties

You can also specify which attributes you want to include on each relationship in each search result:

Include relationship properties
client.assets.select() // (1)
.includeOnResults(Table.COLUMNS) // (2)
.includeOnRelations(Column.NAME) // (3)
.stream() // (4)
...
  1. Start building a FluentSearch query (in this example from a client, using its 'assets' member's select() method).
  2. Chain as many includeOnResults calls as you like, to include one or more relationships on each search result.
  3. Then chain as many includeOnRelations calls as you like. Each method call should include a searchable Atlan field you want to include on each relationship included in each search result. (In this example, every related column that comes back for each search result will include the column's name.)
  4. You can then run the search as you like (in this example, streaming the results directly).
Was this page helpful?