04-19-2017 10:11 AM
Hello everyone,
I would like to use the search engine to search on parents of a hierarchical vocabulary and get every document having one of the children in the field. Here is an example so I can explain better: A vocabulray like this: Parent 1 Child 1 of parent 1 Child 2 of parent 2 Parent 2 Child 3 of parent 2 Child 4 of parent 2
I use this vocabulary for my field: dc:title. And with a search, I would like to search every dc:title having a child of parent 1 (so every documents having a dc:title filled with Child 1 / Child 2 or Parent 1), how can I achieve this ? (within the user interface, meaning my user doesn't know any ID of the vocabularies and still wants to have everydocument of the parent)
04-25-2017 06:34 AM
Hello Mathilde,
You can configure that in Nuxeo Studio. In a content view (customization / listing & views / content views):
make sure to activate the Search content view flag
In the search layout, drag and drop the metadata storing the value of your vocabulary entry
Choose the "single directory suggestion" widget
Choose the "STARTSWITH" operator
Change the values for the "Can select parent" and "filter parent" options to "yes"
After deploying the configuration, users selecting parent1 in the search form from the user interface will see any value that starts with parent1. As children values are stored as parent1/child2 for instance, you will retrieve all children values.
05-02-2017 04:58 PM
Hello Bertrand,
thanks for your answer. We tried your configuration, but results (when we clic on "filter") don't show all childrens from the parent selected...
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.