Displaying 20 results from an estimated 20000 matches similar to: "Re: [Xapian-commits] 7575: trunk/xapian-core/ trunk/xapian-core/include/xapian/"
2014 Dec 19
2
Replace atoi and atol with strtol strtoul:Need Help
On Thu, Dec 18, 2014 at 11:38:42PM +0000, James Aylett wrote:
> Collapsing is done using a valueno (you can tell because collapse_key
> is of type Xapian::valueno), which is a 32 bit unsigned integer (see
> here:
> https://getting-started-with-xapian.readthedocs.org/en/latest/concepts/indexing/values.html).
> For 32 bit unsigned you need unsigned long.
Xapian::valueno is actually a
2008 Sep 16
1
Some Questions From the beginner of Xapian
Dear, guys:
I am a beginner of Xapian, when reading the documents, I encountered follow questions.
(1) I see the Xapian::Document has a method
void add_value (Xapian::valueno valueno, const std::string &value)
What's the purpose of this method? Document will related to the terms, but what's the purpose of this?
(2) add_posting method will add term to a documents.
void
2007 Jun 30
1
Re: [Xapian-commits] 9092: trunk/xapian-core/ trunk/xapian-core/api/ trunk/xapian-core/common/ trunk/xapian-core/include/xapian/
olly wrote:
> SVN root: svn://svn.xapian.org/xapian
> Changes by: olly
> Revision: 9092
> Date: 2007-06-30 15:16:16 +0100 (Sat, 30 Jun 2007)
>
> Log message (2 lines):
> api/omdocument.cc,common/document.h,include/xapian/document.h:
> Add Xapian::Document::get_docid() method.
I was thinking that it would probably be useful to have a
2011 Sep 21
2
Xapian-discuss Digest, Vol 88, Issue 9
Thanks that helped :).
I am still trying to cover add_value some more though since I seem to not
understand it totally.
I guess it is because I am used to Lucene and Sphinx and Solr and it appears
that Xapian seems to attach the type of value stored more on add_value. Like
for example I am still a bit confused on how slotno actually works and what
it actually is.
I think the main thing is
2007 Jan 12
1
Re: [Xapian-commits] 7603: trunk/xapian-core/ trunk/xapian-core/backends/flint/ trunk/xapian-core/backends/quartz/
On Tue, Jan 02, 2007 at 03:55:59PM +0000, richard wrote:
> * backends/quartz/btree.cc,backends/flint/flint_io.h: Patches from
> Charlie Hull to allow 2GB+ index files work when compiled using
> Visual C++.
I suspect that xapian-compact.cc (and quartzcompact.cc if you can be
bothered) will also need fixing since they use off_t. You need to make
sure that the stat() function called
2007 Oct 19
1
Re: [Xapian-commits] 9476: trunk/xapian-core/ trunk/xapian-core/include/xapian/ trunk/xapian-core/queryparser/ trunk/xapian-core/tests/
olly wrote:
> SVN root: svn://svn.xapian.org/xapian
> Changes by: olly
> Revision: 9476
> Date: 2007-10-19 03:47:11 +0100 (Fri, 19 Oct 2007)
>
> Log message (14 lines):
> include/xapian/queryparser.h,queryparser/queryparser.cc,
> queryparser/queryparser.lemony,queryparser/queryparser_internal.h,
> tests/queryparsertest.cc: Since calling
2007 Mar 29
2
Re: [Xapian-commits] 7990: trunk/xapian-core/ trunk/xapian-core/bin/ trunk/xapian-core/tests/harness/
On Thu, Mar 29, 2007 at 03:39:01PM +0100, richard wrote:
> bin/xapian-tcpsrv.cc,tests/harness/testsuite.cc: First of many
> parts of a large patch from Mark Hammond working towards enabling
> remote databases on windows. When displaying errors which might
> be socket errors, display the error number as well as the output
> of strerror - on windows, strerror doesn't display
2007 Oct 07
1
Re: [Xapian-commits] 9389: trunk/xapian-core/ trunk/xapian-core/net/
On Mon, Oct 01, 2007 at 01:13:07PM +0100, richard wrote:
> Log message (3 lines):
> net/remoteconnection.cc: After calling read(), check for received
> == 0 after checking for errors, so that if an EINTR occurs in
> read, we don't report EOF instead of retrying.
> [...]
> http://xapian.org/C?9389?trunk/xapian-core/net/remoteconnection.cc
I don't think this change is
2006 Oct 04
1
Re: [Xapian-commits] 7283: trunk/xapian-core/ trunk/xapian-core/net/
On Wed, Oct 04, 2006 at 01:27:20PM +0100, richard wrote:
> SVN root: svn://svn.xapian.org/xapian
> Changes by: richard
> Revision: 7283
> Date: 2006-10-04 13:27:17 +0100 (Wed, 04 Oct 2006)
>
> Log message (2 lines):
> Use "unsigned char" instead of "char" when serialising lengths, to avoid
> problems on platforms where char is
2007 Apr 09
1
Re: [Xapian-commits] 8153: trunk/xapian-core/ trunk/xapian-core/backends/flint/
On Mon, Apr 09, 2007 at 11:26:44AM +0100, richard wrote:
> backends/flint/flint_database.cc: Fix bug with document lengths
> in replace document. Was using doclens.insert() to set the new
> document length, but this has no effect if the entry already
> exists.
Argh! That issue has bitten us at least once before. I'll audit all
uses of insert to see if there are any other
2006 Oct 06
1
Re: [Xapian-commits] 7289: trunk/xapian-core/ trunk/xapian-core/tests/
On Fri, Oct 06, 2006 at 05:36:47PM +0100, richard wrote:
> tests/runtest.in: Cache result of test for $VG_LOG_FD if we find the new
> option. Saves 2 seconds for each invocation on my machine, which is half the
> time when running just a single simple test.
Nice speed up, although we might as well just remove the option and send
valgrind's output to /dev/null as things currently
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
2007 Mar 08
1
Tarball size (was Re: [Xapian-commits] 7916: trunk/xapian-core/ trunk/xapian-core/docs/)
On Wed, Mar 07, 2007 at 11:22:36PM +0000, olly wrote:
> docs/Makefile.am: Stop shipping docs/apidoc/latex/* in the
> xapian-core tarballs since it's just useless bloat. Removing it
> more than halves the size of the tarball (55% reduction!)
Hmm, this is very odd.
I tried unpacking the last xapian-core snapshot tarball, deleting the
junk files, and rebuilding the tarball, and I got
2007 Mar 06
1
Re: [Xapian-commits] 7891: trunk/xapian-core/
On Tue, Mar 06, 2007 at 09:07:04AM +0000, richard wrote:
> * HACKING: Note on running preautoreconf and autoreconf to keep SVN
> builds working.
What's the scenario in which you have to run them by hand? I'd rather
fix this to just work automatically than document deficiencies in the
build system.
I fixed a problem a few weeks ago with removed files which were listed
in
2007 Apr 19
1
Re: [Xapian-commits] 8287: trunk/xapian-core/
On Wed, Apr 18, 2007 at 02:59:19PM +0100, richard wrote:
> HACKING: Minimal changes to make this into valid restructured
> text.
It's cute that minimal changes are required to do that, but is this
really useful?
Now when I load HACKING into vim it displays the last 100+ lines in
inverse video, which it didn't do before. That actually makes this
document harder to read for probably
2007 Mar 07
2
-D_FORTIFY_SOURCE (was Re: [Xapian-commits] 7903: trunk/xapian-core/)
On Wed, Mar 07, 2007 at 11:45:13AM +0000, richard wrote:
> * configure.ac: Add -D_FORTIFY_SOURCE to AM_CXXFLAGS for GCC
> builds. According to glibc CVS support for this was added in
> October 2004, but it doesn't seem to be documented very well,
> other than in features.h.
I'd not come across this before, so I had a quick poke around.
It's hardly documented *well* in
2017 Dec 18
2
How to get the serialise score returned in Xapian::KeyMaker->operator().
On Sat, Dec 16, 2017 at 10:11:40PM +0000, Olly Betts wrote:
> Unfortunately the sort key isn't currently exposed via the public API.
> It's available internally and it seems like it ought to be accessible
> but there's no accessor method for it - I can add one but that won't
> help for existing releases.
I've added MSetIterator::get_sort_key() to master in
2014 Dec 18
4
Replace atoi and atol with strtol strtoul:Need Help
Hello,
I came across the file *omega.cc* which is in directory*
xapain-application/omega/*
In this file , atoi is used in *Percentage Relevance cutoff *(293 line no)
as Percentage lies between 0-100 their is no need to modify atoi . But do
we need to check for error's ?
Second Implementation is in *collapsing* (301) in which we collapse set of
document under a key,range of this key has not
2007 Apr 12
0
Re: [Xapian-commits] 8186: trunk/xapian-core/ trunk/xapian-core/queryparser/ trunk/xapian-core/tests/
olly wrote:
> SVN root: svn://svn.xapian.org/xapian
> Changes by: olly
> Revision: 8186
> Date: 2007-04-11 23:38:53 +0100 (Wed, 11 Apr 2007)
>
> Log message (7 lines):
> queryparser/queryparser.lemony: Fix regression introduced by
> Richard's change, and restructure to make the handling for each case
> more obvious.
Thanks for the catch: I
2007 Apr 09
1
Re: [Xapian-commits] 8157: trunk/xapian-core/ trunk/xapian-core/backends/flint/ trunk/xapian-core/backends/quartz/
olly wrote:
> Log message (6 lines):
> backends/flint/flint_database.cc: Delete the corresponding entry
> (if any) from doclens in delete_document(). Add assertion to
> add_document_() that the corresponding entry in doclens isn't
> already set, but in a non-debug build overwrite any existing
> entry as that's more likely to be correct.
>