Directory suggestions by "contains" instead "start with"

Hi! I created a custom search form with a search term by directory (vocabulary). I used “nuxeo-directory-suggestion”

The component “nuxeo-directory-suggestion” allow filter options by text, and it show options that starts with the text that user input.

I would like to show also options that contains the text like component “nuxeo-user-suggestion” do it.

Is there any way to change the directory suggestions behaviour?
Can I use other component to do this?
Thanks.

0 votes

2 answers

68 views

ANSWER



Hello!

Passing:

params='{"contains":true}'

to the nuxeo-directory-suggestion element should make the Directory.SuggestEntries operation use a fulltext search.

3 votes



Hi Gregory! Perfect!! It works!! Thanks!!

0 votes