Skip to main content
Sep 12, 2017 6:28 PM UTC
Solved

ugcsearch not working for custom property for a blog post

Hi All,

i have added a custom field to Journal component, and the property is added to UGC node,

i have written an API to search UGC nodes for a property using ugcsearch.

UgcSearch ugcSearch = resourceResolver.adaptTo(UgcSearch.class);

UgcFilter filter= new UgcFilter();

SetConstraint constraint=  new SetConstraint("testId", value); value="sample text here"

filter.addConstraint(constraint);

But result is zero, it's can't lookup custom properties in UGC node.

any one have Idea on communities how to search custom field,

Thanks

Raj

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
neeravAccepted solution
Adobe Employee
Sep 13, 2017 4:28 PM UTC

Please see https://docs.adobe.com/docs/en/aem/6-3/develop/communities/essentials/search.html​. Look for section "Naming of Custom Properties"

Regards,

Neerav

3 replies

kautuk_sahni
Level 9
Sep 13, 2017 9:21 AM UTC

Let me ask some internal experts on this topic to have a look at this one.

~kautuk

Translate
Kautuk Sahni
neeravAdobe EmployeeAccepted solution
Adobe Employee
Sep 13, 2017 4:28 PM UTC

Please see https://docs.adobe.com/docs/en/aem/6-3/develop/communities/essentials/search.html​. Look for section "Naming of Custom Properties"

Regards,

Neerav

Translate
rajkumarsamala
Level 2
Sep 20, 2017 4:31 PM UTC

Thanks for sharing document Neerava, i updated my custom property by adding suffix "_s".

This will resolved my issue, Thanks for Help.

Thanks,

Raj

Translate