Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

sureshy2015
Level 4
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
kautuk_sahni
Correct answer by
Community Manager
Community Manager

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

View solution in original post

3 Replies
kautuk_sahni
Correct answer by
Community Manager
Community Manager

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

View solution in original post

sureshy2015
Level 4
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.