Login

Tag "analyzer"

Snippet List

Haystack whoosh backend with custom analyzer (allow using any lang, word processing, etc)

It is a haystack custom whoosh backend which provides analyzer customisation (required `get_analyzer` method definition). That means it is possible to define any complex analyzers (see [whoosh](https://bitbucket.org/mchaput/whoosh/wiki/Home) docs and source). Sample code shows how to use it, builtin `LanguageAnalyzer` instance configured for working with russian language used as custom analyzer. Base idea taken from this snippet: [https://djangosnippets.org/snippets/3025/](https://djangosnippets.org/snippets/3025/)

  • haystack
  • stemming
  • whoosh
  • analyzer
Read More

1 snippet posted so far.