Hello Guys,
I am trying to fetch auto suggestions with a specified custom index and getting null results.I really appreciate your thoughts on it.
SELECT [rep:suggest()] FROM [cq:Page] WHERE SUGGEST('tes') OPTION(INDEX NAME [testindex])
Tried lot of select queries but anything with specific index name giving 0 results but with OTB cqPageLucene giving results.
Views
Replies
Total Likes
hello @shan1234
Index selection in Native queries seems to have been deprecated. https://jackrabbit.apache.org/oak/docs/query/lucene.html
We should update cqPageLucene judiciously and use it.
Hello @aanchal-sikka ,Thank you for replying.
So when you have multiple customers on your aem instance's, how can we pollute the cqPageLucene with specifying included path and query path.Since many customers were using it, we wanted to create our own index and paths defined there.
So my other concern is auto suggestions are not giving expected results while using cqPageLucene when not defining included path and query path and they are giving more of search suggestions.
For example, consider a scenario where a user starts typing "ca" in a search input field:
Auto-suggestion: As the user types "ca," the auto-suggestion should show real-time suggestions like "car," "cat," and "camera," .
Search suggestion: If the user is interacting with a search bar, the search suggestion might display frequently searched terms like "camera accessories," "catering services," and "car rental,".
Views
Like
Replies