You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Shwetha G S (JIRA)" <ji...@apache.org> on 2016/07/05 10:54:11 UTC
[jira] [Updated] (ATLAS-347) Atlas search APIs should allow
pagination of results
[ https://issues.apache.org/jira/browse/ATLAS-347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shwetha G S updated ATLAS-347:
------------------------------
Attachment: ATLAS-347.patch
1. orderby doesn't require fully qualified field name anymore. For example, 'hive_table orderby name' resolves name to Asset.name
2. Added limit and offset to search by DSL API.
3. DSL query adds API's limit and offset to the specified DSL query. For eaxmple, 'hive_table orderby name' maps to 'hive_table orderby name limit 100 offset 0'. 'hive_table orderby name limit 200 offset 10' maps to 'hive_table orderby name limit 100 offset 10'. 100 and 0 are API's limit and offset respectively here
4. orderby was using case insensitive search. Changed it to case sensitive search as the query fails if the orderby property is not set
5. All existing tests work
Pending:
1. Add more tests
2. Add limit and offset for full text search. I don't think the index search that we do supports pagination. May have to filter results on atlas server
> Atlas search APIs should allow pagination of results
> ----------------------------------------------------
>
> Key: ATLAS-347
> URL: https://issues.apache.org/jira/browse/ATLAS-347
> Project: Atlas
> Issue Type: Improvement
> Reporter: Hemanth Yamijala
> Assignee: Shwetha G S
> Priority: Critical
> Attachments: ATLAS-347.patch
>
>
> Currently, we can search for all entities of type like a hive table or hive column (query string is hive_table or hive_column). The API returns all results at one shot in this case. With a sufficiently large number of entities, this would be a huge list and a lot of data flowing from server to UI. To scale this better, we should have a way of specifying to get a page of results at a time in the API.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)