Jim | 2 Jan 11:42 2009

Is the wiki down?

I'm getting the following:

  Oops…

*Trac detected an internal error:*

OperationalError: database is locked

There was an internal error in Trac. It is recommended that you inform 
your local Trac administrator and give him all the information he needs 
to reproduce the issue.

To that end, you could ==== How to Reproduce ==== While doing a GET 
operation on `/wiki/`, Trac issued an internal error. ''(please provide 
additional details here)'' ==== System Information ==== || '''Trac''' || 
`0.11rc1` || || '''Python''' || `2.4.4 (#2, Oct 22 2008, 20:20:22) ` 
[[br]] `[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]` || || 
'''setuptools''' || `0.6c3` || || '''SQLite''' || `3.3.8` || || 
'''pysqlite''' || `2.3.2` || || '''Genshi''' || `0.5dev-r789` || || 
'''Subversion''' || `1.4.2 (r22196)` || ==== Python Traceback ==== {{{ 
Traceback (most recent call last): File 
"/usr/lib/python2.4/site-packages/Trac-0.11rc1-py2.4.egg/trac/web/main.py", 
line 417, in _dispatch_request dispatcher.dispatch(req) File 
"/usr/lib/python2.4/site-packages/Trac-0.11rc1-py2.4.egg/trac/web/main.py", 
line 222, in dispatch req.session.save() File 
"/usr/lib/python2.4/site-packages/Trac-0.11rc1-py2.4.egg/trac/web/session.py", 
line 109, in save (self.last_visit, self.sid, authenticated)) File 
"/usr/lib/python2.4/site-packages/Trac-0.11rc1-py2.4.egg/trac/db/util.py", 
line 50, in execute return self.cursor.execute(sql_escape_percent(sql), 
args) File 
(Continue reading)

Charlie Hull | 2 Jan 11:55 2009
Picon

Re: Xapian 1.0.10 released

Olly Betts wrote:
> We're proud to present the Xapian Christmas special!
> 
> I've uploaded Xapian 1.0.10 (including Search::Xapian 1.0.10.0), which as
> usual you can download from:
> 
> http://xapian.org/download

Hi all,

Win32 Visual C++ build files are now available from the usual place:
http://lemurconsulting.com/Products/Xapian/Overview.shtml

You can now build the C# bindings using Microsoft tools.

Happy New Year!

Cheers

Charlie
Charlie Hull | 2 Jan 12:10 2009
Picon

Re: Is the wiki down?

Jim wrote:
> I'm getting the following:
> 
> 
>   Oops…
> 
> *Trac detected an internal error:*
> 
> OperationalError: database is locked
> 
Works for me! Let us know if it happens again.

Charlie
Jim | 2 Jan 21:27 2009

New example on wiki

I've added another bit of example code to the wiki.  This is a 
demonstration of using perl to parse text files, generate an input file 
for scriptindex using a half dozen or so fields and running 
scriptindex.  The program, index file and data are all available.  If 
anyone runs into any problems, please let me know and I'll try to help.  
I'm not a professional writer so it might be gibberish but I'm sure 
someone will tell me if so.

Thanks,
Jim.
Olly Betts | 4 Jan 23:15 2009

Re: cygwin python binding build error

There are cygwin ports packages of Xapian - looking at them here I see
various patches are being applied, but nobody has told me about these
before so they aren't in the source code tarballs:

http://cygwin-ports.svn.sourceforge.net/viewvc/cygwin-ports/ports/trunk/libs/xapian-bindings/

I'll apply the fixes I actually understand shortly, but I don't follow
why all of them are needed - for example, why -module is dropped from
*_la_LDFLAGS (but not in all cases - e.g. for Ruby it is left in)?

Cheers,
    Olly
Matt Chen | 5 Jan 02:21 2009
Picon

Re: cygwin python binding build error

thanks you guys, that's really helpful.

On Mon, Jan 5, 2009 at 6:15 AM, Olly Betts <olly <at> survex.com> wrote:
> There are cygwin ports packages of Xapian - looking at them here I see
> various patches are being applied, but nobody has told me about these
> before so they aren't in the source code tarballs:
>
> http://cygwin-ports.svn.sourceforge.net/viewvc/cygwin-ports/ports/trunk/libs/xapian-bindings/
>
> I'll apply the fixes I actually understand shortly, but I don't follow
> why all of them are needed - for example, why -module is dropped from
> *_la_LDFLAGS (but not in all cases - e.g. for Ruby it is left in)?
>
> Cheers,
>    Olly
>
Olly Betts | 5 Jan 07:04 2009

Re: cygwin python binding build error

On Sun, Jan 04, 2009 at 10:15:26PM +0000, Olly Betts wrote:
> There are cygwin ports packages of Xapian - looking at them here I see
> various patches are being applied, but nobody has told me about these
> before so they aren't in the source code tarballs:
> 
> http://cygwin-ports.svn.sourceforge.net/viewvc/cygwin-ports/ports/trunk/libs/xapian-bindings/
> 
> I'll apply the fixes I actually understand shortly, but I don't follow
> why all of them are needed - for example, why -module is dropped from
> *_la_LDFLAGS (but not in all cases - e.g. for Ruby it is left in)?

OK, now applied to SVN trunk (and these changes will get backported for
1.0.11 unless they prove problematic) apart from:

* removal of -module for some languages (as explained above).

* removal of "xapian.pyc xapian.pyo" from pylib_DATA (again, I don't
  understand this change - I wondered if it was Cygwin Ports packaging
  policy, but I didn't find any info about that online; if it is, it
  would be better done in xapian-bindings-1.0.10-1.cygport I think).

* I didn't apply the changes for libtool 2.2.x since once the other
  patches are merged, running autoreconf is presumably no longer
  required.

If any of these are actually required, I'd like to understand why before
applying them.

[cc:ing Reini Urban as I believe he maintains the cygwin packages]

(Continue reading)

Jim | 6 Jan 02:22 2009

Contextual highlighting.

I know the subject has been discussed and there is a summary of 
discussions on the subject on the wiki.  A while back I was curious as 
to how the Search::Tools::HiLiter and Search::Tools::Snipper modules 
might work with Xapian so I generated a test.  I've cleaned up that test 
and decided to publish it.  A readme is located at 
http://fayettedigital.com/downloads/README.html.  The file can be 
downloade from http://fayettedigital.com/downloads/nsearch.tar.  It 
works OK on Ubuntu 8.04 and with difficulty on Centos 5.1. 

There is a lot of javascript included.  It uses AJAX to communicate with 
the perl CGI file.  It requires the dojo toolkit.

It's not fancy but if anyone is interested in toying with the previously 
mentioned modules, it's a starting point.  It includes a database, the 
same on that I described creating in my recent wiki article.

Jim.
Jim | 6 Jan 22:26 2009

Question about how Omega gets its data

I see in the xml output from omega the following:

<terms>
<term term="Ztest" show="tests"/>
<term term="Zwant" show="wanted"/>
</terms>

For each hit.  I know I can get the "terms" from the Enquire object via 
get_matching_terms_begin and get_matching_terms_end but where do the 
unstemmed values shown in the "show" keyword above come from?

Thanks,
Jim.
James Aylett | 6 Jan 22:45 2009

Re: Question about how Omega gets its data

On Tue, Jan 06, 2009 at 04:26:57PM -0500, Jim wrote:

> I see in the xml output from omega the following:
> 
> <terms>
> <term term="Ztest" show="tests"/>
> <term term="Zwant" show="wanted"/>
> </terms>
> 
> For each hit.  I know I can get the "terms" from the Enquire object via 
> get_matching_terms_begin and get_matching_terms_end but where do the 
> unstemmed values shown in the "show" keyword above come from?

It uses a method on the QueryParser, unstem_begin(), which gives a
TermIterator over unstemmed terms *in the query* of the stemmed term
supplied. See
<http://xapian.org/docs/apidoc/html/classXapian_1_1QueryParser.html#bed4668a2ed42741c3c0cfc7eb7db2d8>,
and the ``pretty_term()`` method in Omega's query.cc .

J

--

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james <at> tartarus.org                               uncertaintydivision.org

Gmane