<?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 query your custom table in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-your-custom-table/m-p/326628#M13629</link>
    <description>&lt;EXTENSION target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory" point="directories"&gt;
  &lt;DIRECTORY name="fileTagsDirectory" extends="template-directory"&gt; 
            &lt;SCHEMA&gt;fileTags&lt;/SCHEMA&gt; 
            &lt;IDFIELD&gt;id&lt;/IDFIELD&gt;
      &lt;TABLE&gt;fileTags&lt;/TABLE&gt; 
     &lt;DATASOURCE&gt;java:/nxsqldirectory&lt;/DATASOURCE&gt;
             &lt;DATAFILE&gt;directories/nature.csv&lt;/DATAFILE&gt;
             &lt;ENTRYCACHENAME&gt;fileTagsDirectory-cache&lt;/ENTRYCACHENAME&gt; 
     &lt;CREATETABLEPOLICY&gt;always&lt;/CREATETABLEPOLICY&gt;
             &lt;ENTRYCACHEWITHOUTREFERENCESNAME&gt;fileTagsDirectory-cache-without-ref&lt;/ENTRYCACHEWITHOUTREFERENCESNAME&gt;
         &lt;/DIRECTORY&gt;
&lt;/EXTENSION&gt;
I have created the above vocabulary.
I am getting below log
2019-12-24T13:26:44,232 DEBUG [main] [org.nuxeo.ecm.directory.sql.SQLHelper] setting up table 'fileTags', policy='on_missing_columns'
2019-12-24T13:26:44,234 DEBUG [main] [org.nuxeo.ecm.directory.sql.SQLHelper] checking if table fileTags exists: true
2019-12-24T13:26:44,237 DEBUG [main] [org.nuxeo.ecm.directory.sql.SQLHelper] all fields matched for table 'fileTags'
&lt;P&gt;I have tried getting select * from fileTags in nuxeo Dev Tools chrome extension or in nuxeo home NXSQL serach.
But i am not getting anything. please let me know how to check the records.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Dec 2019 08:26:37 GMT</pubDate>
    <dc:creator>Rahul_Mittal</dc:creator>
    <dc:date>2019-12-24T08:26:37Z</dc:date>
    <item>
      <title>How to query your custom table</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-your-custom-table/m-p/326628#M13629</link>
      <description>&lt;EXTENSION target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory" point="directories"&gt;
  &lt;DIRECTORY name="fileTagsDirectory" extends="template-directory"&gt; 
            &lt;SCHEMA&gt;fileTags&lt;/SCHEMA&gt; 
            &lt;IDFIELD&gt;id&lt;/IDFIELD&gt;
      &lt;TABLE&gt;fileTags&lt;/TABLE&gt; 
     &lt;DATASOURCE&gt;java:/nxsqldirectory&lt;/DATASOURCE&gt;
             &lt;DATAFILE&gt;directories/nature.csv&lt;/DATAFILE&gt;
             &lt;ENTRYCACHENAME&gt;fileTagsDirectory-cache&lt;/ENTRYCACHENAME&gt; 
     &lt;CREATETABLEPOLICY&gt;always&lt;/CREATETABLEPOLICY&gt;
             &lt;ENTRYCACHEWITHOUTREFERENCESNAME&gt;fileTagsDirectory-cache-without-ref&lt;/ENTRYCACHEWITHOUTREFERENCESNAME&gt;
         &lt;/DIRECTORY&gt;
&lt;/EXTENSION&gt;
I have created the above vocabulary.
I am getting below log
2019-12-24T13:26:44,232 DEBUG [main] [org.nuxeo.ecm.directory.sql.SQLHelper] setting up table 'fileTags', policy='on_missing_columns'
2019-12-24T13:26:44,234 DEBUG [main] [org.nuxeo.ecm.directory.sql.SQLHelper] checking if table fileTags exists: true
2019-12-24T13:26:44,237 DEBUG [main] [org.nuxeo.ecm.directory.sql.SQLHelper] all fields matched for table 'fileTags'
&lt;P&gt;I have tried getting select * from fileTags in nuxeo Dev Tools chrome extension or in nuxeo home NXSQL serach.
But i am not getting anything. please let me know how to check the records.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 08:26:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-your-custom-table/m-p/326628#M13629</guid>
      <dc:creator>Rahul_Mittal</dc:creator>
      <dc:date>2019-12-24T08:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to query your custom table</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-your-custom-table/m-p/326629#M13630</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;using NXQL you only can search for documents. In nuxeo, documents include files, folders, users and groups. However, vocabularies are not considered as documents, so you cannot search for them using NXQL.&lt;/P&gt;
&lt;P&gt;I recommend you to read the following documentation in order to understand how directories (vocabularies) work:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Vocabularies: &lt;A href="https://doc.nuxeo.com/studio/vocabularies/"&gt;https://doc.nuxeo.com/studio/vocabularies/&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Data Lists and Directories: &lt;A href="https://doc.nuxeo.com/nxdoc/data-lists-and-directories/"&gt;https://doc.nuxeo.com/nxdoc/data-lists-and-directories/&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Anyway, what's the aim of retrieving the vocabulary entries? Depending on it, there are several ways of retrieving that information, like directly seeing them in the Web UI, using the REST API or even with SDK clients.&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Dec 2019 11:59:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-your-custom-table/m-p/326629#M13630</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2019-12-28T11:59:00Z</dc:date>
    </item>
  </channel>
</rss>

