Expand my Community achievements bar.

SOLVED

Does Apache Lucene suggestions work on OAK 1.0.22?

Avatar

Level 3

Hi all,

Did anybody make Apache Lucene suggestions work on AEM 6.0 with Oak 1.0.22 version?

I have follow this link to create the index (which is quite interesting) and it seems my AEM instance is recognizing the lucene-index:

http://www.aemstuff.com/blogs/feb/aemindexcheatsheat.html

And taken from https://github.com/apache/jackrabbit-oak/blob/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/o... the query is: 

         
String sql = "SELECT [rep:suggest()] FROM nt:base WHERE [jcr:path] = '/' AND SUGGEST('in 201')";
 

I got only one suggestion when the propertyName was 'description' but if I set propertyName to 'foo' with value 'ther is in 201 here'. It does not work.

Any previous experience with something like that?

Thanks, Salva.

1 Accepted Solution

Avatar

Correct answer by
Level 10

I recommend that you watch our GEMs session on Lucene Indexes and other topics that will provide a lot of details. See: http://dev.day.com/gems

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

I recommend that you watch our GEMs session on Lucene Indexes and other topics that will provide a lot of details. See: http://dev.day.com/gems