Hi,

This should work (full-text queries work for me). Maybe you need to wait
for the Lucene index to be updated (it is asynchronous)? Maybe you want to
double-check with the documentation at
http://jackrabbit.apache.org/oak/docs/query/lucene.html

Regards,
Thomas




On 10/02/15 14:59, "Torgeir Veimo" <torgeir.ve...@gmail.com> wrote:

>My lucene full-text index is configured as per examples as;
>
>        NodeBuilder index = IndexUtils.getOrCreateOakIndex(builder);
>        index.child("lucene")
>                .setProperty("jcr:primaryType",
>"oak:QueryIndexDefinition", Type.NAME)
>                .setProperty("type", "lucene")
>                .setProperty("async", "async")
>
>.setProperty(PropertyStates.createProperty("includePropertyTypes",
>ImmutableSet.of(PropertyType.TYPENAME_STRING,
>PropertyType.TYPENAME_BINARY), Type.STRINGS))
>
>.setProperty(PropertyStates.createProperty("excludePropertyNames",
>ImmutableSet.of("jcr:createdBy", "jcr:lastModifiedBy"), Type.STRINGS))
>                .setProperty("reindex", true);
>
>But it doesn't provide any results. From my understanding, this
>definition will index any STRING and BINARY property type,
>
>Trying a query like //*[jcr:contains(., 'test')] doesn't work, even
>though I've got nodes with test in string properties.
>
>-- 
>-Tor

Reply via email to