AEM Search exclude some properties | Community
Skip to main content
adivj95
Level 2
November 21, 2023
Solved

AEM Search exclude some properties

  • November 21, 2023
  • 2 replies
  • 1073 views

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

 

 

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 aanchal-sikka

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-fulltext-lucene-index-searches-not/m-p/382778

 

2 replies

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
November 21, 2023

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-fulltext-lucene-index-searches-not/m-p/382778

 

Aanchal Sikka
kautuk_sahni
Community Manager
Community Manager
November 23, 2023

@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