Hello all,
Below is the query that i'm using to get certain paths that is available from productData property under a node. I'm trying to have a propertyIndex for this property so that i can reduce my traverse time during query execution.
Map<String, String> map = new HashMap<String, String>();
// create query description as hash map (simplest way, same as form post)
map.put("path", "/content/myproject");
map.put("type", "nt:unstructured");
map.put("1_property", "productData");
map.put("1_property.value", "%"+productId);
map.put("1_property.operation", "like");
Below is the propertyIndex that i have created under this path /oak:index/myIndex
<myIndex
jcr:primaryType="oak:QueryIndexDefinition"
includedPaths="[/content/myproject/]"
propertyNames="{Name}[productData]"
reindex="{Boolean}false"
reindexCount="{Long}7"
type="property"/>
I'm trying to check this indexing using this sql-2 query but by someway its not getting indexed. Kindly suggest me.
select * from [nt:unstructured] as a where [productData] like '%_content_myproject_aplivejajp-' Arun Patidar smacdonald2008 gauravb41175071 deepak3344 Ratna Kumar