<?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 Re: How to query index of Document (the &amp;quot;ecm:pos&amp;quot;) via Java API? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-index-of-document-the-quot-ecm-pos-quot-via-java/m-p/316505#M3506</link>
    <description>&lt;P&gt;Today the only way to get at the &lt;CODE&gt;ecm:pos&lt;/CODE&gt; of a document is to do a query using the &lt;CODE&gt;queryAndFetch&lt;/CODE&gt; API and request the value of &lt;CODE&gt;ecm:pos&lt;/CODE&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT ecm:uuid, ecm:pos, ... FROM Document WHERE ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 14 Aug 2012 16:52:21 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2012-08-14T16:52:21Z</dc:date>
    <item>
      <title>How to query index of Document (the "ecm:pos") via Java API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-index-of-document-the-quot-ecm-pos-quot-via-java/m-p/316504#M3505</link>
      <description>&lt;P&gt;While coreSession.query() works fine for "SELECT * FROM Document WHERE ... order by ecm:pos "
i do not find a way to get this ecm:pos value.&lt;/P&gt;
&lt;P&gt;Unfortunately, it is not one of the getters of DocumentModel.
The simple trial with "SELECT * , ecm:pos FROM" does not throw an error, but always 0 items (at least against SQLRepositoryTestCase)&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;and if it would work, what is the result object's type?, The only docs i found are the &lt;A href="http://doc.nuxeo.com/display/NXDOC55/NXQL"&gt;NXQL spec&lt;/A&gt; and the &lt;A href="http://community.nuxeo.com/api/nuxeo/5.5/javadoc/org/nuxeo/ecm/core/api/CoreSession.html#query%28java.lang.String%29"&gt;API&lt;/A&gt; (but i'am sure, i missed some)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;[And as this is my first post ever: Many thanks for nuxeo! Great job!]&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2012 12:08:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-index-of-document-the-quot-ecm-pos-quot-via-java/m-p/316504#M3505</guid>
      <dc:creator>erdmann_</dc:creator>
      <dc:date>2012-08-13T12:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to query index of Document (the "ecm:pos") via Java API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-index-of-document-the-quot-ecm-pos-quot-via-java/m-p/316505#M3506</link>
      <description>&lt;P&gt;Today the only way to get at the &lt;CODE&gt;ecm:pos&lt;/CODE&gt; of a document is to do a query using the &lt;CODE&gt;queryAndFetch&lt;/CODE&gt; API and request the value of &lt;CODE&gt;ecm:pos&lt;/CODE&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT ecm:uuid, ecm:pos, ... FROM Document WHERE ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Aug 2012 16:52:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-index-of-document-the-quot-ecm-pos-quot-via-java/m-p/316505#M3506</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-08-14T16:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to query index of Document (the "ecm:pos") via Java API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-index-of-document-the-quot-ecm-pos-quot-via-java/m-p/316506#M3507</link>
      <description>&lt;P&gt;Thanks, works fine.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2012 14:11:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-index-of-document-the-quot-ecm-pos-quot-via-java/m-p/316506#M3507</guid>
      <dc:creator>erdmann_</dc:creator>
      <dc:date>2012-08-15T14:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to query index of Document (the "ecm:pos") via Java API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-index-of-document-the-quot-ecm-pos-quot-via-java/m-p/316507#M3508</link>
      <description>&lt;P&gt;Orderable is a property of the folder contain the documents, not of the documents themselves.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2012 15:40:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-index-of-document-the-quot-ecm-pos-quot-via-java/m-p/316507#M3508</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-08-21T15:40:01Z</dc:date>
    </item>
  </channel>
</rss>

