Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Query to search All keywords attached to the page

sivaprasadreddy
Level 4
Level 4

Hi All, We've added one property called "jcr:keywords" in page properties dialog. We will be adding keywords for each page. These keywords will be used for search specifically for 'search suggestions'.  Now, we need to write query to show all keywords in search suggestions. Also, I've followed [1] and created Lucene-suggest index node. [1]: http://jackrabbit.apache.org/oak/docs/query/lucene.html Quick help would be more appreciated.

1 Accepted Solution
sharoon23
Correct answer by
Employee
Employee

Hi Sivaprasad,

You want help designing the query to search for keywords? You can use QueryBuilderAPI documentation to design the query. What query will be eventually used will depend on your use case and node structure.

View solution in original post

3 Replies
smacdonald2008
Level 10
Level 10

Are you using QueryBuilder API to search?

sivaprasadreddy
Level 4
Level 4

Yes Smacdonald. I'm using QueryBuilder API. Also, please let me know if there is any other better approach.

sharoon23
Correct answer by
Employee
Employee

Hi Sivaprasad,

You want help designing the query to search for keywords? You can use QueryBuilderAPI documentation to design the query. What query will be eventually used will depend on your use case and node structure.

View solution in original post