Changeset 12364 for trunk/gsdl/src/colservr
- Timestamp:
- 2006-08-01T11:33:37+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/lucenesearch.cpp
r12276 r12364 84 84 } 85 85 86 87 86 bool lucenesearchclass::search(const queryparamclass &queryparams, 88 87 queryresultsclass &queryresult) { … … 107 106 } 108 107 109 // set default Boolean combiner from all/some setting110 // if match_mode == 1, ie all, default=1 ie AND111 // if match_mode == 0, ie some, default=0, ie OR112 int defaultBoolCombine = 0;113 if (queryparams.match_mode){114 defaultBoolCombine = 1;115 }116 117 108 text_t utf8querystring = to_utf8(queryparams.querystring); 118 109 cerr << "**** query string = " << utf8querystring << endl; … … 131 122 cmd += (text_t)" \""+indexname + (text_t)"\" \"" + escaped_utf8querystring + (text_t)"\""; 132 123 if (!queryparams.sortfield.empty()) { 133 cmd += " \"" + queryparams.sortfield + "\""; 134 } 124 cmd += " -sort \"" + queryparams.sortfield + "\""; 125 } 126 127 // New code to support configuration of the default conjuction operator 128 // set default Boolean combiner from all/some setting 129 // if match_mode == 1, ie all, default=1 ie AND 130 // if match_mode == 0, ie some, default=0, ie OR 131 if (queryparams.match_mode) 132 { 133 cmd += " -dco AND"; 134 } 135 135 136 cerr << "Lucene command: " << cmd << endl; 136 137
Note:
See TracChangeset
for help on using the changeset viewer.