<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Is there a way of returning more than 100 results in DSL search API Atlas query? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-of-returning-more-than-100-results-in-DSL/m-p/177161#M75626</link>
    <description>&lt;P&gt;	&lt;A rel="user" href="https://community.cloudera.com/users/3758/laurango.html" nodeid="3758"&gt;@Laura Ngo&lt;/A&gt; - the API shared by &lt;A rel="user" href="https://community.cloudera.com/users/330/mneethiraj.html" nodeid="330"&gt;@Madhan Neethiraj&lt;/A&gt; is the correct one which you can use. However, in addition to it, I would like to inform you that if you have more than 10000 results and want to scroll between them you can use offset option like below query.&lt;/P&gt;&lt;PRE&gt;curl -k -u admim:admin -H "Content-type:application/json"-X GET &lt;A href="https://url:port/api/atlas/v2/earch/dsl?limit=10000&amp;amp;offset=20000&amp;amp;query=hive_column%20where%20__state%3D%27ACTIVE%27%20and%20qualifiedName%20like%20%27prod_%2A_data_lake%2A%27%20selct%20qualifiedName%2Cname%2C__guid" target="_blank"&gt;https://url:port/api/atlas/v2/earch/dsl?limit=10000&amp;amp;offset=20000&amp;amp;query=hive_column%20where%20__state%3D%27ACTIVE%27%20and%20qualifiedName%20like%20%27prod_%2A_data_lake%2A%27%20selct%20qualifiedName%2Cname%2C__guid&lt;/A&gt; | python -m json.tool &amp;gt; hive_column_prod_data_lake.json&lt;BR /&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Mar 2018 10:38:08 GMT</pubDate>
    <dc:creator>rbansal</dc:creator>
    <dc:date>2018-03-16T10:38:08Z</dc:date>
    <item>
      <title>Is there a way of returning more than 100 results in DSL search API Atlas query?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-of-returning-more-than-100-results-in-DSL/m-p/177159#M75624</link>
      <description>&lt;P&gt;I can only return a maximum of 100 results when doing a DSL API search in Atlas. Is this by design or a bug?&lt;/P&gt;&lt;P&gt;Even with a limit of 1000 only 100 items are returned&lt;/P&gt;&lt;PRE&gt;curl -k -u admin:admin -H "Content-type:application/json" -X GET &lt;A href="https://url:port/api/atlas/v2/search/dsl?query=hive_column%20where%20__state%3D%27ACTIVE%27%20and%20qualifiedName%20like%20%27prod_%2A_data_lake%2A%27%20select%20qualifiedName%2Cname%2C__guid%20limit%201000" target="_blank"&gt;https://url:port/api/atlas/v2/search/dsl?query=hive_column%20where%20__state%3D%27ACTIVE%27%20and%20qualifiedName%20like%20%27prod_%2A_data_lake%2A%27%20select%20qualifiedName%2Cname%2C__guid%20limit%201000&lt;/A&gt; | python -m json.tool &amp;gt; hive_column_prod_data_lake_limit.json
&lt;/PRE&gt;&lt;P&gt;No limit yet still 100 items are returned. There are a lot more than 100 items - when I do the same for hive_tables only 100 items are returned.&lt;/P&gt;&lt;PRE&gt;curl -k -u admim:admin -H "Content-type:application/json" -X GET &lt;A href="https://url:port/api/atlas/v2/earch/dsl?query=hive_column%20where%20__state%3D%27ACTIVE%27%20and%20qualifiedName%20like%20%27prod_%2A_data_lake%2A%27%20selct%20qualifiedName%2Cname%2C__guid" target="_blank"&gt;https://url:port/api/atlas/v2/earch/dsl?query=hive_column%20where%20__state%3D%27ACTIVE%27%20and%20qualifiedName%20like%20%27prod_%2A_data_lake%2A%27%20selct%20qualifiedName%2Cname%2C__guid&lt;/A&gt; | python -m json.tool &amp;gt; hive_column_prod_data_lake.json
&lt;/PRE&gt;&lt;P&gt;This is on a 2.6.3 HDP install.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 06:15:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-of-returning-more-than-100-results-in-DSL/m-p/177159#M75624</guid>
      <dc:creator>laura_ngo</dc:creator>
      <dc:date>2018-03-11T06:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way of returning more than 100 results in DSL search API Atlas query?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-of-returning-more-than-100-results-in-DSL/m-p/177160#M75625</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3758/laurango.html" nodeid="3758"&gt;@Laura Ngo&lt;/A&gt; - by default the query returns maximum of 100 results. To retrieve more results, please add query parameter "limit" in the REST call, as shown below (addition of query parameter "limit=1234"):&lt;/P&gt;&lt;PRE&gt;curl -k -u admim:admin -H "Content-type:application/json"-X GET &lt;A href="https://url:port/api/atlas/v2/earch/dsl?limit=1234&amp;amp;query=hive_column%20where%20__state%3D%27ACTIVE%27%20and%20qualifiedName%20like%20%27prod_%2A_data_lake%2A%27%20selct%20qualifiedName%2Cname%2C__guid" target="_blank"&gt;https://url:port/api/atlas/v2/earch/dsl?limit=1234&amp;amp;query=hive_column%20where%20__state%3D%27ACTIVE%27%20and%20qualifiedName%20like%20%27prod_%2A_data_lake%2A%27%20selct%20qualifiedName%2Cname%2C__guid&lt;/A&gt; | python -m json.tool &amp;gt; hive_column_prod_data_lake.json&lt;/PRE&gt;&lt;P&gt;Please note that a maximum of 10,000 results will be returned even if limit specified is higher.&lt;/P&gt;&lt;P&gt;Both default and the max limit can be configured with the following properties:&lt;/P&gt;&lt;PRE&gt;atlas.search.defaultlimit=100&lt;BR /&gt;atlas.search.maxlimit=10000&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Mar 2018 22:55:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-of-returning-more-than-100-results-in-DSL/m-p/177160#M75625</guid>
      <dc:creator>mneethiraj</dc:creator>
      <dc:date>2018-03-15T22:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way of returning more than 100 results in DSL search API Atlas query?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-of-returning-more-than-100-results-in-DSL/m-p/177161#M75626</link>
      <description>&lt;P&gt;	&lt;A rel="user" href="https://community.cloudera.com/users/3758/laurango.html" nodeid="3758"&gt;@Laura Ngo&lt;/A&gt; - the API shared by &lt;A rel="user" href="https://community.cloudera.com/users/330/mneethiraj.html" nodeid="330"&gt;@Madhan Neethiraj&lt;/A&gt; is the correct one which you can use. However, in addition to it, I would like to inform you that if you have more than 10000 results and want to scroll between them you can use offset option like below query.&lt;/P&gt;&lt;PRE&gt;curl -k -u admim:admin -H "Content-type:application/json"-X GET &lt;A href="https://url:port/api/atlas/v2/earch/dsl?limit=10000&amp;amp;offset=20000&amp;amp;query=hive_column%20where%20__state%3D%27ACTIVE%27%20and%20qualifiedName%20like%20%27prod_%2A_data_lake%2A%27%20selct%20qualifiedName%2Cname%2C__guid" target="_blank"&gt;https://url:port/api/atlas/v2/earch/dsl?limit=10000&amp;amp;offset=20000&amp;amp;query=hive_column%20where%20__state%3D%27ACTIVE%27%20and%20qualifiedName%20like%20%27prod_%2A_data_lake%2A%27%20selct%20qualifiedName%2Cname%2C__guid&lt;/A&gt; | python -m json.tool &amp;gt; hive_column_prod_data_lake.json&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Mar 2018 10:38:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-of-returning-more-than-100-results-in-DSL/m-p/177161#M75626</guid>
      <dc:creator>rbansal</dc:creator>
      <dc:date>2018-03-16T10:38:08Z</dc:date>
    </item>
  </channel>
</rss>

