Vikas Saurabh created OAK-1952:
----------------------------------

             Summary: [Query] There should be a way to sort results from query 
according number of properties/predicates match
                 Key: OAK-1952
                 URL: https://issues.apache.org/jira/browse/OAK-1952
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: query
    Affects Versions: 1.0
            Reporter: Vikas Saurabh


Use Case: Query for value of propertyA for valueA OR valueB OR valueC and sort 
it according to number of matches (ie a node matching all 3 should have higher 
score than those mathing 1 or 2 of those).

Currently, the only way is to fetch the result from OR query in application and 
then post process it. While this is fine if application is interested in all 
the results. But, if the query wants to fetch a page of that result set (result 
N to result M), then the application still needs to fetch all nodes while the 
platform can (possibly) optimize this internally.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to