Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2330

Field boost not working if the property for indexing is picked using aggregate index rules

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.8, 1.1.2
    • 1.0.9, 1.1.4
    • lucene
    • None

    Description

      For below index definition -

      {  
         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"
                  }
               }
            }
         }
      }
      

      On executing query of form -

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

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

      Attachments

        Activity

          People

            chetanm Chetan Mehrotra
            maurya Rishabh Maurya
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: