Smart search filter and tags

paul higgins asked on February 17, 2020 19:43

I have set up a smart search filter along with hidden search dialog and smart search results based on filtering tags in documents. I have for the first time had a go at the values field setup as i felt it would provide more control on a specific number of tags. my values were defined as the following

+DocumentTags;Shop;Shop +DocumentTags;Blog;Blog

etc

I have created the tag group and inherited from the root down through the children, but in my search results i am only getting a return on the top level root ie one result. Am i missing somthing

Regards

Hi, Just hit a small snag while testing. I have set up a smart filter for searching documents for tag values.

image.png

For some reason the search does not go past the root page. I have inherited the tags through the child pages , but nothing is getting picked up. Am i missing something

Regards

Recent Answers


Juraj Ondrus answered on February 18, 2020 07:43

Do the pages have one, exactly one tag assigned? I am asking because by default the pages can have multiple tags, separated by comma - so in your filter you would need to list the actual value saved for given page in given field - and the tags can be added in various order so there are many, many possible combinations. I am not sure what is your exact goal, but maybe you are looking for data filtering and not searching. I just explained the difference (in the backend, for the front end user it might be the same) in this thread. So, maybe you want to use that approach instead as in this case, creating a custom filter which will generate WHERE condition with LIKE '%some text%' instead of search filter which is using logical AND might be much easier to maintain.

0 votesVote for this answer Mark as a Correct answer

paul higgins answered on February 18, 2020 10:16

the tag group has a number of tags, but i am currently only selecting one tag from the group. In my particular scenario i have a content tag group which has quite a number of tags. on the indivudual pages from the parent down i am inheriting the group and selecting the required tag. In this instance the tag is called 'Shop'. The idea is to use the smart filter to just display the pages in that part of the tree associated with the assigned tag. I really dont want to go down the route of a custom filter , as it seems to be a simple filtering option. Hope this helps

Regards

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on February 18, 2020 10:47

If the page has one and only tag, then it should be working - is the Filter clause set to "Must"? But in this case, won't it be easier using categories and configure the search by category? Since adding tags is more random and users can add duplicates - like dog vs dogs...I would rather use categories and then you can also check the sample Corporate site and the faceted search - how it is configured, for example here.

0 votesVote for this answer Mark as a Correct answer

paul higgins answered on February 18, 2020 10:53

I here what you are saying, and i do also have a category search, but i am afraid the want pages to also be classified by type ie 'Shop' hence using the tag mechanism. I know its a bit awkward, not sure how else to simulate a page being of a type without changing the actual page types, which really would not be feasible

0 votesVote for this answer Mark as a Correct answer

paul higgins answered on February 18, 2020 11:37

Hi, After your comments i have decided to filter on path, which seems a more robust solution. Many thanks

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.