How frequently lucene indexes? Is there any configuration for frequency ? | Community
Skip to main content
sureshy2015
Level 4
Dec 10, 2015 7:11 AM UTC
Solved

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

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.
kautuk_sahni
kautuk_sahniAccepted solution
Employee
Dec 10, 2015 7:29 AM UTC

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

3 replies

New Participant
Jun 1, 2017 10:52 AM UTC

True, Worked for us.

Translate
sureshy2015
Level 4
Dec 10, 2015 7:37 AM UTC

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.

Translate
kautuk_sahni
kautuk_sahniAccepted solution
Employee
Dec 10, 2015 7:29 AM UTC

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

Translate
Kautuk Sahni