search for: setdefaultoperator

Displaying 1 result from an estimated 1 matches for "setdefaultoperator".

2006 Apr 11
2
setting the default operator on a QueryParser
...amazing work on Ferret! I have a question about setting up the standard operators on a QueryParser. I would like my parser to default to AND queries rather than the default OR. In Java I would simply do: QueryParser parser = new QueryParser("contents", new StandardAnalyzer()); parser.setDefaultOperator(QueryParser.Operator.AND); But I can''t find the corresponding method in the Ferret API. Have I missed it or is there a workaround? Thanks, Roop -- Posted via http://www.ruby-forum.com/.