jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rishabh Maurya (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-2330) Field boost not working if the property for indexing is picked using aggregate index rules
Date Tue, 09 Dec 2014 14:02:12 GMT
Rishabh Maurya created OAK-2330:
-----------------------------------

             Summary: Field boost not working if the property for indexing is picked using
aggregate index rules
                 Key: OAK-2330
                 URL: https://issues.apache.org/jira/browse/OAK-2330
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: oak-lucene
    Affects Versions: 1.1.2, 1.0.8
            Reporter: Rishabh Maurya
            Priority: Minor


For below index definition - 
{code}
{  
   jcr:primaryType:"oak:QueryIndexDefinition",
   compatVersion:2,
   type:"lucene",
   async:"async",
   reindex:false,
   reindexCount:12,
   aggregates:{  
      jcr:primaryType:"oak:Unstructured",
      app:Asset:{  
         jcr:primaryType:"oak:Unstructured",
         include0:{  
            jcr:primaryType:"oak:Unstructured",
            path:"jcr:content/metadata/*"
         }
      }
   },
   indexRules:{  
      jcr:primaryType:"nt:unstructured",
      app:Asset:{  
         jcr:primaryType:"nt:unstructured",
         properties:{  
            jcr:primaryType:"nt:unstructured",
            foo:{  
               jcr:primaryType:"nt:unstructured",
               nodeScopeIndex:true,
               ordered:true,
               propertyIndex:true,
               name:"jcr:content/metadata/foo",
               type:"Long",
               boost:3,
               nodeName:"foo"
            }
         }
      }
   }
}
{code}

On executing query of form - 

{code}
//element(*, app:Asset) 
[
    jcr:contains(., 'bar' )
]
{code}

should boost the results containing property - 'jcr:content/metadata/foo', but its ignoring
index time boosting for it.





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

Mime
View raw message