We have created a custom index with multiple market paths added in "includedPaths" property. When we are using SUGGEST query, we are getting suggestion results only for few markets (though other markets also has the relevant content).
We found that, this is because, index returns only top 10 suggestion results and filters for the subtree query (Jackrabbit Oak – Lucene Index ). Is there any way to change this configuration to get more suggestion results? Is there any configuration for this feature?
Suggest query used:
SELECT [rep:suggest()] as suggestion FROM [cq:Page] as s WHERE (ISDESCENDANTNODE(s,'/content/project/market_1')) AND suggest('ins')
Views
Replies
Total Likes
Can you share the JSON serialization of your index definition? /oak:index/yourindex.-1.json? What Oak version are you using?
thanks,
Jörg
Views
Replies
Total Likes
Hi jorg ,
we are using the Apache Jackrabbit Oak 1.4.11 for AEM 6.2, please find the following JSON for the index serialization
"jcr:primaryType":"oak:QueryIndexDefinition",
"compatVersion":2,
"includedPaths":[
"/content/us",
"/content/bd",
"/content/uk",
"/content/mx",
"/content/ar",
"/content/au",
"/content/cl",
"/content/provida",
"/content/uy",
"/content/br",
"/content/tr",
"/content/it",
],
"name":"Page Index",
"type":"lucene",
"async":"async",
"codec":"Lucene46",
"evaluatePathRestrictions":true,
"reindex":false,
"reindexCount":28,
"suggestion":{
"jcr:primaryType":"nt:unstructured",
"suggestUpdateFrequencyMinutes":1
},
"aggregates":{
"jcr:primaryType":"nt:unstructured",
"cq:Page":{
"jcr:primaryType":"nt:unstructured",
"include0":{
"jcr:primaryType":"nt:unstructured",
"relativeNode":true,
"path":"jcr:content"
}
},
"cq:PageContent":{
"jcr:primaryType":"nt:unstructured",
"include0":{
"jcr:primaryType":"nt:unstructured",
"relativeNode":false,
"path":"*"
},
"include1":{
"jcr:primaryType":"nt:unstructured",
"relativeNode":false,
"path":"*/*"
},
"include2":{
"jcr:primaryType":"nt:unstructured",
"relativeNode":false,
"path":"*/*/*"
},
"include3":{
"jcr:primaryType":"nt:unstructured",
"relativeNode":false,
"path":"*/*/*/*"
},
"include4":{
"jcr:primaryType":"nt:unstructured",
"relativeNode":false,
"path":"*/*/*/*/*"
}
}
},
"facets":{
"jcr:primaryType":"nt:unstructured"
},
"indexRules":{
"jcr:primaryType":"nt:unstructured",
"cq:Page":{
"jcr:primaryType":"nt:unstructured",
"inherited":true,
"includePropertyTypes":[
"String",
"Binary"
],
"indexNodeName":true,
"properties":{
"jcr:primaryType":"nt:unstructured",
"jcr:title":{
"jcr:primaryType":"nt:unstructured",
"nodeScopeIndex":true,
"inherited":true,
"useInSuggest":true,
"ordered":false,
"propertyIndex":true,
"analyzed":true,
"useInSpellcheck":true,
"name":"jcr:content/jcr:title",
"type":"String",
"boost":1,
"checkNotNull":true
},
"jcr:description":{
"jcr:primaryType":"nt:unstructured",
"nodeScopeIndex":true,
"inherited":true,
"useInSuggest":true,
"ordered":false,
"propertyIndex":true,
"analyzed":true,
"name":"jcr:content/jcr:description",
"type":"String",
"boost":2
},
"cq:tags":{
"jcr:primaryType":"nt:unstructured",
"nodeScopeIndex":true,
"inherited":true,
"useInSuggest":false,
"ordered":false,
"propertyIndex":true,
"analyzed":true,
"name":"jcr:content/cq:tags",
"boost":3
},
"pageTitle":{
"jcr:primaryType":"nt:unstructured",
"nodeScopeIndex":true,
"ordered":false,
"propertyIndex":true,
"analyzed":true,
"useInSpellcheck":true,
"name":"jcr:content/pageTitle",
"type":"String",
"boost":4,
"checkNotNull":true
},
"navTitle":{
"jcr:primaryType":"nt:unstructured",
"nodeScopeIndex":true,
"ordered":false,
"propertyIndex":true,
"analyzed":true,
"name":"jcr:content/navTitle",
"type":"String"
},
"cqLastModified":{
"jcr:primaryType":"nt:unstructured",
"ordered":false,
"propertyIndex":true,
"name":"jcr:content/cq:lastModified",
"type":"Date"
},
"subtitle":{
"jcr:primaryType":"nt:unstructured",
"nodeScopeIndex":true,
"inherited":true,
"useInSuggest":true,
"ordered":false,
"propertyIndex":true,
"analyzed":false,
"useInExcerpt":true,
"name":"jcr:content/subtitle",
"type":"String"
}
}
}
}
}
Views
Replies
Total Likes
Looks ok in the first place. But Oak 1.4.11 is not a recent version, have you checked the Oak JIRA already? You might want to try this search:
(it checks all versions more recent than 1.4.11). In case you don't find anything which looks relevant, I could ask on the Oak user list. Additionally you might want to raise a Daycare ticket. Also have you tried do to the request using a more recent Oak version (the currently latest version of the 1.4 branch is 1.4.22)?
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Like
Replies
Views
Likes
Replies