Tagsearch implementation | Community
Skip to main content
Level 4
December 30, 2018
Solved

Tagsearch implementation

  • December 30, 2018
  • 2 replies
  • 1557 views

Hi there,

I'm looking for a way to improve a search component on my project.

Currently, I am using a Lucene Synonym list. My query is something like this:

group.1_group.type=cq:Page

group.1_group.path=/content/my-project/en/pages //the path where I'm looking for

group.1_group.tagsearch=tools //search key

group.1_group.tagsearch.property=jcr:content/@dc:product //looking intot the tag node

group.1_group.tagsearch.all=true //this will enable my synonym list

My issue is that the query will look after my keyword in the title and description node of my tag. I'm looking for a way to control that.

The tagsearch predicate documentation is not detailed regarding this.

Does anyone know how could I prevent my query to look into these two nodes?

jcr:title and jcr:description.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gaurav-Behl

Tagsearch predicate doesn't have excludeproperty or similar. I think you might have to create specific Lucene index & use 'excludePropertyNames' to avoid jcr:title and jcr:description.

Reference - Oak Queries and Indexing

2 replies

smacdonald2008
Level 10
December 30, 2018

We have a community article that shows use of tag manager and PredicateGroup. THis shows an example of searching tags. See Adobe Experience Manager Help | Developing HTL Components that search for Adobe Experience Manager 6.4 Content Tags

Gaurav-Behl
Gaurav-BehlAccepted solution
Level 10
December 31, 2018

Tagsearch predicate doesn't have excludeproperty or similar. I think you might have to create specific Lucene index & use 'excludePropertyNames' to avoid jcr:title and jcr:description.

Reference - Oak Queries and Indexing