Tag search does not bring document with multiple tags

Novice User asked on October 11, 2018 19:46

I am trying to search pages tagged with a specific tag. I am using smart search result web part and in search condition I am using this

+DocumentTags:{%mytag%}

It does bring the pages tagged with that tag only. If a page has been tagged with the tag I am searching and other tags too It wont bring those pages. I am using standard analyzer type in indexing.

What am i missing here ?

Recent Answers


David te Kloese answered on October 12, 2018 08:44

Hi,

Can you try using something like

Required to have tag1 and tag2: +documenttags:(tag1+tag2)

when wanting tag1 and tag2 OR tag3 and tag4

+documenttags:((tag1+tag2) || (tag3+tag4))

0 votesVote for this answer Mark as a Correct answer

Novice User answered on October 13, 2018 00:12

Actually mytag is the tag text user would search so its just a variable. Problem is then when the tag is searched, it only bring back results of page with one tag, not the pages tagged with the mytag and other tags.

0 votesVote for this answer Mark as a Correct answer

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