Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move stemming and weighting scheme into connection_options? #99

Open
SimonSteinberger opened this issue Jun 6, 2012 · 1 comment
Open
Labels

Comments

@SimonSteinberger
Copy link

Does it make sense, to move HAYSTACK_XAPIAN_LANGUAGE and HAYSTACK_XAPIAN_WEIGHTING_SCHEME into connection_options (settings.HAYSTACK_CONNECTIONS)?

I've modified the backend for a project, in order to switch stemming language with the index. Comes in handy for multi-language sites and somehow I believe it fits in there:

xapian_backend.py, LOC 154:
self.language = connection_options.get('HAYSTACK_XAPIAN_LANGUAGE', 'english')
self.weighting_scheme = connection_options.get('HAYSTACK_XAPIAN_WEIGHTING_SCHEME', None)

from django.config import settings may be removed in this case

@jorgecarleitao
Copy link
Collaborator

+1, however, this breaks backward compatibility, which means we would have to create a deprecation timeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants