Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

How to exclude a property from DAM asset full text search

Avatar

Employee

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.

niteshgupta92_0-1678956526915.png

 

 

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 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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