Re: xapian and msg files
Thomas Arendsen Hein <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
* Tom Ekberg <[email protected]> [20140212 23:21]: > I recently moved one of our larger trackers ('it' tracker) to a host that has the xapian python package. The roundup code checks to see if can use that, and uses the Indexer in roundup.backends.indexer_rdbms if the xapian import fails. One of the users of the 'it' tracker noticed that an 'all text' search for SCCS returned 10 matches. It appears to at a minimum not look at the msg files. On the other host which does not have the xapian python package the same search returns 607 matches, and that includes msg files. > > Are you able to use xapian successfully? I'm tempted to turn it off and forget about stemming. You need apply the single change in indexer_xapian.py from http://sourceforge.net/p/roundup/code/ci/3ff1a288fb9c diff -r 19f2c01d2b9d -r 3ff1a288fb9c roundup/backends/indexer_xapian.py --- a/roundup/backends/indexer_xapian.py Tue Oct 08 09:46:42 2013 -0400 +++ b/roundup/backends/indexer_xapian.py Mon Oct 21 12:56:28 2013 +0200 @@ -107,7 +107,7 @@ query = xapian.Query(xapian.Query.OP_AND, terms) enquire.set_query(query) - matches = enquire.get_mset(0, 10) + matches = enquire.get_mset(0, database.get_doccount()) return [tuple(m.document.get_data().split(':')) for m in matches] It will be included in roundup 1.5.1 Regards, Thomas -- [email protected] - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, HR B 18998 Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk