Ticket #234: diff4ORopOption

File diff4ORopOption, 533 bytes (added by laserbled, 14 years ago)

This is the diff to have a option to OR the prefix. We have AND operator as the default. This is a behavioral change likely to be accompanied with this patch to provide user with such an option.

Line 
1--- omega-orig f.cc 2011-03-23 02:30:19.000000000 +0530
2+++ omega.cc 2011-04-13 01:15:13.971269000 +0530
3@@ -176,8 +176,8 @@ try {
4 val = cgi_params.find("DEFAULTOP");
5 if (val != cgi_params.end()) {
6 const string & v = val->second;
7- if (v == "AND" || v == "and")
8- default_op = Xapian::Query::OP_AND;
9+ if (v == "OR" || v == "or")
10+ default_op = Xapian::Query::OP_OR; //Since the defult operator is made to AND we are providing a user option of OR in case its required.
11 }
12
13 val = cgi_params.find("FMT");