Is there a way to trigger full reindex? Can I just set the reindex
property on the index definition to true?

On 11 February 2015 at 18:17, Thomas Mueller <muel...@adobe.com> wrote:
> 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
>



-- 
-Tor

Reply via email to