<?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 Search in the current folder only in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/search-in-the-current-folder-only/m-p/320657#M7658</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I have a relatively simple requirement: search for documents under the current folder. A similar issue has been discussed &lt;A href="https://answers.nuxeo.com/general/q/461fd4b8f46a4e7fb965438ed7c209be/Using-page-providers-in-Web-UI"&gt;here&lt;/A&gt;, but I think I am missing something.&lt;/P&gt;
&lt;P&gt;I am using WebUI, so query parameters in the modeller are not there for me (as mentioned in &lt;A href="https://answers.nuxeo.com/general/q/461fd4b8f46a4e7fb965438ed7c209be/Using-page-providers-in-Web-UI"&gt;here&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;I've configured my page provider with a respective parentId parameter (although that would only find documents directly in the folder, but that's the next step to fix):&lt;/P&gt;
&lt;P&gt;Then I've configured a drawer search item, had it pass the document's uid:
&lt;span class="lia-inline-image-display-wrapper" image-alt="type an image title"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1902iD097AADA1F40C9FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="type an image title" alt="type an image title" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It seems, however, that that argument is not passed to the query, the following URL is executed:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;/nuxeo/api/v1/search/pp/demoSearchCurrentFolder/execute?currentPageIndex=0&amp;amp;offset=0&amp;amp;pageSize=40&amp;amp;system_fulltext=
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;No sign of my parameter whatsoever....&lt;/P&gt;
&lt;P&gt;My page provider looks the following:
&lt;span class="lia-inline-image-display-wrapper" image-alt="pageprovider"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1905iEC0786E17B4CAE70/image-size/large?v=v2&amp;amp;px=999" role="button" title="pageprovider" alt="pageprovider" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What am I doing wrong? Can parameters be used when configuring the search? If not, how to limit the search to the current folder only?&lt;/P&gt;
&lt;P&gt;Many thanks!
m&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 16:28:04 GMT</pubDate>
    <dc:creator>michal_m</dc:creator>
    <dc:date>2020-02-21T16:28:04Z</dc:date>
    <item>
      <title>Search in the current folder only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/search-in-the-current-folder-only/m-p/320657#M7658</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I have a relatively simple requirement: search for documents under the current folder. A similar issue has been discussed &lt;A href="https://answers.nuxeo.com/general/q/461fd4b8f46a4e7fb965438ed7c209be/Using-page-providers-in-Web-UI"&gt;here&lt;/A&gt;, but I think I am missing something.&lt;/P&gt;
&lt;P&gt;I am using WebUI, so query parameters in the modeller are not there for me (as mentioned in &lt;A href="https://answers.nuxeo.com/general/q/461fd4b8f46a4e7fb965438ed7c209be/Using-page-providers-in-Web-UI"&gt;here&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;I've configured my page provider with a respective parentId parameter (although that would only find documents directly in the folder, but that's the next step to fix):&lt;/P&gt;
&lt;P&gt;Then I've configured a drawer search item, had it pass the document's uid:
&lt;span class="lia-inline-image-display-wrapper" image-alt="type an image title"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1902iD097AADA1F40C9FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="type an image title" alt="type an image title" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It seems, however, that that argument is not passed to the query, the following URL is executed:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;/nuxeo/api/v1/search/pp/demoSearchCurrentFolder/execute?currentPageIndex=0&amp;amp;offset=0&amp;amp;pageSize=40&amp;amp;system_fulltext=
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;No sign of my parameter whatsoever....&lt;/P&gt;
&lt;P&gt;My page provider looks the following:
&lt;span class="lia-inline-image-display-wrapper" image-alt="pageprovider"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1905iEC0786E17B4CAE70/image-size/large?v=v2&amp;amp;px=999" role="button" title="pageprovider" alt="pageprovider" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What am I doing wrong? Can parameters be used when configuring the search? If not, how to limit the search to the current folder only?&lt;/P&gt;
&lt;P&gt;Many thanks!
m&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 16:28:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/search-in-the-current-folder-only/m-p/320657#M7658</guid>
      <dc:creator>michal_m</dc:creator>
      <dc:date>2020-02-21T16:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search in the current folder only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/search-in-the-current-folder-only/m-p/320658#M7659</link>
      <description>&lt;P&gt;It kind of works with a custom "listing" tab:
&lt;span class="lia-inline-image-display-wrapper" image-alt="type an image title"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1908i8C4C2DF6A50FD9A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="type an image title" alt="type an image title" /&gt;&lt;/span&gt;.&lt;/P&gt;
&lt;P&gt;It's called search and available only for folderish documents.
&lt;span class="lia-inline-image-display-wrapper" image-alt="type an image title"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1901i430CC357086F88F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="type an image title" alt="type an image title" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'm not sure if that's the correct approach though, makes sense? What bothers me currently is that results stay on the tab even if I navigate to a different folder. It's not as intuitive as one could expect. Can I have results cleared automatically once tab is opened? I was hoping auto search would help, but apparently it doesnt recognize the change of the context attribute&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 17:32:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/search-in-the-current-folder-only/m-p/320658#M7659</guid>
      <dc:creator>michal_m</dc:creator>
      <dc:date>2020-02-21T17:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search in the current folder only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/search-in-the-current-folder-only/m-p/320659#M7660</link>
      <description>&lt;P&gt;Hi Michal;&lt;/P&gt;
&lt;P&gt;This use case is described in &lt;A href="https://github.com/nuxeo/nuxeo-studio-community-cookbook/tree/master/modules/nuxeo/designer-tips-tricks#update-the-children-document-listing-in-the-view-tab-of-folderish-documents"&gt;https://github.com/nuxeo/nuxeo-studio-community-cookbook/tree/master/modules/nuxeo/designer-tips-tricks#update-the-children-document-listing-in-the-view-tab-of-folderish-documents&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Have a great day&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2020 15:34:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/search-in-the-current-folder-only/m-p/320659#M7660</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-02-22T15:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Search in the current folder only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/search-in-the-current-folder-only/m-p/320660#M7661</link>
      <description>&lt;P&gt;Hi Gregory,&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 14:30:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/search-in-the-current-folder-only/m-p/320660#M7661</guid>
      <dc:creator>michal_m</dc:creator>
      <dc:date>2020-02-26T14:30:31Z</dc:date>
    </item>
  </channel>
</rss>

