list document to search in nuxeo-suggestion-document

Hello,

I need to use 'nuxeo-document-suggestion' in my page Provider and I need to filter document that will be suggested, so I created a new page provider(query-filter-search).with query like this “ecm:isCheckedInVersion=0 AND ecm:currentLifeCycleState='opened' AND ecm:primaryType= 'document_structuree'” and finaly i used the web componement like this

  1. <nuxeo-page-provider id="query-filter-search"
                         provider="query-filter-search"
                         enrichers="thumbnail, permissions"
                         schemas="dublincore,common,uid"
                         page-size="20"
                         headers='{"X-NXfetch.document": "properties", "X-NXtranslate.directoryEntry": "label"}'>
    </nuxeo-page-provider>
    
  2. <nuxeo-document-suggestion  value="{{value}}"  pageProvider = 'query-filter-search'> </nuxeo-document-suggestion>
    
0 votes

1 answers

75 views

ANSWER

My problem is : documents suggested are not filtred
05/04/2020



Hello,

Are described in Custom Document Suggestion Cookbook, you need to end the Query Filter of your page provider by AND ecm:fulltext = '?*' and uncheck in the Advanced Configuration the checkbox of Quote parameters to allow searching.

Regards

3 votes



thank you, it works for me
05/05/2020

Cool! Please validate the answer (check icon) to make clear to the other users what is the solution ;)
05/05/2020