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
<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>
<nuxeo-document-suggestion value="{{value}}" pageProvider = 'query-filter-search'> </nuxeo-document-suggestion>
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