--
You received this message because you are subscribed to the Google Groups "django-haystack" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-haystack/-/7s8cncNevXUJ.
To post to this group, send email to django-...@googlegroups.com.
To unsubscribe from this group, send email to django-haysta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-haystack?hl=en.
Hi Mario,The language passed to the backend via `HAYSTACK_XAPIAN_LANGUAGE` is directly passed to Xapian with alteration so you should be able to use any of those listed here: http://xapian.org/docs/apidoc/html/classXapian_1_1Stem.html#6c46cedf2047b159a7e4c9d4468242b1Once you've done that, you'll need to rebuild your index to have the term stemmed in your language of choice.DavidOn Monday, 23 April, 2012 at 10:56 AM, Mario Menezes wrote:
Hi,
I'm new to django-haystack and xapian. I've got them to work and I would like to change the stemming language used in Xapian.
I've set 'HAYSTACK_XAPIAN_LANGUAGE':'portuguese', in my django settings. My Haystack entry looks like:
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.xapian_backend.XapianEngine',
'PATH': os.path.join(os.path.dirname(__file__), 'xapian_index'),
'HAYSTACK_XAPIAN_LANGUAGE':'portuguese',
},
}
Is this enough? Is this the correct language spelling ou code to use? Or should be something like ISO country codes? Could'nt find anything in docs"
Thanks,
Mario
--
You received this message because you are subscribed to the Google Groups "django-haystack" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-haystack/-/7s8cncNevXUJ.
To post to this group, send email to django-haystack@googlegroups.com.
To unsubscribe from this group, send email to django-haystack+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/django-haystack/-/XG8rN2NzZeAJ.
To post to this group, send email to django-...@googlegroups.com.
To unsubscribe from this group, send email to django-haysta...@googlegroups.com.
Hi Mario,I believe, stemming is not working correctly, yet, in the new Xapian backend. Currently, it appears to be working for English only. And as stated in a previous post: Use HAYSTACK_XAPIAN_LANGUAGE directly in settings.py and not in HAYSTACK_CONNECTIONS. pt and portuguese are both fine.