[ https://issues.apache.org/jira/browse/OAK-8114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vikas Saurabh resolved OAK-8114. -------------------------------- Resolution: Fixed Fix Version/s: 1.11.0 1.12 Committed changes from [~nitigup]'s [PR|https://github.com/apache/jackrabbit-oak/pull/122] on trunk at [r1855522|https://svn.apache.org/r1855522]. I've added a few minor changes on top: * check refresh only when reindex isn't required * we had forgotten that index tags also don't require reindexing Thanks [~nitigup] for the contribution. We can take up to make oak-search::IndexDefinitionBuilder in a separate issue (where we should probably extend oak-lucene one from that of oak-search). > IndexDefinitionBuilder should be smarter when to reindex while updating a > definition > ------------------------------------------------------------------------------------ > > Key: OAK-8114 > URL: https://issues.apache.org/jira/browse/OAK-8114 > Project: Jackrabbit Oak > Issue Type: Improvement > Components: lucene, search > Reporter: Vikas Saurabh > Assignee: Vikas Saurabh > Priority: Major > Fix For: 1.12, 1.11.0 > > Attachments: OAK-8114_1.patch, OAK-8114_2.patch > > > {{IndexDefinitionBuilder}} currently sets reindex flag while building an > index definition if there is a difference in existing def v/s what it builds. > The only place it acts smarter is while setting up nrt or sync flag. There > are quite a few properties which only affect querying or cost-estimation and > don't imply a change in indexed data. For such cases, simply setting > {{refresh=true}} should suffice. -- This message was sent by Atlassian JIRA (v7.6.3#76005)