System.err.println("Internal Model using RPN Visitor = "+org.jzkit.search.util.QueryModel.PrefixString.PrefixQueryVisitor.toPQF(qm2));
}
public void testAdvancedTemplateBasedQueryFactory() throws Exception {
System.err.println("\n\nadvancedTestTemplateBasedQueryFactory\n\n");
QueryModel qm = InternalModelRootNode.createInstanceFromClasspathFile("/DefaultQueryModel.xml");
System.err.println("Result of parse = "+qm.toString());
System.err.println("Internal Model = "+qm.toInternalQueryModel(app_context).toString());
Map values = new HashMap();
values.put("query.SubjectCriteria.term","Sports \"and a phrase\" Other Term \"And another phrase\"");
values.put("query.SubjectCriteria.relation","Like");
values.put("query.SubjectCriteria.truncation","RightAndLeft");
values.put("query.PlaceCriteria.term","Sheffield");