Expand my Community achievements bar.

SOLVED

AEM Search exclude some properties

Avatar

Level 3

Hi Community

 

We have user query builder search in our website , but when we search for name of author user it gives us result and we don't want that

Do we have some way we can exclude properties like jcr:lastModifiedBy cq:lastPublishedBy and similar properties from fulltext search 

 

Please suggest

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @adivj95 

 

we can exclude the properties from search by:

  • nodeScopeIndex -> false (nodeScopeIndex set to true is responsible for a property being part of full text search)
  • If we set "index -> false", then the respective property will not be part of property constraint query result either/not indexed at all.
  • Also, property named analyzed -> false if the same is not to be part of contains query.

The details are available on this thread https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/excluding-properties-from-...

 


Aanchal Sikka

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hello @adivj95 

 

we can exclude the properties from search by:

  • nodeScopeIndex -> false (nodeScopeIndex set to true is responsible for a property being part of full text search)
  • If we set "index -> false", then the respective property will not be part of property constraint query result either/not indexed at all.
  • Also, property named analyzed -> false if the same is not to be part of contains query.

The details are available on this thread https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/excluding-properties-from-...

 


Aanchal Sikka

Avatar

Administrator

@adivj95 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni