Expand my Community achievements bar.

SOLVED

Query Builder Full Text vs Property

Avatar

Level 4

Hello Everyone,

I am using query builder api for searching in the crx tree. I am able to successfully get the result using "fulltext" when i search against any of my custom properties.But when I use "fulltext" to search against "jcr:lastModifiedBy" it doesn't work , even "fulltext" works without even mentioning the property name against my custom properties. 

I am not able to understand the difference b/w using "fulltext" and "property" predicates .Can some one pleases explain me .

And do we have any restrictions with "fulltext"  search?

 

Thanks & Regards,

Krishna

1 Accepted Solution

Avatar

Correct answer by
Level 10
3 Replies

Avatar

Correct answer by
Level 10

THis is explained in this AEM documentation topic - and has examples too:

http://dev.day.com/docs/en/cq/current/dam/customizing_and_extendingcq5dam/query_builder.html

Avatar

Level 4

Thanks Scott,

I had went through that documentation earlier but couldn't find an answer .

Krishna

Avatar

Employee

Hi

You can find more info here about fulltext: http://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/day/cq/search/eval/FulltextPredicateEv...

Fulltext will look everywhere.

If you want to look for a specific "jcr:lastModifiedBy", you should do something like this:

property=jcr:lastModifiedBy
property.value=author