Query to search All keywords attached to the page | Community
Skip to main content
Siva_Sogalapalli
New Participant
Jun 20, 2017 4:23 PM UTC
Solved

Query to search All keywords attached to the page

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
sharoon23Accepted solution
Employee
Jun 21, 2017 7:43 AM UTC

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.

3 replies

sharoon23Accepted solution
Employee
Jun 21, 2017 7:43 AM UTC

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.

Translate
Siva_Sogalapalli
New Participant
Jun 21, 2017 5:54 AM UTC

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

Translate
smacdonald2008
Level 10
Jun 20, 2017 7:09 PM UTC

Are you using QueryBuilder API to search?

Translate