P.hits=selective in querybuilder
I am using querybuilder API in a service. I want only certain properties in result instead of complete properties on that node. So I used p.hits=selected. But in result its still giving all properties.
Below is query used.
queryMap.put(QUERY_PATH, path);
queryMap.put(NODE_NAME, "product");
queryMap.put(LIMIT, "-1");
queryMap.put("p.hits","selective");
queryMap.put("p.properties","categoryName");
Below is the code to retrieve result.
ValueMap valueMap = hit.getProperties();
String jsonStr = gson.toJson(valueMap);
After running query, in jsonStr I could see all properties instead of what given in p.properties.
@kiran_vedantam @Arun_Patidar @SantoshSai @DEBAL_DAS @fanindras @lukasz-m @Pulkit_Jain_