OAK-2119 - AggregateIndex should support AdvanceQueryIndex

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1630055 13f79535-47bb-0310-9956-ffa450edef68
OAK-2122 - Make LuceneIndex implement AdvanceQueryIndex

Implemented AdvanceFulltextQueryIndex. The cost calculation is currently done in a naive way where it sets the number of entries to 0 and then provide a cost per execution thus effective cost is same as the one returned earlier.

Also moved getRelativePaths with no change in its logic

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1630056 13f79535-47bb-0310-9956-ffa450edef68
OAK-2168 - Make SolrIndex implement AdvanceQueryIndex

Disabling the wrapping for now as SolrIndex does not support AggregateIndex requirements for now.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1630057 13f79535-47bb-0310-9956-ffa450edef68
OAK-2167: Last revision recover incomplete

Add currently ignored test case.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1630061 13f79535-47bb-0310-9956-ffa450edef68