I'm trying to do a search using the searchManager search method and retrieve custom attrbute at the same time. I tried using the syntax used in the search query ( [CATEGORY_CLASS_NAME:ATTRI_NAME] i.e: [49873-333443-334:CUSTOM_31928]
) and passing this as an AttributeRequest, but with no results.
Can someone tell me how they do this ?
I found out that by using the following AttributeRequest, I can obtain ALL the custom attributes. But is there a way to filter and ask for specifics ?
AttributeRequest attriMeta = new AttributeRequest;
attriMeta = ClientUtils.newAttributeRequest( Attributes.CUSTOM_ALL );
attrs = ClientUtils.newAttributeRequest( Attributes.CATEGORIES, attriMeta );
and then search( ..,.., attrs );