Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

communities deafult search and user configuration

Avatar

Level 1
Hi,
 
I have some misunderstandings on some AEM communities functions (AEM 6.1, cq-6.1.0-hotfix-6640-1.4, AEM-6.1-Communities-Feature-Pack-4-1.8).
 
1. Saw that the search gives the user the chance to select the context ( ).
If the author is selected, no results are returned, even if there is a blog entry with the subject or body same as the search keyword.
So,  AEM must be putting an "and" condition with the "author". Is this normal behavior ?
The two criterias in the request:
 author_display_name like 'test1', userIdentifier eq 'test1'
 
It will be also a good advantage if I knew where the above  are stored in JCR (publisher), because I don t remember completing something like " author_display_name".
 
2. Configured the tunnel with the publisher for community users.
Now , when try to access http://localhost:4502/communities/members, I get something like :
 
08.08.2016 17:13:54.992 ​*ERROR*​ [0:0:0:0:0:0:0:1 [1470665634598] GET /communities/members HTTP/1.1] com.adobe.cq.social.user.impl.transport.TunnelSocialComponent Error parsing JSON response.
org.apache.sling.commons.json.JSONException: A JSONObject text must begin with '{' at character 0 of

Thanks,

Razvan

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hi Razvan,

I'm working on some information to help developers with the Search feature in Communities.  It's not quite yet ready, but I'll reply here when it is.

At this point, you should have AEM 6.1 + SP1 + Communities FP4 (1.8.386) as described on https://docs.adobe.com/docs/en/aem/6-1/deploy/communities.html  - Please verify that you're up-to-date and then try the tunnel service again.

Another question is : What SRP did you choose?  See Storage Resource Provider (SRP) Overview.

If you're using the default choice, you're using JSRP, which means any UGC entered on publish will NOT be visible from author.

As for the query...

To specify OR use one filter with comma separated values :

    filter=name eq 'Jennifer',name eq 'Jen'

To specify AND use multiple filters  :
    filter = name eq 'Jackson'&filter=message eq 'testing'

The default implementation of the Search component uses this syntax as can be seen in the URL that opens the Search Results page in the Community Components guide (i.e., http://localhost:4503/content/community-components/en/search.html).

- JK

View solution in original post

3 Replies

Avatar

Correct answer by
Level 9

Hi Razvan,

I'm working on some information to help developers with the Search feature in Communities.  It's not quite yet ready, but I'll reply here when it is.

At this point, you should have AEM 6.1 + SP1 + Communities FP4 (1.8.386) as described on https://docs.adobe.com/docs/en/aem/6-1/deploy/communities.html  - Please verify that you're up-to-date and then try the tunnel service again.

Another question is : What SRP did you choose?  See Storage Resource Provider (SRP) Overview.

If you're using the default choice, you're using JSRP, which means any UGC entered on publish will NOT be visible from author.

As for the query...

To specify OR use one filter with comma separated values :

    filter=name eq 'Jennifer',name eq 'Jen'

To specify AND use multiple filters  :
    filter = name eq 'Jackson'&filter=message eq 'testing'

The default implementation of the Search component uses this syntax as can be seen in the URL that opens the Search Results page in the Community Components guide (i.e., http://localhost:4503/content/community-components/en/search.html).

- JK

Avatar

Level 9

Hi,

New documentation is here :

Search Essentials

Let me know whether or not this is helpful.

- JK

Avatar

Level 9

Did you figure out your problem with the tunnel service?  It has to be enabled on author, not publish.

Please ensure you have the latest service pack for AEM 6.1 and the latest feature pack for Communities.  Currently they are SP1 and FP4.  See Deploying Communities.

- JK