Hi all,
I have one question/issue related to this which I am trying to figure out since a long time. We have content model define through xsd schemas and all our content is getting created through web forms. For each web form we have corresponding entries in wcm-xml-metadata-extracter-context.xml.
Now when we update and modify the content the values are getting indexed (extracted) properly and we are able to verify through Node Browser.
Even the Lucene Queries are working fine only issue we are facing is in sorting the data.
The issue we are facing are in the webscripts while sorting the data.
e.g.
SearchParameters sp = new SearchParameters();
sp.addStore(getStoreReference());
sp.setLanguage(SearchService.LANGUAGE_LUCENE);
StringBuffer strBfrQuery = new StringBuffer();
strBfrQuery.append(WebscriptConstants.divisionQuery); //Query is working fine no issue. getting proper result set
String strQname = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "title").toString();
sp.setQuery(strBfrQuery.toString());
sp.addSort(strQname, false);
The sorting is not working for any fields in webforms. We tried many options but couldnt get the right results. Do we have to do any extra step other than setting up wcm-xml-metadata-extracter-context.xml for sorting.
Peter: It would be great help if you can help us out here and provide more guidence.
Looking forward for your reply.
Thanks
Kalpesh Mehta