search for: flag_auto_multiword_synonyms

Displaying 3 results from an estimated 3 matches for "flag_auto_multiword_synonyms".

2012 Jan 04
2
[issue] The difference between QueryParser::FLAG_AUTO_SYNONYMS and QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS
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...
2012 Jan 05
1
Enhance synonyms feature of the query parser (patch included)
...os)); + #endif ++syn; } } *************** *** 1356,1362 **** --- 1369,1379 ---- Query::op default_op = state->default_op(); vector<Query> subqs; subqs.reserve(terms.size()); + #ifdef HAVE_SYNONYMS_ENH + if ((state->flags & QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS) == QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS) { + #else if (state->flags & QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS) { + #endif // Check for multi-word synonyms. Database db = state->get_database(); *************** *** 1432,1440 **** --- 1449,1467 ----...
2010 Nov 02
1
How to make QueryParser select entire word like "H.O.T"
...ppet is like: ----------------------Code begin------------------------------------------------------------- Xapian::QueryParser qp; qp.add_prefix("Singer", "S"); Xapian::Query query = qp.parse_query("Singer:s.h.e", Xapian::QueryParser::FLAG_PARTIAL|Xapian::QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS |Xapian::QueryParser::FLAG_PHRASE ); cout << "Performing query `" << query.get_description() << "'" << endl; ----------------------Code end--------------------------------------------------------------- See the output from the stdio, ---------------...