Hi,
We have an xpath query for xml addon with the below and want to create a new oak index
/jcr:root/content/app/us/en/productguide_Product_Reference_Guide//*[(jcr:contains(., 'battery'))] order by @jcr:score descending
I checked on https://oakutils.appspot.com/generate/index
It showed the below .
<?xml version="1.0" encoding="UTF-8"?><jcr:root xmlns:nt=http://www.jcp.org/jcr/nt/1.0 xmlns:jcr=http://www.jcp.org/jcr/1.0>
<myIndex compatVersion="{Long}2" async="async" jcr:primaryType="oak:QueryIndexDefinition" evaluatePathRestrictions="{Boolean}true" type="lucene">
<indexRules jcr:primaryType="nt:unstructured">
<nt:base jcr:primaryType="nt:unstructured">
<properties jcr:primaryType="nt:unstructured"/>
</nt:base>
</indexRules>
</myIndex>
</jcr:root>
Is it good practice to index the nt base like above without any named properties .Please suggest what could be alternative.
Note:- we are using the Adobe provided xml addon OOTB .
Regards,
Srinivas