Issue with full text search | Community
Skip to main content
Level 2
November 22, 2019
Solved

Issue with full text search

  • November 22, 2019
  • 4 replies
  • 2735 views

I am using full text search to search for a keyword in PDF files stored in assets folder

Following is my Predicate

When I execute the above query it returns 17 results.

So far so good

When I verify the results I found that some of the results are irrelevant (the search key word “hello” is not present in the pdf). So I had a deeper look and found that dam:relativePath property contains the search key word “hello” for all the irrelevant results.

So my question, Is there any way to exclude dam:relativePath property from full text search ?

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 dennyj13354090

Solved by following Query

0_group.4_group.0_fulltext=hello

0_group.4_group.0_fulltext.relPath=jcr:content/renditions/original

0_group.4_group.1_path=/content/dam/site/documents

4 replies

Adobe Employee
November 23, 2019

You can check if the "dam:relativePath" is indexed as part of the properties under the node at [1]. If yes, you can remove the "dam:relativePath" property from the index, re-index and try to re-run the query

[1] /oak:index/damAssetLucene/indexRules/dam:Asset/properties

Level 2
November 25, 2019

dam:relativePath is not present in /oak:index/damAssetLucene/indexRules/dam:Asset/properties

Adobe Employee
November 25, 2019

Depending on the version of AEM this change would get reverted on restart. In newer versions of AEM you cannot change the default index definitions, they will revert if you change existing ootb properties.

dennyj13354090AuthorAccepted solution
Level 2
November 26, 2019

Solved by following Query

0_group.4_group.0_fulltext=hello

0_group.4_group.0_fulltext.relPath=jcr:content/renditions/original

0_group.4_group.1_path=/content/dam/site/documents