It looks like you are trying to make a join search for title "cost" OR description "cost" from a page under path=/content/some-path
i.e. the XPath query should be something like:
/jcr:root/content/some-path//element(*, cq:Page)
[
(jcr:contains(jcr:content/@jcr:title, '*cost*')
or jcr:contains(jcr:content/@jcr:description, '*cost*'))
]
order by @jcr:score
As such the query wil use OOTB /oak:index/cqPageLucene/indexRules/cq:Page. A correct syntax for a query builder predicate should be:
type=cq:Page
path=/content/some-path
group.p.or=true
group.1_fulltext.relPath=jcr:content/@jcr:title
group.1_fulltext=*cost*
group.2_fulltext.relPath=jcr:content/@jcr:description
group.2_fulltext=*cost*
p.limit=-1
p.offset=0
orderby.sort=asc
orderby=@jcr:score
Note, that OOTB cqPageLucene has only a title property:
/oak:index/cqPageLucene/indexRules/cq:Page/properties/jcrTitle
If you are querying for a description property you might want to edit the cqPageLucene by adding "description"
![index.png]()