issues with SearchIndexSuggestionExtractor API - AEM 6.0 | Community
Skip to main content
ARUN123123
New Participant
October 16, 2015
Solved

issues with SearchIndexSuggestionExtractor API - AEM 6.0

  • October 16, 2015
  • 5 replies
  • 1029 views

Hi,

I am trying to create a suggestion Index using the below API call.
SearchIndexSuggestionExtractor.buildIndex()
Due to changes to QueryManagerImpl.class in Jackrabbit Oak starting AEM 6 the above API doesn't work, also this may be due to the change in workspace indexing mechanism. I have attached the stack trace of the error log. 

Also the built in OOTB component(/libs/cq/search/content/suggest/admin) doesn't work and throws the same exception trace. 

Please let me know if there is an alternate API or is there any hot fix available for this.

Thanks,

Arun

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

surely 1 is not correct.   It is some what like 2 but I do not have exact syntax for lucene since I implemented this feature for AEM-solr integration.  I need to do some research for lucene if you are unsuccessfully please file a support ticket so that we can get answer for you.

5 replies

Sham_HC
New Participant
October 16, 2015

With AEM6 it does not work. The alternative is configure use in suggest [1]  & then use native query.  OOB sample is planned for next release.

[1]   http://jackrabbit.apache.org/oak/docs/query/lucene.html#Suggestions

ARUN123123
New Participant
October 16, 2015

Thanks Sham for your response, I will take a look.

-Arun

ARUN123123
New Participant
October 16, 2015

Hi Sham,

I am trying to use the below oak queries after configuring the index as suggested in the above link and I am not getting any response. Not sure whether my query is valid or not. Can you please validate the below queries. 

1) select rep:suggest from nt:base where jcr:path like '/content' AND SUGGEST('SEARCH_TERM')

2) select [rep:suggest] from [nt:base] where native('lucene', 'suggest?term=SEARCH_TERM') AND [jcr:path] like '/'

Note: I am using AEM 6.0 SP2 and I also installed hotfix package recently provided for AEM 6.0 which upgrades to oak 1.0.18.

Thanks,

Arun

Sham_HC
Sham_HCAccepted solution
New Participant
October 16, 2015

surely 1 is not correct.   It is some what like 2 but I do not have exact syntax for lucene since I implemented this feature for AEM-solr integration.  I need to do some research for lucene if you are unsuccessfully please file a support ticket so that we can get answer for you.

smacdonald2008
New Participant
October 16, 2015

If OOTB components do not work - looks like you encountered a bug - please open an AEM ticket here: 

https://helpx.adobe.com/marketing-cloud/experience-manager.html