Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

How frequently lucene indexes? Is there any configuration for frequency ?

Avatar

Level 4

How frequently lucene indexes? Is there any configuration for frequency ? .please someone help me on this.

will it reindex everytime new content added to repository?

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi

Please have a look at this documentation :- http://jackrabbit.apache.org/oak/docs/query/lucene.html (Advanced search features)

//

@since Oak 1.1.17, 1.0.15

In order to use Lucene index to perform search suggestions, the index definition node (the one of type oak:QueryIndexDefinition) needs to have the compatVersion set to 2, then one or more property nodes, depending on use case, need to have the property useInSuggest set to true, such setting controls from which properties terms to be used for suggestions will be taken.

Once the above configuration has been done, by default, the Lucene suggester is updated every 10 minutes but that can be changed by setting the propertysuggestUpdateFrequencyMinutes in the index definition node to a different value.

Sample configuration for suggestions based on terms contained in jcr:description property.

/oak:index/lucene-suggest - jcr:primaryType = "oak:QueryIndexDefinition" - compatVersion = 2 - type = "lucene" - async = "async" - suggestUpdateFrequencyMinutes = 60 + indexRules - jcr:primaryType = "nt:unstructured" + nt:base + properties - jcr:primaryType = "nt:unstructured" + jcr:description - propertyIndex = true - analyzed = true - useInSuggest = true

@since Oak 1.3.12 the index Analyzer can be used to perform a have more fine grained suggestions, e.g. single words (whereas default suggest configuration returns entire property values, see [OAK-3407]: https://issues.apache.org/jira/browse/OAK-3407). Analyzed suggestions can be enabled by setting “suggestAnalyzed” property to true, e.g.:

/oak:index/lucene-suggest - jcr:primaryType = "oak:QueryIndexDefinition" - compatVersion = 2 - type = "lucene" - async = "async" - suggestUpdateFrequencyMinutes = 60 - suggestAnalyzed = true

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

3 Replies

Avatar

Correct answer by
Administrator

Hi

Please have a look at this documentation :- http://jackrabbit.apache.org/oak/docs/query/lucene.html (Advanced search features)

//

@since Oak 1.1.17, 1.0.15

In order to use Lucene index to perform search suggestions, the index definition node (the one of type oak:QueryIndexDefinition) needs to have the compatVersion set to 2, then one or more property nodes, depending on use case, need to have the property useInSuggest set to true, such setting controls from which properties terms to be used for suggestions will be taken.

Once the above configuration has been done, by default, the Lucene suggester is updated every 10 minutes but that can be changed by setting the propertysuggestUpdateFrequencyMinutes in the index definition node to a different value.

Sample configuration for suggestions based on terms contained in jcr:description property.

/oak:index/lucene-suggest - jcr:primaryType = "oak:QueryIndexDefinition" - compatVersion = 2 - type = "lucene" - async = "async" - suggestUpdateFrequencyMinutes = 60 + indexRules - jcr:primaryType = "nt:unstructured" + nt:base + properties - jcr:primaryType = "nt:unstructured" + jcr:description - propertyIndex = true - analyzed = true - useInSuggest = true

@since Oak 1.3.12 the index Analyzer can be used to perform a have more fine grained suggestions, e.g. single words (whereas default suggest configuration returns entire property values, see [OAK-3407]: https://issues.apache.org/jira/browse/OAK-3407). Analyzed suggestions can be enabled by setting “suggestAnalyzed” property to true, e.g.:

/oak:index/lucene-suggest - jcr:primaryType = "oak:QueryIndexDefinition" - compatVersion = 2 - type = "lucene" - async = "async" - suggestUpdateFrequencyMinutes = 60 - suggestAnalyzed = true

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 4

kautuksahni wrote...

Hi

Please have a look at this documentation :- http://jackrabbit.apache.org/oak/docs/query/lucene.html (Advanced search features)

//

@since Oak 1.1.17, 1.0.15

In order to use Lucene index to perform search suggestions, the index definition node (the one of type oak:QueryIndexDefinition) needs to have the compatVersion set to 2, then one or more property nodes, depending on use case, need to have the property useInSuggest set to true, such setting controls from which properties terms to be used for suggestions will be taken.

Once the above configuration has been done, by default, the Lucene suggester is updated every 10 minutes but that can be changed by setting the propertysuggestUpdateFrequencyMinutes in the index definition node to a different value.

Sample configuration for suggestions based on terms contained in jcr:description property.

/oak:index/lucene-suggest - jcr:primaryType = "oak:QueryIndexDefinition" - compatVersion = 2 - type = "lucene" - async = "async" - suggestUpdateFrequencyMinutes = 60 + indexRules - jcr:primaryType = "nt:unstructured" + nt:base + properties - jcr:primaryType = "nt:unstructured" + jcr:description - propertyIndex = true - analyzed = true - useInSuggest = true

@since Oak 1.3.12 the index Analyzer can be used to perform a have more fine grained suggestions, e.g. single words (whereas default suggest configuration returns entire property values, see [OAK-3407]: https://issues.apache.org/jira/browse/OAK-3407). Analyzed suggestions can be enabled by setting “suggestAnalyzed” property to true, e.g.:

/oak:index/lucene-suggest - jcr:primaryType = "oak:QueryIndexDefinition" - compatVersion = 2 - type = "lucene" - async = "async" - suggestUpdateFrequencyMinutes = 60 - suggestAnalyzed = true

I hope this would help you.

Thanks and Regards

Kautuk Sahni

 

I need information regarding lucene indexing frequency.please help me on the same.