cancel
Showing results for 
Search instead for 
Did you mean: 

Search in the current folder only

michal_m
Champ on-the-rise
Champ on-the-rise

Hi there,

I have a relatively simple requirement: search for documents under the current folder. A similar issue has been discussed here, but I think I am missing something.

I am using WebUI, so query parameters in the modeller are not there for me (as mentioned in here)

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):

Then I've configured a drawer search item, had it pass the document's uid: type an image title

It seems, however, that that argument is not passed to the query, the following URL is executed:

/nuxeo/api/v1/search/pp/demoSearchCurrentFolder/execute?currentPageIndex=0&offset=0&pageSize=40&system_fulltext=

No sign of my parameter whatsoever....

My page provider looks the following: pageprovider

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?

Many thanks! m

3 REPLIES 3

michal_m
Champ on-the-rise
Champ on-the-rise

It kind of works with a custom "listing" tab: type an image title.

It's called search and available only for folderish documents. type an image title

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

Gregory_Carlin
Elite Collaborator
Elite Collaborator

Hi Gregory,