You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2015/02/05 10:53:34 UTC

[jira] [Comment Edited] (OAK-2456) Periodic update of suggestor index from the full text index

    [ https://issues.apache.org/jira/browse/OAK-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14306929#comment-14306929 ] 

Tommaso Teofili edited comment on OAK-2456 at 2/5/15 9:52 AM:
--------------------------------------------------------------

added patch for periodic updates of the suggester on {{LuceneIndexEditorContext#closeWriter}}, that's controlled via the _suggestUpdateFrequencyMinutes_ property, default to 60 (1 hour).

Each time the suggester gets updated a node _:suggesterStatus_ gets a _lastUpdated_ property set to the current time, such a property is then checked every time {{LuceneIndexEditorContext#closeWriter}} is called, if that value + _$suggestUpdateFrequencyMinutes_ minutes is before the current time the update is performed (and the property updated again).

/cc [~chetanm]


was (Author: teofili):
added patch for periodic updates of the suggester on {{LuceneIndexEditorContext#closeWriter}}, that's controlled via the _suggestUpdateFrequencyMinutes_ property, default to 60 (1 hour).

Each time the suggester gets updated a node _:suggesterStatus_ gets a _lastUpdated_ property set to the current time, such a property is then checked every time {{LuceneIndexEditorContext#closeWriter}} is called, if that value + _$suggestUpdateFrequencyMinutes_ minutes is before the current time the update is performed (and the property updated again).

> Periodic update of suggestor index from the full text index
> -----------------------------------------------------------
>
>                 Key: OAK-2456
>                 URL: https://issues.apache.org/jira/browse/OAK-2456
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: oak-lucene
>            Reporter: Chetan Mehrotra
>             Fix For: 1.2
>
>         Attachments: OAK-2456.0.patch
>
>
> Suggestor index would be built up from various source of data. For the start it would be build up with the fulltext index of parent Lucene index. As the parent index gets updated the Suggestor index would need to be kept in sync
> There are two approaches 
> # Periodic scheduled job which would query all {{QueryIndexDefinition}} node of type {{lucene}} and then perform index update
> # Update the index as part of async index update 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)