AnsweredAssumed Answered

Lucene combined query on TITLE and TEXT

Question asked by bindiya on Jan 3, 2007
Latest reply on Jun 8, 2007 by cludt

I use following query to search content for their TITLE as well as TEXT in the document. But this returns result only contents and files with the search on TITLE, it ignores TEXT search.
Is anything wrong with my query?

StringBuffer sb = new StringBuffer();
sb.append("TYPE:\"{").append(NamespaceService.CONTENT_MODEL_1_0_URI).append("}content\" ") ;
sb.append("+@").append(NamespaceService.CONTENT_MODEL_PREFIX).append("\\:title:"test" TEXT:"test");

Query query = new Query(Constants.QUERY_LANG_LUCENE, sb.toString());