Displaying 4 results from an estimated 4 matches for "om_tostring".
2007 Mar 01
1
Re: [Xapian-commits] 7817: trunk/xapian-core/ trunk/xapian-core/common/
On Thu, Mar 01, 2007 at 03:29:26PM +0000, richard wrote:
> * common/utils.c,common/utils.h: For windows, add an om_tostring()function for
> 64 bit integers: time() and GetProcessId() return these, and without this,
> backends/quartz/quartz_log.cc reports an error.
This change generates a new warning in the mingw cross-build:
common/utils.cc:82: warning: int format, different type arg (arg 3)
Presumably this...
2005 Jul 20
1
docid type redifine
Hello all.
I need to redefine a docid type (and all dependent types) like this: typedef unsigned long long docid;
I think it would be enough to edit "include/xapian/types.h", but it isn't so.
1) I've added :
string
om_tostring(unsigned long long val)
{
CONVERT_TO_STRING("%llu")
}
in common/utils.{h,cc}
2) In include/enquire.h (line 438) I've found the following declaration:
ESetIterator operator[](Xapian::doccount i) const;
but I think it would be
ESetIterator operator[](Xapian::termcount i) const;
is...
2004 May 11
2
"Error reading block xxx: got end of file"
Xapian (0.7.5) is spitting out this error on a regular basis:
org.xapian.errors.DatabaseError: Error reading block 136618: got end of=20=
file
=A0=A0=A0=A0=A0=A0=A0 at=20
org.xapian.XapianJNI.writabledatabase_repalce_document(Native Method)
=A0=A0=A0=A0=A0=A0=A0 at=20
org.xapian.WritableDatabase.replaceDocument(WritableDatabase.java:67)
I don't have a gdb backtrace, only the Java
2006 Dec 06
1
Bug and patch for +terms with wildcards
...-70,6 +71,7 @@
{
switch (op) {
case Xapian::Query::Internal::OP_LEAF:
+ case Xapian::Query::OP_MATCH_NOTHING:
return 0;
case Xapian::Query::OP_FILTER:
case Xapian::Query::OP_AND_MAYBE:
@@ -166,6 +168,9 @@
case Xapian::Query::OP_ELITE_SET:
result += "*" + om_tostring(parameter);
break;
+ case Xapian::Query::OP_MATCH_NOTHING:
+ result += "!";
+ break;
}
}
return result;
@@ -189,6 +194,7 @@
case Xapian::Query::OP_NEAR: name = "NEAR"; break;
case Xapian::Query::OP_PHRASE: name = "PHRASE&q...