AEM 6.2 suggest query | Community
Skip to main content
yuvrajb70925184
June 1, 2017
Question

AEM 6.2 suggest query

  • June 1, 2017
  • 2 replies
  • 2216 views

Hi Team,

I am able to get the suggestion for the keyword using the following query

SELECT [rep:suggest()] as suggestion FROM [cq:Page] as s WHERE ISDESCENDANTNODE(s,'/content') AND suggest('geomettrix')

However I want the node path of the results.

So the above query provide me the page title only but not the path of the traversed nodes.

Note : I have indexed the jcr:title with useInsuggest property.

Can anybody please help me with it.

Thanks

Yuvraj

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

2 replies

MC_Stuff
Level 10
June 1, 2017

Hi Yuvraj,

Is column selector specify multiple columns and verify.

SELECT [rep:suggest()] as suggestion, [jcr:path] FROM [cq:Page] as s WHERE ISDESCENDANTNODE(s,'/content') AND suggest('geomettrix')

Thanks,

yuvrajb70925184
June 1, 2017

Thanks for the reply MC Stuff.

I tried with multiple selector as well but it do not gives jcr:path and the value is blank.