cancel
Showing results for 
Search instead for 
Did you mean: 

list document to search in nuxeo-suggestion-document

Hanene_BEN_MTAR
Champ in-the-making
Champ in-the-making

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>
    
1 ACCEPTED ANSWER

Gregory_Carlin
Elite Collaborator
Elite Collaborator

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

View answer in original post

4 REPLIES 4

Hanene_BEN_MTAR
Champ in-the-making
Champ in-the-making

My problem is

Gregory_Carlin
Elite Collaborator
Elite Collaborator

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

thank you, it works for me

Cool! Please validate the answer (check icon) to make clear to the other users what is the solution 😉