How frequently lucene indexes? Is there any configuration for frequency ? | Community
Skip to main content
sureshy2015
Level 4
December 10, 2015
Solved

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

  • December 10, 2015
  • 3 replies
  • 1987 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

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

3 replies

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
December 10, 2015

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
sureshy2015
Level 4
December 10, 2015

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.

June 1, 2017

True, Worked for us.