Skip to main content
salvadorm142499
Level 3
fev. 22, 2016 8:20 PM UTC
Respondido

Does Apache Lucene suggestions work on OAK 1.0.22?

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/oak/jcr/query/SuggestTest.java 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.

Este tópico foi fechado para respostas.
smacdonald2008
Level 10
fev. 23, 2016 12:56 AM UTC

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. 

1 Resposta

smacdonald2008
Level 10
fev. 23, 2016 12:56 AM UTC

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. 

Traduzir