<?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>topic How to execute SQL query in Search Resource Endpoints in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-execute-sql-query-in-search-resource-endpoints/m-p/319342#M6343</link>
    <description>&lt;P&gt;Hi Eveybody
Im triying execute the next endpoint &lt;A href="http://localhost:8080/nuxeo/api/v1/search/lang/(psq,sql,potsgressql,etc)l/execute?query=SELECT" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/search/lang/(psq,sql,potsgressql,etc)l/execute?query=SELECT&lt;/A&gt; * FROM documento_base
But the execute return a Exception:
...
"infos": [],
"statusCode": 400,
"originalMessage": "invalid query language",
"message": "invalid query language",
"localizedMessage": "invalid query language",
"suppressed": []&lt;/P&gt;
&lt;P&gt;It's posibble execute pure SQL wiht the endpoint?&lt;/P&gt;
&lt;P&gt;Note: I use the endpoint with Page Provider (default nuxeo "nxql_search")
&lt;A href="http://localhost:8080/nuxeo/api/v1/search/pp/nxql_search/execute?currentPageIndex=0&amp;amp;offset=0&amp;amp;pageSize=40&amp;amp;queryParams=SELECT" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/search/pp/nxql_search/execute?currentPageIndex=0&amp;amp;offset=0&amp;amp;pageSize=40&amp;amp;queryParams=SELECT&lt;/A&gt; * FROM Document WHERE ecm:mixinType != 'HiddenInNavigation' AND ecm:isProxy = 0 AND ecm:isVersion = 0 AND ecm:isTrashed = 0&lt;/P&gt;
&lt;P&gt;But is not possible get only columns (attributes) example select dc:title from document the request is successfully but the content is null&lt;/P&gt;
&lt;P&gt;Regards!&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 20:53:41 GMT</pubDate>
    <dc:creator>Gabino_Reyes</dc:creator>
    <dc:date>2021-01-27T20:53:41Z</dc:date>
    <item>
      <title>How to execute SQL query in Search Resource Endpoints</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-execute-sql-query-in-search-resource-endpoints/m-p/319342#M6343</link>
      <description>&lt;P&gt;Hi Eveybody
Im triying execute the next endpoint &lt;A href="http://localhost:8080/nuxeo/api/v1/search/lang/(psq,sql,potsgressql,etc)l/execute?query=SELECT" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/search/lang/(psq,sql,potsgressql,etc)l/execute?query=SELECT&lt;/A&gt; * FROM documento_base
But the execute return a Exception:
...
"infos": [],
"statusCode": 400,
"originalMessage": "invalid query language",
"message": "invalid query language",
"localizedMessage": "invalid query language",
"suppressed": []&lt;/P&gt;
&lt;P&gt;It's posibble execute pure SQL wiht the endpoint?&lt;/P&gt;
&lt;P&gt;Note: I use the endpoint with Page Provider (default nuxeo "nxql_search")
&lt;A href="http://localhost:8080/nuxeo/api/v1/search/pp/nxql_search/execute?currentPageIndex=0&amp;amp;offset=0&amp;amp;pageSize=40&amp;amp;queryParams=SELECT" target="test_blank"&gt;http://localhost:8080/nuxeo/api/v1/search/pp/nxql_search/execute?currentPageIndex=0&amp;amp;offset=0&amp;amp;pageSize=40&amp;amp;queryParams=SELECT&lt;/A&gt; * FROM Document WHERE ecm:mixinType != 'HiddenInNavigation' AND ecm:isProxy = 0 AND ecm:isVersion = 0 AND ecm:isTrashed = 0&lt;/P&gt;
&lt;P&gt;But is not possible get only columns (attributes) example select dc:title from document the request is successfully but the content is null&lt;/P&gt;
&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 20:53:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-execute-sql-query-in-search-resource-endpoints/m-p/319342#M6343</guid>
      <dc:creator>Gabino_Reyes</dc:creator>
      <dc:date>2021-01-27T20:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute SQL query in Search Resource Endpoints</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-execute-sql-query-in-search-resource-endpoints/m-p/319343#M6344</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Why do you need to retrieve only specific columns? Why not using NXQL? That's the way to go when quering for documents.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 20:43:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-execute-sql-query-in-search-resource-endpoints/m-p/319343#M6344</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2021-02-01T20:43:22Z</dc:date>
    </item>
  </channel>
</rss>

