daevaorn / djapian

High level Xapian integration for Django
Other
6 stars 3 forks source link

Djapian fails to index when stemming lang is "multi" #100

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When trying to run "management.py index --rebuild" when 
DJAPIAN_STEMMING_LANG = "multi" the command fails.
It appears that djapian should be intercepting the "Multi" but is not doing 
it and pass it to xapian.

here is the full traceback.

Traceback (most recent call last):
  File "./manage.py", line 11, in <module>
    execute_manager(settings)
  File "/usr/lib/pymodules/python2.6/django/core/management/__init__.py", 
line 362, in execute_manager
    utility.execute()
  File "/usr/lib/pymodules/python2.6/django/core/management/__init__.py", 
line 303, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/pymodules/python2.6/django/core/management/base.py", line 
195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/pymodules/python2.6/django/core/management/base.py", line 
222, in execute
    output = self.handle(*args, **options)
  File 
"/home/arkanus/Codigo/django_tests/djapian_test/djapian/management/commands/
index.py", line 165, in handle
    rebuild(verbose, per_page, commit_each)
  File 
"/home/arkanus/Codigo/django_tests/djapian_test/djapian/management/commands/
index.py", line 130, in rebuild
    indexer.update(None, after_index, per_page, commit_each)
  File "/home/arkanus/Codigo/django_tests/djapian_test/djapian/indexer.py", 
line 235, in update
    generator.set_stemmer(xapian.Stem(stem_lang))
  File "/usr/lib/python2.6/dist-packages/xapian.py", line 4026, in __init__
    _xapian.Stem_swiginit(self,_xapian.new_Stem(*args))
xapian.InvalidArgumentError: Language code multi unknown

Original issue reported on code.google.com by arka...@gmail.com on 13 Dec 2009 at 6:20

GoogleCodeExporter commented 9 years ago
forget to tell i'm using the lastest svn revision

Original comment by arka...@gmail.com on 13 Dec 2009 at 6:21

GoogleCodeExporter commented 9 years ago

Original comment by daevaorn on 13 Dec 2009 at 9:00

GoogleCodeExporter commented 9 years ago

Original comment by daevaorn on 13 Dec 2009 at 9:09

GoogleCodeExporter commented 9 years ago
Fixed with r324

Original comment by daevaorn on 19 Dec 2009 at 8:20