How to exclude a property from DAM asset full text search | Community
Skip to main content
Adobe Employee
March 16, 2023
Solved

How to exclude a property from DAM asset full text search

  • March 16, 2023
  • 1 reply
  • 471 views

Hi,

 

I am using a query for DAM Asset full text search as below

 

type=dam:Asset

path=/content/dam/we-retail

fulltext=application

fulltext.relPath=jcr:content/renditions/original/jcr:content

 

This application keyword is part of the documents which I am searching for however, this is also present as mimeType property on "jcr:content/renditions/original/jcr:content" node due to which I am getting much more results from expectations.

 

 

Is there a way to ignore this mimeType property while performing the search?


Note- I tried the option of excluding the property as below but with that, I don't get any results.

"property", "jcr:mimeType"
"property.operation", "not"

 

Any suggestions would be really helpful. Thanks in advance.

 

@arunpatidar  @veenavikraman 

 

 

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 arunpatidar

Hi @niteshgupta92 

what do you mean by ignoring the mimeType property?

 

With the conditions that you provided, it will check if mmeType does not exists

 

type=dam:Asset path=/content/dam/we-retail fulltext=application fulltext.relPath=jcr:content/renditions/original/jcr:content property=jcr:mimeType property.operation=not

 

/jcr:root/content/dam/we-retail//element(*, dam:Asset) [ (jcr:contains(jcr:content/renditions/original/jcr:content, 'application') and not(@jcr:mimeType)) ]

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
March 16, 2023

Hi @niteshgupta92 

what do you mean by ignoring the mimeType property?

 

With the conditions that you provided, it will check if mmeType does not exists

 

type=dam:Asset path=/content/dam/we-retail fulltext=application fulltext.relPath=jcr:content/renditions/original/jcr:content property=jcr:mimeType property.operation=not

 

/jcr:root/content/dam/we-retail//element(*, dam:Asset) [ (jcr:contains(jcr:content/renditions/original/jcr:content, 'application') and not(@jcr:mimeType)) ]
Arun Patidar