Package: pylucene
Version: 2.3.1-1.1
Severity: normal
Tags: patch

In the README.gz file, there's a code example at the line 145 which doesn't
work. The following lines :

for hit in hits:
   hit = Hit.cast_(hit)
   print hits.score(i), ':', hit.getDocument['title']

Should be replaced by this :

for hit in hits:
   hit = Hit.cast_(hit)
   print hit.getScore(), ':', hit.getDocument()['title']

Which will work.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-5.slh.4-sidux-686 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pylucene depends on:
ii  libc6                         2.7-13     GNU C Library: Shared libraries
ii  libgcc1                       1:4.3.2-1  GCC support library
ii  libstdc++6                    4.3.2-1    The GNU Standard C++ Library v3
ii  openjdk-6-jre                 6b11-7     OpenJDK Java runtime, using Hotspo
ii  python2.5                     2.5.2-11   An interactive high-level object-o

pylucene recommends no packages.

pylucene suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to