Displaying 3 results from an estimated 3 matches for "prefix_needs_colon".
2012 Jan 05
1
Enhance synonyms feature of the query parser (patch included)
...00 +0800
***************
*** 307,316 ****
--- 307,318 ----
for (piter = prefixes.begin(); piter != prefixes.end(); ++piter) {
// First try the unstemmed term:
string term;
+ #ifndef HAVE_SYNONYMS_ENH
if (!piter->empty()) {
term += *piter;
if (prefix_needs_colon(*piter, name[0])) term += ':';
}
+ #endif
term += name;
Xapian::Database db = state->get_database();
***************
*** 319,334 ****
--- 321,347 ----
if (syn == end && stem != QueryParser::STEM_NONE) {
// If that has no synonyms, tr...
2006 Oct 30
1
QueryParser and prefixes
Hi all,
My app uses prefixes for user-defined labels and directory names.
Since these are
case-sensitive, I chose XLABEL and XDIR respectively. Labels and directories
may start with an upper-case, so a ":" is always inserted between the
prefix and the
term itself. These prefixes are mapped with add_boolean_prefix to
"dir" and "label".
Let's imagine I index a
2006 Mar 03
1
xapian-0.9.4 queryparser build errors after applying utf-8 patch
...gunichar' has not been declared
/u1/olly/xapian-svn-snapshot/tags/0.9.4/xapian/xapian-core/queryparser/queryparser.lemony:180: error: ISO C++ forbids declaration of `ch' with no type
/u1/olly/xapian-svn-snapshot/tags/0.9.4/xapian/xapian-core/queryparser/queryparser.lemony: In function `bool prefix_needs_colon(const std::string&, int)':
/u1/olly/xapian-svn-snapshot/tags/0.9.4/xapian/xapian-core/queryparser/queryparser.lemony:181: error: `U_isupper' cannot be used as a function
/u1/olly/xapian-svn-snapshot/tags/0.9.4/xapian/xapian-core/queryparser/queryparser.lemony: In member function `Xapian...