[Xapian-discuss] [issue] The difference between QueryParser::FLAG_AUTO_SYNONYMS and QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS
hightman
hightman at zuaa.zju.edu.cn
Wed Jan 4 07:53:15 GMT 2012
I don't know whether this is a BUG or for special purpose...
According to the definition of "xapian/queryparser.h", FLAG_AUTO_MULTIWORD_SYNONYMS contains bit of
FLAG_AUTO_SYNONYMS .
Therefore, long as I set the parse flag with FLAG_AUTO_SYNONYMS, the query parser will automatically activate
the function of FLAG_AUTO_MULTIWORD_SYNONYMS. See the below source code part from "queryparser.lemon"
...
1358 subqs.reserve(terms.size());
1359 if (state->flags & QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS) {
1360 // Check for multi-word synonyms.
1361 Database db = state->get_database();
...
More information about the Xapian-discuss
mailing list