Re: index selection when 0 or 1 property clause (or sort clause) matches

2017-05-16 Thread Alvaro Cabrerizo
Hello, Using the entryCount was our first option, but we decided to modify costPerEntry instead. Basically these are the reasons: - It can only be used to reduce the cost. It can't be used to increase the index cost as the index-planner selects Math.min(definition.getEntryCount(),

Re: upgrade repository structure with backward-incompatible changes

2017-05-16 Thread Marco Piovesana
Hi Tomek, yes I'm trying to upgrade within the same repository type but I can decide weather to migrate the repository or not based on what makes the upgrade easier. The CommitHooks can only be used inside an upgrade to a new repository? What is the suggested way to apply backward-incompatible

Re: index selection when 0 or 1 property clause (or sort clause) matches

2017-05-16 Thread Chetan Mehrotra
Having same asset indexed twice would add overhead in terms of async indexing speed and space consumption by index. So if possible avoid such a setup > We could assume that we always add a path restriction, but I'm not sure how > index movement can help. I mean, both indexes contains documents

Re: index selection when 0 or 1 property clause (or sort clause) matches

2017-05-16 Thread Alvaro Cabrerizo
Hello, I'm not sure about the text extraction, as other team is in charge of it. But the repository is quite big. We could assume that we always add a path restriction, but I'm not sure how index movement can help. I mean, both indexes contains documents under /nodeA/nodeB/nodeC so any query

Re: index selection when 0 or 1 property clause (or sort clause) matches

2017-05-16 Thread Chetan Mehrotra
> - Rebuilding Assets index takes several days Is the time spent in text extraction? Would the code always specify path restriction in the queries for my:Asset? If yes then you can just move the index definition under respective paths Would that be an option Chetan Mehrotra On Tue, May 16,

Re: index selection when 0 or 1 property clause (or sort clause) matches

2017-05-16 Thread Alvaro Cabrerizo
Hello, Yes, there are some reasons: - One team is working with all the assets under /nodeA/nodeB - Other team only works with an small subset, only assets under /nodeA/node/nodeC - Both teams have different searching requirements - Rebuilding Assets index takes several days -

Re: index selection when 0 or 1 property clause (or sort clause) matches

2017-05-16 Thread Chetan Mehrotra
Any reason for having separate definitions for same nodetype? Chetan Mehrotra On Tue, May 16, 2017 at 7:52 PM, Alvaro Cabrerizo wrote: > Hello, > > Actually, it is OAK-5449. Sorry, I hadn't seen it. > > On the other hand, having these two definitions under oak:index (just a

Re: index selection when 0 or 1 property clause (or sort clause) matches

2017-05-16 Thread Alvaro Cabrerizo
Hello, Actually, it is OAK-5449. Sorry, I hadn't seen it. On the other hand, having these two definitions under oak:index (just a sketch): - Asset - evaluatePathRestrictions="true" - type="lucene" - includedPath="/nodeA/nodeB" - indexRules - my:Asset -

Re: upgrade repository structure with backward-incompatible changes

2017-05-16 Thread Tomek Rekawek
Hi Marco, the main purpose of the oak-upgrade is to migrate a Jackrabbit 2 / CRX2 repository into Oak or to migrate one Oak node store (eg. segment) to another (like Mongo). On the other hand, it’s not a good choice to use it for the application upgrades within the same repository type. You

Re: index selection when 0 or 1 property clause (or sort clause) matches

2017-05-16 Thread Chetan Mehrotra
This looks similar to OAK-5449 (not yet fixed). Can you give a sample index definition there and some usecase details which is leading to ambiguity in index selection. In general index selection should not have multiple competing index definitions hence interested in knowing setup details Chetan

Possible memory leak

2017-05-16 Thread Barry d'Hoine
Hello guys, Our server is going out of memory due to insufficient metaspace. When analysing the heapdump that was created we also noticed in the Eclipse Memory Analyser that the is a possible memory leak suspect in org.apache.jackrabbit.oak.cache.CacheLIRS The information shown by the

index selection when 0 or 1 property clause (or sort clause) matches

2017-05-16 Thread Alvaro Cabrerizo
Hello, I've been checking the code of the IndexPlanner (apache OAK 1.4.1) and I was surprised because the costPerEntryFactor remains 1 in both cases: - when no property indexed or sorted match any property clause or sort clause from the query - when only an indexed or sorted property