Is there a way to replace the suggester in default search boxes?
Hi,
Is there any way to replace the suggesters used in the default search boxes? For example, the quick search bar at the top right
or the User/Group search bar when adding permissions to a document ?
I tried using the solution in this post as a starting point, but it didn't seem to do anything (https://answers.nuxeo.com/general/q/bd32daf958cc4751a5aa64aa2530a7c6/Remove-user-and-group-suggestion-in-the-search-box-suggestion ). Please let me know if my question is not clear or if there is any more information I can provide to help come up with a solution.
Thank you,
Andrew
Hello,
At the end, there are a lot of different questions in your post:
To customize the default query triggered from the global search: you can take inspiration from https://github.com/nuxeo/nuxeo-studio-community-cookbook/tree/master/modules/nuxeo/modeler-tips-tricks#override-the-global-search-to-perform-the-search-with-fulltext-analyzer-on-every-property
You can edit tthe suggestion formatter on every suggestion, like in https://github.com/nuxeo/nuxeo-studio-community-cookbook/tree/master/modules/nuxeo/document-suggestion-result-formatters
Then, if you want to edit an existing element, you would have generally to:
- Paste the code of the element from the nuxeo-web-ui repository
- Copy the code in a new element (that you have renamed)
- Declare it in your bundle file
- Make a slot contribution to use the new element
Good luck