Romain Delalande a écrit : > I could surely find the contribution and then, the queryModel. > It is like : > > <queryModel name="byCoverageNavQueryModel" docType="QueryNav"> > <max>10</max> > <whereClause> > > <predicate parameter="dc:coverage" operator="STARTSWITH"> > <field schema="querynav" name="coverage" /> > </predicate> > > </whereClause> > > <sortColumn> > <field schema="advanced_search" name="sortColumn" /> > </sortColumn> > > <sortAscending> > <field schema="advanced_search" name="sortAscending" /> > </sortAscending> > > </queryModel> > > But it is just not enough for me. > I can change the operator, trying "STARTSWITH", "LIKE", or even "=", but the > result is not satisfying.
STARTSWITH is what you want if the field of the document is indexed with type 'Path' in your nxsearch-contrib.xml file. > To be precise, the fact is that I have a two-level dictionnary > Category/subcategory, similarly to "Subjects (topics / subtopics)". A > document can have several values of subcategories, just as a core document > can have several subtopics : Art/painting, Art/literature ... > > The specific point is that, in my plugin, some different categories can have > the same subcategory. If you want to query on a custom field, i.e. one that is not defined in dublincore.xsd but instead in your custom schema then your should contribute a new definition to the DirectoryTreeManager extension point to use your custom vocabulary to build a tree able to use the custom query model of yours. -- Olivier _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
