Full Code of toastdriven/django-haystack for AI

master 8ab14a273d8f cached
223 files
1.7 MB
408.2k tokens
2095 symbols
1 requests
Download .txt
Showing preview only (1,788K chars total). Download the full file or copy to clipboard to get everything.
Repository: toastdriven/django-haystack
Branch: master
Commit: 8ab14a273d8f
Files: 223
Total size: 1.7 MB

Directory structure:
gitextract_qq3rhc1s/

├── .editorconfig
├── .gitchangelog.rc
├── .github/
│   ├── issue_template.md
│   ├── pull_request_template.md
│   └── workflows/
│       ├── black+isort.yml
│       ├── codeql-analysis.yml
│       ├── docs.yml
│       ├── flake8.yml
│       └── test.yml
├── .gitignore
├── AUTHORS
├── CONTRIBUTING.md
├── LICENSE
├── MANIFEST.in
├── README.rst
├── docs/
│   ├── Makefile
│   ├── _static/
│   │   └── .gitignore
│   ├── _templates/
│   │   └── .gitignore
│   ├── admin.rst
│   ├── architecture_overview.rst
│   ├── autocomplete.rst
│   ├── backend_support.rst
│   ├── best_practices.rst
│   ├── boost.rst
│   ├── changelog.rst
│   ├── conf.py
│   ├── contributing.rst
│   ├── creating_new_backends.rst
│   ├── debugging.rst
│   ├── faceting.rst
│   ├── faq.rst
│   ├── glossary.rst
│   ├── haystack_theme/
│   │   ├── layout.html
│   │   ├── static/
│   │   │   └── documentation.css
│   │   └── theme.conf
│   ├── highlighting.rst
│   ├── index.rst
│   ├── inputtypes.rst
│   ├── installing_search_engines.rst
│   ├── management_commands.rst
│   ├── migration_from_1_to_2.rst
│   ├── multiple_index.rst
│   ├── other_apps.rst
│   ├── python3.rst
│   ├── rich_content_extraction.rst
│   ├── running_tests.rst
│   ├── searchbackend_api.rst
│   ├── searchfield_api.rst
│   ├── searchindex_api.rst
│   ├── searchquery_api.rst
│   ├── searchqueryset_api.rst
│   ├── searchresult_api.rst
│   ├── settings.rst
│   ├── signal_processors.rst
│   ├── spatial.rst
│   ├── templatetags.rst
│   ├── toc.rst
│   ├── tutorial.rst
│   ├── utils.rst
│   ├── views_and_forms.rst
│   └── who_uses.rst
├── example_project/
│   ├── __init__.py
│   ├── bare_bones_app/
│   │   ├── __init__.py
│   │   ├── models.py
│   │   └── search_indexes.py
│   ├── regular_app/
│   │   ├── __init__.py
│   │   ├── models.py
│   │   └── search_indexes.py
│   ├── settings.py
│   └── templates/
│       └── search/
│           └── indexes/
│               ├── bare_bones_app/
│               │   └── cat_text.txt
│               └── regular_app/
│                   └── dog_text.txt
├── haystack/
│   ├── __init__.py
│   ├── admin.py
│   ├── apps.py
│   ├── backends/
│   │   ├── __init__.py
│   │   ├── elasticsearch2_backend.py
│   │   ├── elasticsearch5_backend.py
│   │   ├── elasticsearch_backend.py
│   │   ├── simple_backend.py
│   │   ├── solr_backend.py
│   │   └── whoosh_backend.py
│   ├── constants.py
│   ├── exceptions.py
│   ├── fields.py
│   ├── forms.py
│   ├── generic_views.py
│   ├── indexes.py
│   ├── inputs.py
│   ├── management/
│   │   ├── __init__.py
│   │   └── commands/
│   │       ├── __init__.py
│   │       ├── build_solr_schema.py
│   │       ├── clear_index.py
│   │       ├── haystack_info.py
│   │       ├── rebuild_index.py
│   │       └── update_index.py
│   ├── manager.py
│   ├── models.py
│   ├── panels.py
│   ├── query.py
│   ├── routers.py
│   ├── signals.py
│   ├── templates/
│   │   ├── panels/
│   │   │   └── haystack.html
│   │   └── search_configuration/
│   │       ├── schema.xml
│   │       └── solrconfig.xml
│   ├── templatetags/
│   │   ├── __init__.py
│   │   ├── highlight.py
│   │   └── more_like_this.py
│   ├── urls.py
│   ├── utils/
│   │   ├── __init__.py
│   │   ├── app_loading.py
│   │   ├── geo.py
│   │   ├── highlighting.py
│   │   ├── loading.py
│   │   └── log.py
│   └── views.py
├── pyproject.toml
├── setup.cfg
├── setup.py
├── test_haystack/
│   ├── __init__.py
│   ├── core/
│   │   ├── __init__.py
│   │   ├── admin.py
│   │   ├── custom_identifier.py
│   │   ├── fixtures/
│   │   │   ├── base_data.json
│   │   │   └── bulk_data.json
│   │   ├── models.py
│   │   ├── templates/
│   │   │   ├── 404.html
│   │   │   ├── base.html
│   │   │   ├── search/
│   │   │   │   ├── indexes/
│   │   │   │   │   ├── bar.txt
│   │   │   │   │   ├── core/
│   │   │   │   │   │   ├── mockmodel_content.txt
│   │   │   │   │   │   ├── mockmodel_extra.txt
│   │   │   │   │   │   ├── mockmodel_template.txt
│   │   │   │   │   │   └── mockmodel_text.txt
│   │   │   │   │   └── foo.txt
│   │   │   │   └── search.html
│   │   │   └── test_suggestion.html
│   │   └── urls.py
│   ├── discovery/
│   │   ├── __init__.py
│   │   ├── models.py
│   │   ├── search_indexes.py
│   │   └── templates/
│   │       └── search/
│   │           └── indexes/
│   │               └── bar_text.txt
│   ├── elasticsearch2_tests/
│   │   ├── __init__.py
│   │   ├── test_backend.py
│   │   ├── test_inputs.py
│   │   └── test_query.py
│   ├── elasticsearch5_tests/
│   │   ├── __init__.py
│   │   ├── test_backend.py
│   │   ├── test_inputs.py
│   │   └── test_query.py
│   ├── elasticsearch_tests/
│   │   ├── __init__.py
│   │   ├── test_elasticsearch_backend.py
│   │   ├── test_elasticsearch_query.py
│   │   └── test_inputs.py
│   ├── mocks.py
│   ├── multipleindex/
│   │   ├── __init__.py
│   │   ├── models.py
│   │   ├── routers.py
│   │   ├── search_indexes.py
│   │   └── tests.py
│   ├── results_per_page_urls.py
│   ├── run_tests.py
│   ├── settings.py
│   ├── simple_tests/
│   │   ├── __init__.py
│   │   ├── search_indexes.py
│   │   ├── test_simple_backend.py
│   │   └── test_simple_query.py
│   ├── solr_tests/
│   │   ├── __init__.py
│   │   ├── server/
│   │   │   ├── .gitignore
│   │   │   ├── confdir/
│   │   │   │   ├── schema.xml
│   │   │   │   └── solrconfig.xml
│   │   │   ├── get-solr-download-url.py
│   │   │   ├── start-solr-test-server.sh
│   │   │   └── wait-for-solr
│   │   ├── test_admin.py
│   │   ├── test_inputs.py
│   │   ├── test_solr_backend.py
│   │   ├── test_solr_management_commands.py
│   │   ├── test_solr_query.py
│   │   └── test_templatetags.py
│   ├── spatial/
│   │   ├── __init__.py
│   │   ├── fixtures/
│   │   │   └── sample_spatial_data.json
│   │   ├── models.py
│   │   ├── search_indexes.py
│   │   └── test_spatial.py
│   ├── test_altered_internal_names.py
│   ├── test_app_loading.py
│   ├── test_app_using_appconfig/
│   │   ├── __init__.py
│   │   ├── apps.py
│   │   ├── migrations/
│   │   │   ├── 0001_initial.py
│   │   │   └── __init__.py
│   │   ├── models.py
│   │   ├── search_indexes.py
│   │   └── tests.py
│   ├── test_app_with_hierarchy/
│   │   ├── __init__.py
│   │   └── contrib/
│   │       ├── __init__.py
│   │       └── django/
│   │           ├── __init__.py
│   │           └── hierarchal_app_django/
│   │               ├── __init__.py
│   │               └── models.py
│   ├── test_app_without_models/
│   │   ├── __init__.py
│   │   ├── urls.py
│   │   └── views.py
│   ├── test_backends.py
│   ├── test_discovery.py
│   ├── test_fields.py
│   ├── test_forms.py
│   ├── test_generic_views.py
│   ├── test_indexes.py
│   ├── test_inputs.py
│   ├── test_loading.py
│   ├── test_management_commands.py
│   ├── test_managers.py
│   ├── test_models.py
│   ├── test_query.py
│   ├── test_templatetags.py
│   ├── test_utils.py
│   ├── test_views.py
│   ├── utils.py
│   └── whoosh_tests/
│       ├── __init__.py
│       ├── test_forms.py
│       ├── test_inputs.py
│       ├── test_whoosh_backend.py
│       ├── test_whoosh_query.py
│       └── testcases.py
└── tox.ini

================================================
FILE CONTENTS
================================================

================================================
FILE: .editorconfig
================================================
# See http://editorconfig.org for format details and
# http://editorconfig.org/#download for editor / IDE integration

root = true

[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8

# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab

# We don't want to apply our defaults to third-party code or minified bundles:
[**/{external,vendor}/**,**.min.{js,css}]
indent_style = ignore
indent_size = ignore


================================================
FILE: .gitchangelog.rc
================================================
##
## Format
##
##   ACTION: [AUDIENCE:] COMMIT_MSG [!TAG ...]
##
## Description
##
##   ACTION is one of 'chg', 'fix', 'new'
##
##       Is WHAT the change is about.
##
##       'chg' is for refactor, small improvement, cosmetic changes...
##       'fix' is for bug fixes
##       'new' is for new features, big improvement
##
##   AUDIENCE is optional and one of 'dev', 'usr', 'pkg', 'test', 'doc'
##
##       Is WHO is concerned by the change.
##
##       'dev'  is for developpers (API changes, refactors...)
##       'usr'  is for final users (UI changes)
##       'pkg'  is for packagers   (packaging changes)
##       'test' is for testers     (test only related changes)
##       'doc'  is for doc guys    (doc only changes)
##
##   COMMIT_MSG is ... well ... the commit message itself.
##
##   TAGs are additionnal adjective as 'refactor' 'minor' 'cosmetic'
##
##       They are preceded with a '!' or a '@' (prefer the former, as the
##       latter is wrongly interpreted in github.) Commonly used tags are:
##
##       'refactor' is obviously for refactoring code only
##       'minor' is for a very meaningless change (a typo, adding a comment)
##       'cosmetic' is for cosmetic driven change (re-indentation, 80-col...)
##       'wip' is for partial functionality but complete subfunctionality.
##
## Example:
##
##   new: usr: support of bazaar implemented
##   chg: re-indentend some lines !cosmetic
##   new: dev: updated code to be compatible with last version of killer lib.
##   fix: pkg: updated year of licence coverage.
##   new: test: added a bunch of test around user usability of feature X.
##   fix: typo in spelling my name in comment. !minor
##
##   Please note that multi-line commit message are supported, and only the
##   first line will be considered as the "summary" of the commit message. So
##   tags, and other rules only applies to the summary.  The body of the commit
##   message will be displayed in the changelog without reformatting.


##
## ``ignore_regexps`` is a line of regexps
##
## Any commit having its full commit message matching any regexp listed here
## will be ignored and won't be reported in the changelog.
##
ignore_regexps = [
        r'@minor', r'!minor',
        r'@cosmetic', r'!cosmetic',
        r'@refactor', r'!refactor',
        r'@wip', r'!wip',
        r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[p|P]kg:',
        r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[d|D]ev:',
        r'^(.{3,3}\s*:)?\s*[fF]irst commit.?\s*$',
  ]


## ``section_regexps`` is a list of 2-tuples associating a string label and a
## list of regexp
##
## Commit messages will be classified in sections thanks to this. Section
## titles are the label, and a commit is classified under this section if any
## of the regexps associated is matching.
##
section_regexps = [
    ('New', [
	r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
     ]),
    ('Changes', [
        r'^[cC]hg\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
     ]),
    ('Fix', [
        r'^[fF]ix\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
     ]),

    ('Other', None ## Match all lines
     ),

]


## ``body_process`` is a callable
##
## This callable will be given the original body and result will
## be used in the changelog.
##
## Available constructs are:
##
##   - any python callable that take one txt argument and return txt argument.
##
##   - ReSub(pattern, replacement): will apply regexp substitution.
##
##   - Indent(chars="  "): will indent the text with the prefix
##     Please remember that template engines gets also to modify the text and
##     will usually indent themselves the text if needed.
##
##   - Wrap(regexp=r"\n\n"): re-wrap text in separate paragraph to fill 80-Columns
##
##   - noop: do nothing
##
##   - ucfirst: ensure the first letter is uppercase.
##     (usually used in the ``subject_process`` pipeline)
##
##   - final_dot: ensure text finishes with a dot
##     (usually used in the ``subject_process`` pipeline)
##
##   - strip: remove any spaces before or after the content of the string
##
## Additionally, you can `pipe` the provided filters, for instance:
#body_process = Wrap(regexp=r'\n(?=\w+\s*:)') | Indent(chars="  ")
#body_process = Wrap(regexp=r'\n(?=\w+\s*:)')
#body_process = noop
body_process = ReSub(r'((^|\n)[A-Z]\w+(-\w+)*: .*(\n\s+.*)*)+$', r'') | strip


## ``subject_process`` is a callable
##
## This callable will be given the original subject and result will
## be used in the changelog.
##
## Available constructs are those listed in ``body_process`` doc.
subject_process = (strip |
    ReSub(r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n@]*)(@[a-z]+\s+)*$', r'\4') |
    ucfirst | final_dot)


## ``tag_filter_regexp`` is a regexp
##
## Tags that will be used for the changelog must match this regexp.
##
tag_filter_regexp = r'^v[0-9]+\.[0-9]+(\.[0-9]+)?$'


## ``unreleased_version_label`` is a string
##
## This label will be used as the changelog Title of the last set of changes
## between last valid tag and HEAD if any.
unreleased_version_label = "%%version%% (unreleased)"


## ``output_engine`` is a callable
##
## This will change the output format of the generated changelog file
##
## Available choices are:
##
##   - rest_py
##
##        Legacy pure python engine, outputs ReSTructured text.
##        This is the default.
##
##   - mustache(<template_name>)
##
##        Template name could be any of the available templates in
##        ``templates/mustache/*.tpl``.
##        Requires python package ``pystache``.
##        Examples:
##           - mustache("markdown")
##           - mustache("restructuredtext")
##
##   - makotemplate(<template_name>)
##
##        Template name could be any of the available templates in
##        ``templates/mako/*.tpl``.
##        Requires python package ``mako``.
##        Examples:
##           - makotemplate("restructuredtext")
##
output_engine = rest_py
#output_engine = mustache("restructuredtext")
#output_engine = mustache("markdown")
#output_engine = makotemplate("restructuredtext")


## ``include_merge`` is a boolean
##
## This option tells git-log whether to include merge commits in the log.
## The default is to include them.
include_merge = True


================================================
FILE: .github/issue_template.md
================================================
* [ ] Tested with the latest Haystack release
* [ ] Tested with the current Haystack master branch

## Expected behaviour

## Actual behaviour

## Steps to reproduce the behaviour

1.

## Configuration

* Operating system version:
* Search engine version:
* Python version:
* Django version:
* Haystack version:

================================================
FILE: .github/pull_request_template.md
================================================
# Hey, thanks for contributing to Haystack. Please review [the contributor guidelines](https://django-haystack.readthedocs.io/en/latest/contributing.html) and confirm that [the tests pass](https://django-haystack.readthedocs.io/en/latest/running_tests.html) with at least one search engine.

# Once your pull request has been submitted, the full test suite will be executed on https://github.com/django-haystack/django-haystack/actions/workflows/test.yml. Pull requests with passing tests are far more likely to be reviewed and merged.

================================================
FILE: .github/workflows/black+isort.yml
================================================
name: black+isort

on: [pull_request, push]

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: 3.9
    - name: Install tools
      run: pip install black isort
    - name: Run black+isort
      run: |
        black --check --diff .
        isort --check .


================================================
FILE: .github/workflows/codeql-analysis.yml
================================================
name: "CodeQL"

on:
  push:
    branches: [master, ]
  pull_request:
    # The branches below must be a subset of the branches above
    branches: [master]
  schedule:
    - cron: '0 6 * * 5'

jobs:
  analyze:
    name: Analyze
    runs-on: ubuntu-latest

    steps:
    - name: Checkout repository
      uses: actions/checkout@v2

    # Initializes the CodeQL tools for scanning.
    - name: Initialize CodeQL
      uses: github/codeql-action/init@v1
      with:
        languages: python

    - name: Perform CodeQL Analysis
      uses: github/codeql-action/analyze@v1


================================================
FILE: .github/workflows/docs.yml
================================================
name: Build docs

on: [pull_request, push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: 3.9
    - name: Install dependencies
      run: pip install sphinx
    - name: Build docs
      run: cd docs && make html


================================================
FILE: .github/workflows/flake8.yml
================================================
name: flake8

on: [pull_request, push]

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: 3.9
    - name: Install tools
      run: pip install flake8 flake8-assertive flake8-bugbear flake8-builtins flake8-comprehensions flake8-logging-format
    - name: Run flake8
      run: flake8 example_project haystack


================================================
FILE: .github/workflows/test.yml
================================================
name: Test

on: [pull_request, push]

jobs:
  test:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        django-version: [2.2, 3.1, 3.2]
        python-version: [3.6, 3.7, 3.8, 3.9]
        elastic-version: [1.7, 2.4, 5.5]
        include:
          - django-version: 2.2
            python-version: 3.5
            elastic-version: 1.7
          - django-version: 2.2
            python-version: 3.5
            elastic-version: 2.4
          - django-version: 2.2
            python-version: 3.5
            elastic-version: 5.5
    services:
      elastic:
        image: elasticsearch:${{ matrix.elastic-version }}
        ports:
          - 9200:9200
      solr:
        image: solr:6
        ports:
          - 9001:9001
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install system dependencies
      run: sudo apt install --no-install-recommends -y gdal-bin
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip setuptools wheel
        pip install coverage requests
        pip install django==${{ matrix.django-version }} elasticsearch==${{ matrix.elastic-version }}
        python setup.py clean build install
    - name: Run test
      run: coverage run setup.py test



================================================
FILE: .gitignore
================================================
.settings
*.pyc
.DS_Store
_build
.*.sw[po]
*.egg-info
dist
build
MANIFEST
.tox
env
env3
*.egg
.eggs
.coverage
.idea

# Build artifacts from test setup
*.tgz
test_haystack/solr_tests/server/solr4/


================================================
FILE: AUTHORS
================================================
Primary Authors:

    * Daniel Lindsley
    * Matt Croydon (some documentation, sanity checks and the sweet name)
    * Travis Cline (the original SQ implementation, improvements to ModelSearchIndex)
    * David Sauve (notanumber) for the Xapian backend, the simple backend and various patches.
    * Jannis Leidel (jezdez)
    * Chris Adams (acdha)
    * Justin Caratzas (bigjust)
    * Andrew Schoen (andrewschoen)
    * Dan Watson (dcwatson)
    * Matt Woodward (mpwoodward)
    * Alex Vidal (avidal)
    * Zach Smith (zmsmith)
    * Stefan Wehrmeyer (stefanw)
    * George Hickman (ghickman)
    * Ben Spaulding (benspaulding)


Thanks to
    * Jacob Kaplan-Moss & Joseph Kocherhans for the original implementation of
      djangosearch, of which portions were used, as well as basic API feedback.
    * Christian Metts for designing the logo and building a better site.
    * Nathan Borror for testing and advanced form usage.
    * Malcolm Tredinnick for API feedback.
    * Mediaphormedia for funding the development on More Like This and faceting.
    * Travis Cline for API feedback, Git help and improvements to the reindex command.
    * Brian Rosner for various patches.
    * Richard Boulton for feedback and suggestions.
    * Cyberdelia for feedback and patches.
    * Ask Solem for for patching the setup.py.
    * Ben Spaulding for feedback and documentation patches.
    * smulloni for various patches.
    * JoeGermuska for various patches.
    * SmileyChris for various patches.
    * sk1p for various patches.
    * Ryszard Szopa (ryszard) for various patches.
    * Patryk Zawadzki (patrys) for various patches and feedback.
    * Frank Wiles for documentation patches.
    * Chris Adams (acdha) for various patches.
    * Kyle MacFarlane for various patches.
    * Alex Gaynor (alex) for help with handling deferred models with More Like This.
    * RobertGawron for a patch to the Highlighter.
    * Simon Willison (simonw) for various proposals and patches.
    * Ben Firshman (bfirsh) for faceting improvements and suggestions.
    * Peter Bengtsson for a patch regarding passing a customized site.
    * Sam Bull (osirius) for a patch regarding initial data on SearchForms.
    * slai for a patch regarding Whoosh and fetching all documents of a certain model type.
    * alanwj for a patch regarding Whoosh and empty MultiValueFields.
    * alanzoppa for a patch regarding highlighting.
    * piquadrat for a patch regarding the more_like_this template tag.
    * dedsm for a patch regarding the pickling of SearchResult objects.
    * EmilStenstrom for a patch to the Highlighter.
    * symroe for a patch regarding the more_like_this template tag.
    * ghostrocket for a patch regarding the simple backend.
    * Rob Hudson (robhudson) for improvements to the admin search.
    * apollo13 for simplifying ``SearchForm.__init__``.
    * Carl Meyer (carljm) for a patch regarding character primary keys.
    * oyiptong for a patch regarding pickling.
    * alfredo for a patch to generate epub docs.
    * Luke Hatcher (lukeman) for documentation patches.
    * Trey Hunner (treyhunner) for a Whoosh field boosting patch.
    * Kent Gormat of Retail Catalyst for funding the development of multiple index support.
    * Gidsy for funding the initial geospatial implementation
    * CMGdigital for funding the development on:
        * a multiprocessing-enabled version of ``update_index``.
        * the addition of ``--start/--end`` options in ``update_index``.
        * the ability to specify both apps & models to ``update_index``.
        * A significant portion of the geospatial feature.
        * A significant portion of the input types feature.
    * Aram Dulyan (Aramgutang) for fixing the included admin class to be Django 1.4 compatible.
    * Honza Kral (HonzaKral) for various Elasticsearch tweaks & testing.
    * Alex Vidal (avidal) for a patch allowing developers to override the queryset used for update operations.
    * Igor Támara (ikks) for a patch related to Unicode ``verbose_name_plural``.
    * Dan Helfman (witten) for a patch related to highlighting.
    * Matt DeBoard for refactor of ``SolrSearchBackend.search`` method to allow simpler extension of the class.
    * Rodrigo Guzman (rz) for a fix to query handling in the ``simple`` backend.
    * Martin J. Laubach (mjl) for fixing the logic used when combining querysets
    * Eric Holscher (ericholscher) for a docs fix.
    * Erik Rose (erikrose) for a quick pyelasticsearch-compatibility patch
    * Stefan Wehrmeyer (stefanw) for a simple search filter fix
    * Dan Watson (dcwatson) for various patches.
    * Andrew Schoen (andrewschoen) for the addition of ``HAYSTACK_IDENTIFIER_METHOD``
    * Pablo SEMINARIO (pabluk) for a docs fix, and a fix in the ElasticSearch backend.
    * Eric Thurgood (ethurgood) for a import fix in the Elasticssearch backend.
    * Revolution Systems & The Python Software Foundation for funding a significant portion of the port to Python 3!
    * Artem Kostiuk (postatum) for patch allowing to search for slash character in ElasticSearch since Lucene 4.0.
    * Luis Barrueco (luisbarrueco) for a simple fix regarding updating indexes using multiple backends.
    * Szymon Teżewski (jasisz) for an update to the bounding-box calculation for spatial queries
    * Chris Wilson (qris) and Orlando Fiol (overflow) for an update allowing the use of multiple order_by()
      fields with Whoosh as long as they share a consistent sort direction
    * Steven Skoczen (@skoczen) for an ElasticSearch bug fix
    * @Xaroth for updating the app loader to be compatible with Django 1.7
    * Jaroslav Gorjatsev (jarig) for a bugfix with index_fieldname
    * Dirk Eschler (@deschler) for app loader Django 1.7 compatibility fixes
    * Wictor (wicol) for a patch improving the error message given when model_attr references a non-existent
      field
    * Pierre Dulac (dulaccc) for a patch updating distance filters for ElasticSearch 1.x
    * Andrei Fokau (andreif) for adding support for ``SQ`` in ``SearchQuerySet.narrow()``
    * Phill Tornroth (phill-tornroth) for several patches improving UnifiedIndex and ElasticSearch support
    * Philippe Luickx (philippeluickx) for documenting how to provide backend-specific facet options
    * Felipe Prenholato (@chronossc) for a patch making it easy to exclude documents from indexing using custom logic
    * Alfredo Armanini (@phingage) for a patch fixing compatibility with database API changes in Django 1.8
    * Ben Spaulding (@benspaulding) for many updates for Django 1.8 support
    * Troy Grosfield (@troygrosfield) for fixing the test runner for Django 1.8
    * Ilan Steemers (@Koed00) for fixing Django 1.9 deprecation warnings
    * Ana Carolina (@anacarolinats) and Steve Bussetti (@sbussetti) for adding the ``fuzzy`` operator to
      SearchQuerySet
    * Tadas Dailyda (@skirsdeda) for various patches
    * Craig de Stigter (@craigds) for a patch fixing concurrency issues when building UnifiedIndex
    * Claude Paroz (@claudep) for Django 1.9 support
    * Chris Brooke (@chrisbrooke) for patching around a backwards-incompatible change in ElasticSearch 2
    * Gilad Beeri (@giladbeeri) for adding retries when updating a backend
    * Arjen Verstoep (@terr) for a patch that allows attribute lookups through Django ManyToManyField relationships
    * Tim Babych (@tymofij) for enabling backend-specific parameters in ``.highlight()``
    * Antony Raj (@antonyr) for adding endswith input type and fixing contains input type
    * Morgan Aubert (@ellmetha) for Django 1.10 support
    * João Junior (@joaojunior) and Bruno Marques (@ElSaico) for Elasticsearch 2.x support
    * Alex Tomkins (@tomkins) for various patches
    * Martin Pauly (@mpauly) for Django 2.0 support
    * Ryan Jarvis (@cabalist) for some code cleanup
    * Dulmandakh Sukhbaatar (@dulmandakh) for GitHub Actions support, and flake8, black, isort checks.
    * Deniz Dogan (@denizdogan) for adding support for the ``analyzer`` parameter for the Whoosh backend


================================================
FILE: CONTRIBUTING.md
================================================
# Contributing

Haystack is open-source and, as such, grows (or shrinks) & improves in part
due to the community. Below are some guidelines on how to help with the project.

## Philosophy

-   Haystack is BSD-licensed. All contributed code must be either
    -   the original work of the author, contributed under the BSD, or...
    -   work taken from another project released under a BSD-compatible license.
-   GPL'd (or similar) works are not eligible for inclusion.
-   Haystack's git master branch should always be stable, production-ready &
    passing all tests.
-   Major releases (1.x.x) are commitments to backward-compatibility of the public APIs.
    Any documented API should ideally not change between major releases.
    The exclusion to this rule is in the event of either a security issue
    or to accommodate changes in Django itself.
-   Minor releases (x.3.x) are for the addition of substantial features or major
    bugfixes.
-   Patch releases (x.x.4) are for minor features or bugfixes.

## Guidelines For Reporting An Issue/Feature

So you've found a bug or have a great idea for a feature. Here's the steps you
should take to help get it added/fixed in Haystack:

-   First, check to see if there's an existing issue/pull request for the
    bug/feature. All issues are at https://github.com/toastdriven/django-haystack/issues
    and pull reqs are at https://github.com/toastdriven/django-haystack/pulls.
-   If there isn't one there, please file an issue. The ideal report includes:
    -   A description of the problem/suggestion.
    -   How to recreate the bug.
    -   If relevant, including the versions of your:
        -   Python interpreter
        -   Django
        -   Haystack
        -   Search engine used (as well as bindings)
        -   Optionally of the other dependencies involved
-   Ideally, creating a pull request with a (failing) test case demonstrating
    what's wrong. This makes it easy for us to reproduce & fix the problem.

    Github has a great guide for writing an effective pull request:
    https://github.com/blog/1943-how-to-write-the-perfect-pull-request

    Instructions for running the tests are at
    https://django-haystack.readthedocs.io/en/latest/running_tests.html

You might also hop into the IRC channel (`#haystack` on `irc.freenode.net`)
& raise your question there, as there may be someone who can help you with a
work-around.

## Guidelines For Contributing Code

If you're ready to take the plunge & contribute back some code/docs, the
process should look like:

-   Fork the project on GitHub into your own account.
-   Clone your copy of Haystack.
-   Make a new branch in git & commit your changes there.
-   Push your new branch up to GitHub.
-   Again, ensure there isn't already an issue or pull request out there on it.
    If there is & you feel you have a better fix, please take note of the issue
    number & mention it in your pull request.
-   Create a new pull request (based on your branch), including what the
    problem/feature is, versions of your software & referencing any related
    issues/pull requests.

In order to be merged into Haystack, contributions must have the following:

-   A solid patch that:
    -   is clear.
    -   works across all supported versions of Python/Django.
    -   follows the existing style of the code base formatted with
        [`isort`](https://pypi.org/project/isort/) and
        [`Black`](https://pypi.org/project/black/) using the provided
        configuration in the repo
    -   comments included as needed to explain why the code functions as it does
-   A test case that demonstrates the previous flaw that now passes
    with the included patch.
-   If it adds/changes a public API, it must also include documentation
    for those changes.
-   Must be appropriately licensed (see [Philosophy](#philosophy)).
-   Adds yourself to the AUTHORS file.

If your contribution lacks any of these things, they will have to be added
by a core contributor before being merged into Haystack proper, which may take
substantial time for the all-volunteer team to get to.


================================================
FILE: LICENSE
================================================
Copyright (c) 2009-2013, Daniel Lindsley.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

    1. Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.

    2. Redistributions in binary form must reproduce the above copyright
       notice, this list of conditions and the following disclaimer in the
       documentation and/or other materials provided with the distribution.

    3. Neither the name of Haystack nor the names of its contributors may be used
       to endorse or promote products derived from this software without
       specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

---

Prior to April 17, 2009, this software was released under the MIT license.


================================================
FILE: MANIFEST.in
================================================
recursive-include docs *
recursive-include haystack/templates *.xml *.html
include AUTHORS
include LICENSE
include README.rst


================================================
FILE: README.rst
================================================
.. image:: https://github.com/django-haystack/django-haystack/actions/workflows/test.yml/badge.svg
      :target: https://github.com/django-haystack/django-haystack/actions/workflows/test.yml
.. image:: https://img.shields.io/pypi/v/django-haystack.svg
      :target: https://pypi.python.org/pypi/django-haystack/
.. image:: https://img.shields.io/pypi/pyversions/django-haystack.svg
      :target: https://pypi.python.org/pypi/django-haystack/
.. image:: https://img.shields.io/pypi/dm/django-haystack.svg
      :target: https://pypi.python.org/pypi/django-haystack/
.. image:: https://readthedocs.org/projects/django-haystack/badge/
      :target: https://django-haystack.readthedocs.io/
.. image:: https://img.shields.io/badge/code%20style-black-000.svg
      :target: https://github.com/psf/black
.. image:: https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336
      :target: https://pycqa.github.io/isort/

========
Haystack
========

:author: Daniel Lindsley
:date: 2013/07/28

Haystack provides modular search for Django. It features a unified, familiar
API that allows you to plug in different search backends (such as Solr_,
Elasticsearch_, Whoosh_, Xapian_, etc.) without having to modify your code.

.. _Solr: http://lucene.apache.org/solr/
.. _Elasticsearch: https://www.elastic.co/products/elasticsearch
.. _Whoosh: https://github.com/mchaput/whoosh/
.. _Xapian: http://xapian.org/

Haystack is BSD licensed, plays nicely with third-party app without needing to
modify the source and supports advanced features like faceting, More Like This,
highlighting, spatial search and spelling suggestions.

You can find more information at http://haystacksearch.org/.


Getting Help
============

There is a mailing list (http://groups.google.com/group/django-haystack/)
available for general discussion and an IRC channel (#haystack on
irc.freenode.net).


Documentation
=============

* Development version: http://docs.haystacksearch.org/
* v2.8.X: https://django-haystack.readthedocs.io/en/v2.8.1/
* v2.7.X: https://django-haystack.readthedocs.io/en/v2.7.0/
* v2.6.X: https://django-haystack.readthedocs.io/en/v2.6.0/

See the `changelog <docs/changelog.rst>`_

Requirements
============

Haystack has a relatively easily-met set of requirements.

* Python 3.5+
* A supported version of Django: https://www.djangoproject.com/download/#supported-versions

Additionally, each backend has its own requirements. You should refer to
https://django-haystack.readthedocs.io/en/latest/installing_search_engines.html for more
details.


================================================
FILE: docs/Makefile
================================================
# Makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS    =
SPHINXBUILD   = sphinx-build
PAPER         =

# Internal variables.
PAPEROPT_a4     = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS   = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .

.PHONY: help clean html web pickle htmlhelp latex changes linkcheck

help:
	@echo "Please use \`make <target>' where <target> is one of"
	@echo "  html      to make standalone HTML files"
	@echo "  pickle    to make pickle files"
	@echo "  json      to make JSON files"
	@echo "  htmlhelp  to make HTML files and a HTML help project"
	@echo "  latex     to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
	@echo "  changes   to make an overview over all changed/added/deprecated items"
	@echo "  linkcheck to check all external links for integrity"

clean:
	-rm -rf _build/*

html:
	mkdir -p _build/html _build/doctrees
	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
	@echo
	@echo "Build finished. The HTML pages are in _build/html."

pickle:
	mkdir -p _build/pickle _build/doctrees
	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle
	@echo
	@echo "Build finished; now you can process the pickle files."

web: pickle

json:
	mkdir -p _build/json _build/doctrees
	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) _build/json
	@echo
	@echo "Build finished; now you can process the JSON files."

htmlhelp:
	mkdir -p _build/htmlhelp _build/doctrees
	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp
	@echo
	@echo "Build finished; now you can run HTML Help Workshop with the" \
	      ".hhp project file in _build/htmlhelp."

latex:
	mkdir -p _build/latex _build/doctrees
	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
	@echo
	@echo "Build finished; the LaTeX files are in _build/latex."
	@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
	      "run these through (pdf)latex."

changes:
	mkdir -p _build/changes _build/doctrees
	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) _build/changes
	@echo
	@echo "The overview file is in _build/changes."

linkcheck:
	mkdir -p _build/linkcheck _build/doctrees
	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) _build/linkcheck
	@echo
	@echo "Link check complete; look for any errors in the above output " \
	      "or in _build/linkcheck/output.txt."

epub:
	$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) _build/epub
	@echo
	@echo "Build finished. The epub file is in _build/epub."


================================================
FILE: docs/_static/.gitignore
================================================


================================================
FILE: docs/_templates/.gitignore
================================================


================================================
FILE: docs/admin.rst
================================================
.. _ref-admin:

===================
Django Admin Search
===================

Haystack comes with a base class to support searching via Haystack in the
Django admin. To use Haystack to search, inherit from ``haystack.admin.SearchModelAdmin``
instead of ``django.contrib.admin.ModelAdmin``.

For example::

    from haystack.admin import SearchModelAdmin
    from .models import MockModel


    class MockModelAdmin(SearchModelAdmin):
        haystack_connection = 'solr'
        date_hierarchy = 'pub_date'
        list_display = ('author', 'pub_date')


    admin.site.register(MockModel, MockModelAdmin)

You can also specify the Haystack connection used by the search with the
``haystack_connection`` property on the model admin class. If not specified,
the default connection will be used.

If you already have a base model admin class you use, there is also a mixin
you can use instead::

    from django.contrib import admin
    from haystack.admin import SearchModelAdminMixin
    from .models import MockModel


    class MyCustomModelAdmin(admin.ModelAdmin):
        pass


    class MockModelAdmin(SearchModelAdminMixin, MyCustomModelAdmin):
        haystack_connection = 'solr'
        date_hierarchy = 'pub_date'
        list_display = ('author', 'pub_date')


    admin.site.register(MockModel, MockModelAdmin)


================================================
FILE: docs/architecture_overview.rst
================================================
.. _ref-architecture-overview:

=====================
Architecture Overview
=====================

``SearchQuerySet``
------------------

One main implementation.

* Standard API that loosely follows ``QuerySet``
* Handles most queries
* Allows for custom "parsing"/building through API
* Dispatches to ``SearchQuery`` for actual query
* Handles automatically creating a query
* Allows for raw queries to be passed straight to backend.


``SearchQuery``
---------------

Implemented per-backend.

* Method for building the query out of the structured data.
* Method for cleaning a string of reserved characters used by the backend.

Main class provides:

* Methods to add filters/models/order-by/boost/limits to the search.
* Method to perform a raw search.
* Method to get the number of hits.
* Method to return the results provided by the backend (likely not a full list).


``SearchBackend``
-----------------

Implemented per-backend.

* Connects to search engine
* Method for saving new docs to index
* Method for removing docs from index
* Method for performing the actual query


``SearchSite``
--------------

One main implementation.

* Standard API that loosely follows ``django.contrib.admin.sites.AdminSite``
* Handles registering/unregistering models to search on a per-site basis.
* Provides a means of adding custom indexes to a model, like ``ModelAdmins``.


``SearchIndex``
---------------

Implemented per-model you wish to index.

* Handles generating the document to be indexed.
* Populates additional fields to accompany the document.
* Provides a way to limit what types of objects get indexed.
* Provides a way to index the document(s).
* Provides a way to remove the document(s).


================================================
FILE: docs/autocomplete.rst
================================================
.. _ref-autocomplete:

============
Autocomplete
============

Autocomplete is becoming increasingly common as an add-on to search. Haystack
makes it relatively simple to implement. There are two steps in the process,
one to prepare the data and one to implement the actual search.

Step 1. Setup The Data
======================

To do autocomplete effectively, the search backend uses n-grams (essentially
a small window passed over the string). Because this alters the way your
data needs to be stored, the best approach is to add a new field to your
``SearchIndex`` that contains the text you want to autocomplete on.

You have two choices: ``NgramField`` and ``EdgeNgramField``. Though very similar,
the choice of field is somewhat important.

* If you're working with standard text, ``EdgeNgramField`` tokenizes on
  whitespace. This prevents incorrect matches when part of two different words
  are mashed together as one n-gram. **This is what most users should use.**
* If you're working with Asian languages or want to be able to autocomplete
  across word boundaries, ``NgramField`` should be what you use.

Example (continuing from the tutorial)::

    import datetime
    from haystack import indexes
    from myapp.models import Note


    class NoteIndex(indexes.SearchIndex, indexes.Indexable):
        text = indexes.CharField(document=True, use_template=True)
        author = indexes.CharField(model_attr='user')
        pub_date = indexes.DateTimeField(model_attr='pub_date')
        # We add this for autocomplete.
        content_auto = indexes.EdgeNgramField(model_attr='content')

        def get_model(self):
            return Note

        def index_queryset(self, using=None):
            """Used when the entire index for model is updated."""
            return Note.objects.filter(pub_date__lte=datetime.datetime.now())

As with all schema changes, you'll need to rebuild/update your index after
making this change.


Step 2. Performing The Query
============================

Haystack ships with a convenience method to perform most autocomplete searches.
You simply provide a field and the query you wish to search on to the
``SearchQuerySet.autocomplete`` method. Given the previous example, an example
search would look like::

    from haystack.query import SearchQuerySet

    SearchQuerySet().autocomplete(content_auto='old')
    # Result match things like 'goldfish', 'cuckold' and 'older'.

The results from the ``SearchQuerySet.autocomplete`` method are full search
results, just like any regular filter.

If you need more control over your results, you can use standard
``SearchQuerySet.filter`` calls. For instance::

    from haystack.query import SearchQuerySet

    sqs = SearchQuerySet().filter(content_auto=request.GET.get('q', ''))

This can also be extended to use ``SQ`` for more complex queries (and is what's
being done under the hood in the ``SearchQuerySet.autocomplete`` method).


Example Implementation
======================

The above is the low-level backend portion of how you implement autocomplete.
To make it work in browser, you need both a view to run the autocomplete
and some Javascript to fetch the results.

Since it comes up often, here is an example implementation of those things.

.. warning::

    This code comes with no warranty. Don't ask for support on it. If you
    copy-paste it and it burns down your server room, I'm not liable for any
    of it.

    It worked this one time on my machine in a simulated environment.

    And yeah, semicolon-less + 2 space + comma-first. Deal with it.

A stripped-down view might look like::

    # views.py
    import simplejson as json
    from django.http import HttpResponse
    from haystack.query import SearchQuerySet


    def autocomplete(request):
        sqs = SearchQuerySet().autocomplete(content_auto=request.GET.get('q', ''))[:5]
        suggestions = [result.title for result in sqs]
        # Make sure you return a JSON object, not a bare list.
        # Otherwise, you could be vulnerable to an XSS attack.
        the_data = json.dumps({
            'results': suggestions
        })
        return HttpResponse(the_data, content_type='application/json')

The template might look like::

    <!DOCTYPE html>
    <html>
    <head>
      <meta charset="utf-8">
      <title>Autocomplete Example</title>
    </head>
    <body>
      <h1>Autocomplete Example</h1>

      <form method="post" action="/search/" class="autocomplete-me">
        <input type="text" id="id_q" name="q">
        <input type="submit" value="Search!">
      </form>

      <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
      <script type="text/javascript">
        // In a perfect world, this would be its own library file that got included
        // on the page and only the ``$(document).ready(...)`` below would be present.
        // But this is an example.
        var Autocomplete = function(options) {
          this.form_selector = options.form_selector
          this.url = options.url || '/search/autocomplete/'
          this.delay = parseInt(options.delay || 300)
          this.minimum_length = parseInt(options.minimum_length || 3)
          this.form_elem = null
          this.query_box = null
        }

        Autocomplete.prototype.setup = function() {
          var self = this

          this.form_elem = $(this.form_selector)
          this.query_box = this.form_elem.find('input[name=q]')

          // Watch the input box.
          this.query_box.on('keyup', function() {
            var query = self.query_box.val()

            if(query.length < self.minimum_length) {
              return false
            }

            self.fetch(query)
          })

          // On selecting a result, populate the search field.
          this.form_elem.on('click', '.ac-result', function(ev) {
            self.query_box.val($(this).text())
            $('.ac-results').remove()
            return false
          })
        }

        Autocomplete.prototype.fetch = function(query) {
          var self = this

          $.ajax({
            url: this.url
          , data: {
              'q': query
            }
          , success: function(data) {
              self.show_results(data)
            }
          })
        }

        Autocomplete.prototype.show_results = function(data) {
          // Remove any existing results.
          $('.ac-results').remove()

          var results = data.results || []
          var results_wrapper = $('<div class="ac-results"></div>')
          var base_elem = $('<div class="result-wrapper"><a href="#" class="ac-result"></a></div>')

          if(results.length > 0) {
            for(var res_offset in results) {
              var elem = base_elem.clone()
              // Don't use .html(...) here, as you open yourself to XSS.
              // Really, you should use some form of templating.
              elem.find('.ac-result').text(results[res_offset])
              results_wrapper.append(elem)
            }
          }
          else {
            var elem = base_elem.clone()
            elem.text("No results found.")
            results_wrapper.append(elem)
          }

          this.query_box.after(results_wrapper)
        }

        $(document).ready(function() {
          window.autocomplete = new Autocomplete({
            form_selector: '.autocomplete-me'
          })
          window.autocomplete.setup()
        })
      </script>
    </body>
    </html>


================================================
FILE: docs/backend_support.rst
================================================
.. _ref-backend-support:

===============
Backend Support
===============


Supported Backends
==================

* Solr_
* ElasticSearch_
* Whoosh_
* Xapian_

.. _Solr: http://lucene.apache.org/solr/
.. _ElasticSearch: http://elasticsearch.org/
.. _Whoosh: https://github.com/mchaput/whoosh/
.. _Xapian: http://xapian.org/


Backend Capabilities
====================

Solr
----

**Complete & included with Haystack.**

* Full SearchQuerySet support
* Automatic query building
* "More Like This" functionality
* Term Boosting
* Faceting
* Stored (non-indexed) fields
* Highlighting
* Spatial search
* Requires: pysolr (2.0.13+) & Solr 3.5+

ElasticSearch
-------------

**Complete & included with Haystack.**

* Full SearchQuerySet support
* Automatic query building
* "More Like This" functionality
* Term Boosting
* Faceting (up to 100 facets)
* Stored (non-indexed) fields
* Highlighting
* Spatial search
* Requires: `elasticsearch-py <https://pypi.python.org/pypi/elasticsearch>`_ 1.x, 2.x, or 5.X.

Whoosh
------

**Complete & included with Haystack.**

* Full SearchQuerySet support
* Automatic query building
* "More Like This" functionality
* Term Boosting
* Stored (non-indexed) fields
* Highlighting
* Requires: whoosh (2.0.0+)
* Per-field analyzers

Xapian
------

**Complete & available as a third-party download.**

* Full SearchQuerySet support
* Automatic query building
* "More Like This" functionality
* Term Boosting
* Faceting
* Stored (non-indexed) fields
* Highlighting
* Requires: Xapian 1.0.5+ & python-xapian 1.0.5+
* Backend can be downloaded here: `xapian-haystack <http://github.com/notanumber/xapian-haystack/>`__

Backend Support Matrix
======================

+----------------+------------------------+---------------------+----------------+------------+----------+---------------+--------------+---------+
| Backend        | SearchQuerySet Support | Auto Query Building | More Like This | Term Boost | Faceting | Stored Fields | Highlighting | Spatial |
+================+========================+=====================+================+============+==========+===============+==============+=========+
| Solr           | Yes                    | Yes                 | Yes            | Yes        | Yes      | Yes           | Yes          | Yes     |
+----------------+------------------------+---------------------+----------------+------------+----------+---------------+--------------+---------+
| ElasticSearch  | Yes                    | Yes                 | Yes            | Yes        | Yes      | Yes           | Yes          | Yes     |
+----------------+------------------------+---------------------+----------------+------------+----------+---------------+--------------+---------+
| Whoosh         | Yes                    | Yes                 | Yes            | Yes        | No       | Yes           | Yes          | No      |
+----------------+------------------------+---------------------+----------------+------------+----------+---------------+--------------+---------+
| Xapian         | Yes                    | Yes                 | Yes            | Yes        | Yes      | Yes           | Yes (plugin) | No      |
+----------------+------------------------+---------------------+----------------+------------+----------+---------------+--------------+---------+


Unsupported Backends & Alternatives
===================================

If you have a search engine which you would like to see supported in Haystack, the current recommendation is
to develop a plugin following the lead of `xapian-haystack <https://pypi.python.org/pypi/xapian-haystack>`_ so
that project can be developed and tested independently of the core Haystack release schedule.

Sphinx
------

This backend has been requested multiple times over the years but does not yet have a volunteer maintainer. If
you would like to work on it, please contact the Haystack maintainers so your project can be linked here and,
if desired, added to the `django-haystack <https://github.com/django-haystack/>`_ organization on GitHub.

In the meantime, Sphinx users should consider Jorge C. Leitão's
`django-sphinxql <https://github.com/jorgecarleitao/django-sphinxql>`_ project.


================================================
FILE: docs/best_practices.rst
================================================
.. _ref-best-practices:

==============
Best Practices
==============

What follows are some general recommendations on how to improve your search.
Some tips represent performance benefits, some provide a better search index.
You should evaluate these options for yourself and pick the ones that will
work best for you. Not all situations are created equal and many of these
options could be considered mandatory in some cases and unnecessary premature
optimizations in others. Your mileage may vary.


Good Search Needs Good Content
==============================

Most search engines work best when they're given corpuses with predominantly
text (as opposed to other data like dates, numbers, etc.) in decent quantities
(more than a couple words). This is in stark contrast to the databases most
people are used to, which rely heavily on non-text data to create relationships
and for ease of querying.

To this end, if search is important to you, you should take the time to
carefully craft your ``SearchIndex`` subclasses to give the search engine the
best information you can. This isn't necessarily hard but is worth the
investment of time and thought. Assuming you've only ever used the
``BasicSearchIndex``, in creating custom ``SearchIndex`` classes, there are
some easy improvements to make that will make your search better:

* For your ``document=True`` field, use a well-constructed template.
* Add fields for data you might want to be able to filter by.
* If the model has related data, you can squash good content from those
  related models into the parent model's ``SearchIndex``.
* Similarly, if you have heavily de-normalized models, it may be best
  represented by a single indexed model rather than many indexed models.

Well-Constructed Templates
--------------------------

A relatively unique concept in Haystack is the use of templates associated with
``SearchIndex`` fields. These are data templates, will never been seen by users
and ideally contain no HTML. They are used to collect various data from the
model and structure it as a document for the search engine to analyze and index.

.. note::

    If you read nothing else, this is the single most important thing you can
    do to make search on your site better for your users. Good templates can
    make or break your search and providing the search engine with good content
    to index is critical.

Good templates structure the data well and incorporate as much pertinent text
as possible. This may include additional fields such as titles, author
information, metadata, tags/categories. Without being artificial, you want to
construct as much context as you can. This doesn't mean you should necessarily
include every field, but you should include fields that provide good content
or include terms you think your users may frequently search on.

Unless you have very unique numbers or dates, neither of these types of data
are a good fit within templates. They are usually better suited to other
fields for filtering within a ``SearchQuerySet``.

Additional Fields For Filtering
-------------------------------

Documents by themselves are good for generating indexes of content but are
generally poor for filtering content, for instance, by date. All search engines
supported by Haystack provide a means to associate extra data as
attributes/fields on a record. The database analogy would be adding extra
columns to the table for filtering.

Good candidates here are date fields, number fields, de-normalized data from
related objects, etc. You can expose these things to users in the form of a
calendar range to specify, an author to look up or only data from a certain
series of numbers to return.

You will need to plan ahead and anticipate what you might need to filter on,
though with each field you add, you increase storage space usage. It's generally
**NOT** recommended to include every field from a model, just ones you are
likely to use.

Related Data
------------

Related data is somewhat problematic to deal with, as most search engines are
better with documents than they are with relationships. One way to approach this
is to de-normalize a related child object or objects into the parent's document
template. The inclusion of a foreign key's relevant data or a simple Django
``{% for %}`` templatetag to iterate over the related objects can increase the
salient data in your document. Be careful what you include and how you structure
it, as this can have consequences on how well a result might rank in your
search.


Avoid Hitting The Database
==========================

A very easy but effective thing you can do to drastically reduce hits on the
database is to pre-render your search results using stored fields then disabling
the ``load_all`` aspect of your ``SearchView``.

.. warning::

    This technique may cause a substantial increase in the size of your index
    as you are basically using it as a storage mechanism.

To do this, you setup one or more stored fields (`indexed=False`) on your
``SearchIndex`` classes. You should specify a template for the field, filling it
with the data you'd want to display on your search results pages. When the model
attached to the ``SearchIndex`` is placed in the index, this template will get
rendered and stored in the index alongside the record.

.. note::

    The downside of this method is that the HTML for the result will be locked
    in once it is indexed. To make changes to the structure, you'd have to
    reindex all of your content. It also limits you to a single display of the
    content (though you could use multiple fields if that suits your needs).

The second aspect is customizing your ``SearchView`` and its templates. First,
pass the ``load_all=False`` to your ``SearchView``, ideally in your URLconf.
This prevents the ``SearchQuerySet`` from loading all models objects for results
ahead of time. Then, in your template, simply display the stored content from
your ``SearchIndex`` as the HTML result.

.. warning::

    To do this, you must absolutely avoid using ``{{ result.object }}`` or any
    further accesses beyond that. That call will hit the database, not only
    nullifying your work on lessening database hits, but actually making it
    worse as there will now be at least query for each result, up from a single
    query for each type of model with ``load_all=True``.


Content-Type Specific Templates
===============================

Frequently, when displaying results, you'll want to customize the HTML output
based on what model the result represents.

In practice, the best way to handle this is through the use of ``include``
along with the data on the ``SearchResult``.

Your existing loop might look something like::

    {% for result in page.object_list %}
        <p>
            <a href="{{ result.object.get_absolute_url }}">{{ result.object.title }}</a>
        </p>
    {% empty %}
        <p>No results found.</p>
    {% endfor %}

An improved version might look like::

    {% for result in page.object_list %}
        {% if result.content_type == "blog.post" %}
        {% include "search/includes/blog/post.html" %}
        {% endif %}
        {% if result.content_type == "media.photo" %}
        {% include "search/includes/media/photo.html" %}
        {% endif %}
    {% empty %}
        <p>No results found.</p>
    {% endfor %}

Those include files might look like::

    # search/includes/blog/post.html
    <div class="post_result">
        <h3><a href="{{ result.object.get_absolute_url }}">{{ result.object.title }}</a></h3>

        <p>{{ result.object.tease }}</p>
    </div>

    # search/includes/media/photo.html
    <div class="photo_result">
        <a href="{{ result.object.get_absolute_url }}">
        <img src="http://your.media.example.com/media/{{ result.object.photo.url }}"></a>
        <p>Taken By {{ result.object.taken_by }}</p>
    </div>

You can make this even better by standardizing on an includes layout, then
writing a template tag or filter that generates the include filename. Usage
might looks something like::

    {% for result in page.object_list %}
        {% with result|search_include as fragment %}
        {% include fragment %}
        {% endwith %}
    {% empty %}
        <p>No results found.</p>
    {% endfor %}


Real-Time Search
================

If your site sees heavy search traffic and up-to-date information is very
important, Haystack provides a way to constantly keep your index up to date.

You can enable the ``RealtimeSignalProcessor`` within your settings, which
will allow Haystack to automatically update the index whenever a model is
saved/deleted.

You can find more information within the :doc:`signal_processors` documentation.


Use Of A Queue For A Better User Experience
===========================================

By default, you have to manually reindex content, Haystack immediately tries to merge
it into the search index. If you have a write-heavy site, this could mean your
search engine may spend most of its time churning on constant merges. If you can
afford a small delay between when a model is saved and when it appears in the
search results, queuing these merges is a good idea.

You gain a snappier interface for users as updates go into a queue (a fast
operation) and then typical processing continues. You also get a lower churn
rate, as most search engines deal with batches of updates better than many
single updates. You can also use this to distribute load, as the queue consumer
could live on a completely separate server from your webservers, allowing you
to tune more efficiently.

Implementing this is relatively simple. There are two parts, creating a new
``QueuedSignalProcessor`` class and creating a queue processing script to
handle the actual updates.

For the ``QueuedSignalProcessor``, you should inherit from
``haystack.signals.BaseSignalProcessor``, then alter the ``setup/teardown``
methods to call an enqueuing method instead of directly calling
``handle_save/handle_delete``. For example::

    from haystack import signals


    class QueuedSignalProcessor(signals.BaseSignalProcessor):
        # Override the built-in.
        def setup(self):
            models.signals.post_save.connect(self.enqueue_save)
            models.signals.post_delete.connect(self.enqueue_delete)

        # Override the built-in.
        def teardown(self):
            models.signals.post_save.disconnect(self.enqueue_save)
            models.signals.post_delete.disconnect(self.enqueue_delete)

        # Add on a queuing method.
        def enqueue_save(self, sender, instance, **kwargs):
            # Push the save & information onto queue du jour here
            ...

        # Add on a queuing method.
        def enqueue_delete(self, sender, instance, **kwargs):
            # Push the delete & information onto queue du jour here
            ...

For the consumer, this is much more specific to the queue used and your desired
setup. At a minimum, you will need to periodically consume the queue, fetch the
correct index from the ``SearchSite`` for your application, load the model from
the message and pass that model to the ``update_object`` or ``remove_object``
methods on the ``SearchIndex``. Proper grouping, batching and intelligent
handling are all additional things that could be applied on top to further
improve performance.


================================================
FILE: docs/boost.rst
================================================
.. _ref-boost:

=====
Boost
=====


Scoring is a critical component of good search. Normal full-text searches
automatically score a document based on how well it matches the query provided.
However, sometimes you want certain documents to score better than they
otherwise would. Boosting is a way to achieve this. There are three types of
boost:

* Term Boost
* Document Boost
* Field Boost

.. note::

    Document & Field boost support was added in Haystack 1.1.

Despite all being types of boost, they take place at different times and have
slightly different effects on scoring.

Term boost happens at query time (when the search query is run) and is based
around increasing the score if a certain word/phrase is seen.

On the other hand, document & field boosts take place at indexing time (when
the document is being added to the index). Document boost causes the relevance
of the entire result to go up, where field boost causes only searches within
that field to do better.

.. warning::

  Be warned that boost is very, very sensitive & can hurt overall search
  quality if over-zealously applied. Even very small adjustments can affect
  relevance in a big way.

Term Boost
==========

Term boosting is achieved by using ``SearchQuerySet.boost``. You provide it
the term you want to boost on & a floating point value (based around ``1.0``
as 100% - no boost).

Example::

    # Slight increase in relevance for documents that include "banana".
    sqs = SearchQuerySet().boost('banana', 1.1)

    # Big decrease in relevance for documents that include "blueberry".
    sqs = SearchQuerySet().boost('blueberry', 0.8)

See the :doc:`searchqueryset_api` docs for more details on using this method.


Document Boost
==============

Document boosting is done by adding a ``boost`` field to the prepared data
``SearchIndex`` creates. The best way to do this is to override
``SearchIndex.prepare``::

    from haystack import indexes
    from notes.models import Note


    class NoteSearchIndex(indexes.SearchIndex, indexes.Indexable):
        # Your regular fields here then...

        def prepare(self, obj):
            data = super(NoteSearchIndex, self).prepare(obj)
            data['boost'] = 1.1
            return data


Another approach might be to add a new field called ``boost``. However, this
can skew your schema and is not encouraged.


Field Boost
===========

Field boosting is enabled by setting the ``boost`` kwarg on the desired field.
An example of this might be increasing the significance of a ``title``::

    from haystack import indexes
    from notes.models import Note


    class NoteSearchIndex(indexes.SearchIndex, indexes.Indexable):
        text = indexes.CharField(document=True, use_template=True)
        title = indexes.CharField(model_attr='title', boost=1.125)

        def get_model(self):
            return Note

.. note::

  Field boosting only has an effect when the SearchQuerySet filters on the
  field which has been boosted. If you are using a default search view or
  form you will need override the search method or other include the field
  in your search query. This example CustomSearchForm searches the automatic
  ``content`` field and the ``title`` field which has been boosted::

    from haystack.forms import SearchForm

    class CustomSearchForm(SearchForm):

        def search(self):
            if not self.is_valid():
                return self.no_query_found()

            if not self.cleaned_data.get('q'):
                return self.no_query_found()

            q = self.cleaned_data['q']
            sqs = self.searchqueryset.filter(SQ(content=AutoQuery(q)) | SQ(title=AutoQuery(q)))

            if self.load_all:
                sqs = sqs.load_all()

            return sqs.highlight()


================================================
FILE: docs/changelog.rst
================================================
Changelog
=========


%%version%% (unreleased)
------------------------
- Docs: don't tell people how to install Python packages. [Chris Adams]

  It's 2018, "pip install <packagename>" is the only thing we should
  volunteer.
- Update Elasticsearch documentation. [Chris Adams]

  * Add 5.x to supported versions
  * Replace configuration and installation information with
    pointers to the official docs
  * Stop mentioning pyes since it’s fallen behind the official
    client in awareness
  * Don’t tell people how to install Python packages
- Fix get_coords() calls. [Chris Adams]
- Update README & contributor guide. [Chris Adams]
- Blacken. [Chris Adams]
- Isort everything. [Chris Adams]
- Update code style settings. [Chris Adams]

  Prep for Blackening
- Remove PyPy / Django 2 targets. [Chris Adams]

  We'll restore these when pypy3 is more mainstream
- Use default JRE rather than requiring Oracle. [Chris Adams]

  OpenJDK is also supported and that does not require accepting a license.
- Changed ES5.x test skip message to match the friendlier 2.x one.
  [Bruno Marques]
- Fixed faceted search and autocomplete test. [Bruno Marques]
- Removed ES5 code that actually never runs. [Bruno Marques]
- Fixed kwargs in ES5's build_search_query. [Bruno Marques]
- ES5: fixed MLT, within and dwithin. [Bruno Marques]
- Assorted ES5.x fixes. [Bruno Marques]
- Re-added sorting, highlighting and suggesting to ES5.x backend. [Bruno
  Marques]
- Fixed filters and fuzziness on ES5.x backend. [Bruno Marques]
- Added Java 8 to Travis dependencies. [Bruno Marques]
- Started Elasticsearch 5.x support. [Bruno Marques]
- Style change to avoid ternary logic on the end of a line. [Chris
  Adams]

  This is unchanged from #1475 but avoids logic at the end of the line
- Do not raise when model cannot be searched. [benvand]

  * Return empty string.
  * Test.
- Merge pull request #1616 from hornn/batch_order. [Chris Adams]

  Order queryset by pk in update batching
- Order queryset by pk in update batching This solves #1615. [Noa Horn]

  The queryset is not ordered by pk by default, however the batching filter relies on the results being ordered.
  When the results are not ordered by pk, some objects are not indexed.
  This can happen when the underlying database doesn't have default ordering by pk, or when the model or index_queryset() have a different ordering.
- Merge pull request #1612 from hornn/patch-1. [Chris Adams]

  Construct django_ct based on model instead of object
- Update indexes.py. [Noa Horn]

  Construct django_ct based on model instead of object.
  This solves issue #1611 - delete stale polymorphic model documents.
- Merge pull request #1610 from erez-o/patch-1. [Chris Adams]

  Update installing_search_engines.rst
- Update installing_search_engines.rst. [Chris Adams]
- Update installing_search_engines.rst. [Erez Oxman]

  Updated docs about Solr 6.X+ "More like this"
- Avoid UnicodeDecodeError when an error occurs while resolving
  attribute lookups. [Chris Adams]

  Thanks to Martin Burchell (@martinburchell) for the patch in #1599
- Fix UnicodeDecodeError in error message. [Martin Burchell]

  Because of the way the default __repr__ works in Django models, we can get a
  UnicodeDecodeError when creating the SearchFieldError if a model does not have
  an attribute. eg:
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128)
  and this hides the real problem.

  I have left alone the other SearchFieldError in this method because current_obj is always
  None. The error message is a bit strange in this case but it won't suffer from the same problem.
- Add max retries option to rebuild_index, matching update_index. [Chris
  Adams]

  Thanks to @2miksyn for the patch in #1598
- Update rebuild_index.py. [2miksyn]

  Add max-retries argument to rebuild_index managment command. This is useful for debug at development time

  Add Django 2.1 compatibility. [Tim Graham]


v2.8.1 (2018-03-16)
-------------------
- Merge pull request #1596 from klass-ivan/collecting-deep-attr-through-
  m2m. [Chris Adams]

  Fixed collection of deep attributes through m2m relation
- Fixed collection of deep attributes through m2m relation. [Ivan Klass]


v2.8.0 (2018-03-09)
-------------------
- Optimize ElasticSearch backend (closes #1590) [Chris Adams]

  Thanks to @klass-ivan for the patch
- [elasticsearch backend] - Fixed index re-obtaining for every field.
  [Ivan Klass]
- Django 2.0 compatibility (closes #1582) [Chris Adams]

  Thanks to @mpauly and @timgraham for working on this and @dani0805,
  @andrewbenedictwallace, @rabidcicada, @webtweakers, @nadimtuhin, and
  @JonLevischi for testing.
- Implemented TG's review comments. [Martin Pauly]
- Drop support for old django versions. [Martin Pauly]
- For some reason the mock needs to return something. [Martin Pauly]
- Django 2.0 changes to tests. [Martin Pauly]
- Dropped a few unnecessary interactive=False. [Martin Pauly]
- Replace get_coords() by coords in more places. [Martin Pauly]
- Ignore python2 Django2 combination. [Martin Pauly]
- Drop tests for Django < 1.11. [Martin Pauly]
- Update requirements in setup.py. [Martin Pauly]
- Update imports to drop Django 1.8 support. [Martin Pauly]
- Fix intendation error in tox.ini. [Martin Pauly]
- Merge https://github.com/django-haystack/django-haystack. [Martin
  Pauly]
- Added a test for exclusion of M2M fields for ModelSearchIndex. [Martin
  Pauly]
- In Django 2.0 ForeinKeys must have on_delete. [Martin Pauly]
- Assuming that everyone who wants to run these tests upgrades pysolr.
  [Martin Pauly]
- Django 2.0 is not compatible with python 2.7. [Martin Pauly]
- Deal with tuples and strings. [Martin Pauly]
- Fix a bug due to string __version__ of pysolr. [Martin Pauly]
- Fix tox. [Martin Pauly]
- Mocking order. [Martin Pauly]
- Reverse order. [Martin Pauly]
- Update test - the interactive kwarg is only passed to the clear_index
  command. [Martin Pauly]
- Revert "Trigger travis build" [Martin Pauly]

  This reverts commit 7a9ac3824d7c6d5a9de63e4144ccb8c78daf60d6.
- Trigger travis build. [Martin Pauly]
- Update authors. [Martin Pauly]
- Update tests. [Martin Pauly]
- Update imports. [Martin Pauly]
- Fix missing attribute rel. [Martin Pauly]
- Add the corresponding option for update_index. [Martin Pauly]
- Fix import order. [Martin Pauly]
- Exclude unused options for call of clear_index and update_index.
  [Martin Pauly]
- Merge pull request #1576 from claudep/pep479. [Chris Adams]

  Replaced deprecated StopIteration by simple return
- Replaced deprecated StopIteration by simple return. [Claude Paroz]

  Compliance to PEP 479.
- Merge pull request #1588 from bit/patch-1. [Justin Caratzas]

  make BaseInput.__repr__ for in python3
- Update inputs.py. [bit]
- Make BaseInput.__repr__ for in python3. [bit]

  remove call to __unicode__


v2.7.0 (2018-01-29)
-------------------
- Use Python 3-compatible version comparison. [Chris Adams]
- Add Django 1.11 and Python 3.6 to tox config. [Chris Adams]
- Tests use pysolr version_info to work on Python 3.6. [Chris Adams]
- Upgrade dependencies. [Chris Adams]
- Align haystack's version attributes with pysolr. [Chris Adams]

  __version__ = pkg resource string
  version_info = more usable tuple
- Fixed order_by multiple fields in whoosh backend. [Chris Adams]

  Thanks @rjhelms and @TTGmarkad for the patch

  Closes #604
- Fixed order_by multiple fields in whoosh backend. [Rob Hailman]

  Implemented fix as suggested in issue #604
- Merge pull request #1551 from RabidCicada/uuid-pk-fix. [Chris Adams]

  Uuid pk fix
- Fixed final bug with test_related_load_all_queryset test. [Kyle Stapp]
- Fixing errors. [Kyle Stapp]
- Initial attempt at adding testing framework for uuid models. [Kyle
  Stapp]
- Coerce the pk string to the type that matches the models pk object.
  [Kyle Stapp]
- Merge pull request #1555 from whyscream/django-pinning. [Chris Adams]

  Fix django version pinning in setup.py
- Fix django pinning in setup.py. [Tom Hendrikx]
- Remove unused import. [Chris Adams]
- Update_index: remove dead variable assignment. [Chris Adams]

  This declaration was meaningless since the value would be unconditionally overwritten by the `total = qs.count()` statement above on the next loop iteration, before anything read the value.
- PEP-8. [Chris Adams]
- LocationField.convert() will raise TypeError for unknown inputs.
  [Chris Adams]
- Whoosh: prevent more_like_this from hitting an uninitialized variable.
  [Chris Adams]

  This was uncommon but previously possible
- Remove dead code from Whoosh backend. [Chris Adams]
- PEP-8. [Chris Adams]
- Merge pull request #1526 from RabidCicada/better-default-configs.
  [Chris Adams]

  Better default configs
- Comment editing. [Chris Adams]
- Adding the template updates I forgot. [Kyle Stapp]
- Merge pull request #1544 from jbzdak/jbzdak-patch. [Chris Adams]

  Update haystack.generic_views.SearchView to handle empty GET requests
- Update generic_views.py. [Jacek Bzdak]

  Fix for inconsistent  behavior when GET parameters are present.
- Merge pull request #1541 from alasdairnicol/patch-1. [Chris Adams]

  Add link to 2.5.x docs
- Add link to 2.5.x docs. [Alasdair Nicol]
- Updated config setting for solr 6.5. [Jaimin]

  Updated documentation to enable spellcheck for Solr 6.5.
- Add load_all to the generic views form kwargs. [Alex Tomkins]

  The deprecated views in views.py automatially pass `load_all` to the search form. Class based generic views will now match this behaviour.
- Update who_uses.rst. [davneet4u]
- Update who_uses.rst. [davneet4u]
- Added teachoo to sites using. [davneet4u]
- Merge pull request #1527 from palmeida/patch-1. [Chris Adams]

  Remove extraneous word
- Remove extraneous word. [Paulo Almeida]
- Merge pull request #1530 from tomkins/travis-elasticsearch. [Chris
  Adams]

  Fix elasticsearch installation in travis
- Fix elasticsearch installation in travis. [Alex Tomkins]

  Recent travis updates installed a later version of elasticsearch by default, so we need to force a downgrade to test the right versions.
- Changed GeoDjango Link. [Mohit Khandelwal]

  Changed GeoDjango link from geodjango.org to https://docs.djangoproject.com/en/1.11/ref/contrib/gis/
- Ensure that custom highlighter tests consistently clean up monkey-
  patches. [Chris Adams]

  This didn't cause problems currently but there's no point in leaving a
  trap for the future.
- Prefer full import path for Highlighter. [Chris Adams]

  This maintains compatibility with existing code but updates
  the docs & tests to use `haystack.utils.highlighting` rather
  than just `haystack.utils` to import `Highlighter`.
- PEP-8. [Chris Adams]
- Update default identifier to support UUID primary keys. [Chris Adams]

  Thanks to @rabidcicada for the patch & tests!

  Closes #1498
  Closes #1497
  Closes #1515
- Merge pull request #1479 from mjl/mjl-issue-1077. [Chris Adams]

  rebuild_index slowdown fix (#1077)
- Merge remote-tracking branch 'upstream/master' into mjl-issue-1077.
  [Martin J. Laubach]
- Merge branch '1504-solr-6-by-default' [Chris Adams]
- Documentation copy-editing. [Chris Adams]
- Tidy build_solr_schema help text and exceptions. [Chris Adams]
- Build_solr_schema: reload should not assume the backend name. [Chris
  Adams]
- Attempt to fix on Travis.  I guess it runs from different directory.
  [Kyle T Stapp]
- Cleaner approach based on acdh's comments.  We don't carry around
  baggage....but I also am not worried that random lines will get
  inserted into alien future configs. [Kyle T Stapp]
- Updated docs to add warning about template filename change.  Fixed
  typo. [Kyle T Stapp]
- Removed Unnecessary stopword files as requested. [Kyle T Stapp]
- Updated docs to match new implementation. [Kyle T Stapp]
- Tidying test suite. [Chris Adams]

  * Remove some test utilities which were only used once
    or (after refactoring) not at all
  * PEP-8 cleanup
- Tidy Solr backend tests. [Chris Adams]

  * Use assertSetEqual for prettier debug output on failure
  * Whitespace around operators
- Update build_solr_schema arguments. [Chris Adams]

  * Use longer names for command-line options
  * Tidy variable names & error messages
- Tests: better name for Solr-specific management commands. [Chris
  Adams]

  This makes things like editor open-by-name shortcuts less confusing
- Update Solr management command tests. [Chris Adams]

  * Use os.path.join for filesystem path construction
  * PEP-8 variable naming, whitespace
  * Use assertGreater for str.find checks on rendered XML
- Solr: ensure that the default document field is always applied. [Chris
  Adams]

  This is normally moot but newer versions of Solr have deprecated the
  <defaultSearchField> configuration option and certain Haystack queries
  may break if you have removed that configuration element.
- Update Solr spelling suggestion handling. [Chris Adams]

  The support matrix for this is a problem since the Solr response format changes based on the version,
  configuration, and query parameters (i.e. spellcheck.collateExtendedResults) so this is moved into a separate function which logs errors and honors
  the backend fail silently setting.

  This has been tested using Solr 6.4 and 6.5 with both
  the regular and collateExtendedResults formats.
- Addressing Chris' comments on comment style :) >.< [Kyle T Stapp]
- Addressing Chris' comments on boolean check. [Kyle T Stapp]
- Moved constants.HAYSTACK_DOCUMENT_FIELD to constants.DOCUMENT_FIELD to
  follow convention. [Kyle T Stapp]
- Test Solr launcher updates. [Chris Adams]

  * Ensure the log directory exists
  * Remove dead code
  * Remove GC_LOG_OPTS assignments
- Build_solr_schema tidying. [Chris Adams]

  * Construct filesystem paths using `os.path`
  * Remove need to use `traceback`
  * Avoid dealing with HTTP request URL encoding
- Build_solr_schema: less abbreviated keyword argument name. [Chris
  Adams]
- Tidy imports. [Chris Adams]
- PEP-8. [Chris Adams]
- PEP-8. [Chris Adams]
- Remove unused imports. [Chris Adams]
- Run isort on files updated in this branch. [Chris Adams]
- Merge and deconflict of upstream PEP8 changes. [Kyle T Stapp]
- PEP8 Fixes.  Mostly ignoring line length PEP violations due to
  conciseness of assertStatements. [Kyle T Stapp]
- Python 3 compatibility updates. [Kyle T Stapp]
- Allow overriding collate for spellcheck at most entrypoints that
  accept kwargs (search mlt etc).  get_spelling_suggestions() will need
  to be updated. [Kyle T Stapp]
- Fixing a problem introduced in build_template. [Kyle T Stapp]
- Working template management and tests.  Lots of plumbing to test.
  More tests to come soon. [Kyle T Stapp]
- Final Fixes to support 6.4.0 and 6.5.0 spelling suggestions. [Kyle T
  Stapp]
- Thinking solr versoin is wrong. [Kyle T Stapp]
- Printing raw response that I found existed:) [Kyle T Stapp]
- More troubleshooting and fixing old test back to original check. [Kyle
  T Stapp]
- More troubleshooting. [Kyle T Stapp]
- Fix wrong object in test for spelling suggestions. [Kyle T Stapp]
- More troubleshooting. [Kyle T Stapp]
- More troubleshooting. [Kyle T Stapp]
- Troubleshooting travis failure that is not replicatable here. [Kyle T
  Stapp]
- Adjusting matrix to include django 1.11.  Adjusting wait_for_solr
  script to try to ping correct location.  Adding ping handler. [Kyle T
  Stapp]
- Trying to get a travis platform that supports jdk setting. [Kyle T
  Stapp]
- Attempting to get travis to see jdk8 request. [Kyle T Stapp]
- Fix result_class swap failure. [Kyle T Stapp]
- Fix Collation based results.  Add future plumbing for returning more
  than one 'suggestion' but keep current behavior. Update schema
  definition to get rid of _text_ [Kyle T Stapp]
- Fix LiveSolrSearchQueryTestCase.  Specifically spellcheck.  Added
  spellcheck to select requestHandler and fixed parsing changes needed
  in core on our side. [Kyle T Stapp]
- Fix LiveSolrMoreLikeThisTestCase. Also fix the deferred case (whoops)
  [Kyle T Stapp]
- Fix LiveSolrMoreLikeThisTestCase. [Kyle T Stapp]
- Fixed LiveSolrAutocompleteTestCase Failure. [Kyle T Stapp]
- Fixed LiveSolrContentExtractionTestCase Failure.  Reworked core
  creation and configuration a little. [Kyle T Stapp]
- Reworked start-solr-test-server to work with modern solr.  Reworked
  solr spinup to create a default core using predefined config in
  server/confdir. [Kyle T Stapp]
- Update solr template to be solr6 compatible. [Kyle T Stapp]
- Fix to tests to run with context dicts instead of context objects for
  django 1.10. [Kyle T Stapp]
- Fix django template context passing. [Kyle T Stapp]
- Merge pull request #1500 from rafaelhdr/master. [Chris Adams]

  Updated tutorial URL configuration example
- Updated README for CKEditor URL include. [Rafael]
- Management command update_index: Use last seen max pk for selecting
  batch starting point. [Martin J. Laubach]

  This fixes (or at least mitigates) issue #1077 for the synchronous update case.


v2.6.1 (2017-05-15)
-------------------
- PEP-8. [Chris Adams]
- Update SearchBackend.update signature to match implementations. [Chris
  Adams]

  Every actual SearchBackend implementation had this but the base class
  did not and that could cause confusion for external projects - e.g.

  https://github.com/notanumber/xapian-haystack/commit/d3f1e011da3d9bebd88c78fe7a87cd6171ae650c
- Update SearchIndex get_backend API (closes #663) [Chris Adams]

  Make _get_backend a proper public method since it’s
  recommended by at least one part of the documentation.
- Extract_file_contents will pass extra keyword arguments to pysolr
  (#1505) [Chris Adams]

  Thanks to @guglielmo for the patch
- Extract_file_contents accept extra arguments. [Guglielmo Celata]

  so that it may be used to extract content in textual format, instead of using XML, for example
- PEP-8 line-lengths and whitespace. [Chris Adams]
- Better handling of empty lists in field preparation. [Chris Adams]

  Merge pull request #1369 from janwin/fix-empty-list-convert
- Cherrypick Terr/django-
  haystack/commit/45293cafbed0ef6aeb145ce55573eb32b1e4981f. [janpleines]
- Make empty lists return null or default. [janpleines]
- Merge pull request #1483 from barseghyanartur/patch-1. [Chris Adams]

  Update tutorial.rst
- Update tutorial.rst. [Artur Barseghyan]

  Added elasticsearch 2.x setting example.
- SearchView: always include spelling suggestions. [Josh Goodwin]

  Previously a search which returned no results would not have the
  "suggestion" context variable present. Now it will be defined but None.

  Thanks to Joshua Goodwin (@jclgoodwin) for the patch.

  Closes #644
- Update changelog. [Chris Adams]
- Merge pull request #1469 from stephenpaulger/patch-1. [Chris Adams]

  Add 2.6.X docs link to README.
- Add 2.6.X docs link to README. [Stephen Paulger]


v2.6.0 (2017-01-04)
-------------------
- Update changelog. [Chris Adams]
- Merge #1460: backend support for Elasticsearch 2.x. [Chris Adams]

  Thanks to João Junior (@joaojunior) and Bruno Marques (@ElSaico) for the
  patch

  Closes #1460
  Closes #1391
  Closes #1336
  Closes #1247
- Docs: update Elasticsearch support status. [Chris Adams]
- Tests: avoid unrelated failures when elasticsearch is not installed.
  [Chris Adams]

  This avoids spurious failures in tests for other search engines when the
  elasticsearch client library is not installed at all but the ES backend
  is still declared in the settings.
- Tests: friendlier log message for ES version checks. [Chris Adams]

  This avoids a potentially scary-looking ImportError flying by in the
  test output for what's expected in normal usage.
- Tests: update ES version detection in settings. [Chris Adams]

  This allows the tests to work when run locally or otherwise outside of
  our Travis / Tox scripts by obtaining the version from the installed
  `elasticsearch` client library.
- Tests: update ES1 client version check message. [Chris Adams]

  The name of the Python module changed over time and this now matches the
  ES2 codebase behaviour of having the error message give you the exact
  package to install including the version.
- Update travis script with ES documentation. [Chris Adams]

  Add a comment for anyone wondering why this isn't a simple
  `add-apt-repository` call
- Fixed More Like This test with deferred query on Elasticsearch 2.x.
  [Bruno Marques]
- Fixed expected query behaviour on ES2.x test. [Bruno Marques]
- Install elasticsearch2.0 via apt. [joaojunior]
- Install elasticsearch2.0 via apt. [joaojunior]
- Remove typo. [joaojunior]
- Remove services elasticsearch. [joaojunior]
- Fix typo. [joaojunior]
- Sudo=true in .travis.yml to install elasticsearch from apt-get.
  [joaojunior]
- Fix .travis. [joaojunior]
- Add logging in __init__ tests elasticsearch. [joaojunior]
- Get changes from Master to resolve conflicts. [joaojunior]
- Install elasticsearch1.7 via apt. [joaojunior]
- Update Files to run tests in Elasticsearch2.x. [joaojunior]
- Refactoring the code in pull request #1336 . This pull request is to
  permit use ElasticSearch 2.X. [joaojunior]
- Improved custom object identifier test. [Chris Adams]

  This provides an example for implementors and ensures that failing to
  use the custom class would cause a test failure.
- Update management backend documentation for `--using` [flinkflonk]

  Thanks to @flinkflonk for the patch!

  Closes #1215
- Fix filtered "more like this" queries (#1459) [David Cook]

  Now the Solr backend correctly handles a `more_like_this()` query which is subsequently `filter()`-ed.

  Thanks to @divergentdave for the patch and tests!
- ReStructuredText link format fixes. (#1458) [John Heasly]
- Add note to Backend Support docs about lack of ES 5.X support. (#1457)
  [John Heasly]
- Replace deprecated Point.get_coords() calls. [Chris Adams]

  This works as far back as Django 1.8, which is the earliest which we
  support.

  See #1454
- Use setuptools_scm to manage package version numbers. [Chris Adams]


v2.5.1 (2016-10-28)
-------------------

New
~~~
- Support for Django 1.10. [Chris Adams]

  Thanks to Morgan Aubert (@ellmetha) for the patch

  Closes #1434
  Closes #1437
  Closes #1445

Fix
~~~
- Contains filter, add endswith filter. [Antony]

  * `__contains` now works in a more intuitive manner (the previous behaviour remains the default for `=` shortcut queries and can be requested explicitly with `__content`)
  * `__endswith` is now supported as the logical counterpart to `__startswith`

  Thanks to @antonyr for the patch and @sebslomski for code review and testing.

Other
~~~~~
- V2.5.1. [Chris Adams]
- Add support for Django 1.10 (refs: #1437, #1434) [Morgan Aubert]
- Docs: fix Sphinx hierarchy issue. [Chris Adams]
- Fix multiprocessing regression in update_index. [Chris Adams]

  4e1e2e1c5df1ed1c5432b9d26fcb9dc1abab71f4 introduced a bug because it
  used a property name which exists on haystack.ConnectionHandler but not
  the Django ConnectionHandler class it's modeled on. Long-term, we should
  rename the Haystack class to something like `SearchConnectionHandler`
  to avoid future confusion.

  Closes #1449
- Doc: cleanup searchindex_api.rst. [Jack Norman]

  Thanks to Jack Norman (@jwnorman) for the patch
- Merge pull request #1444 from jeremycline/master. [Chris Adams]

  Upgrade setuptools in Travis so urllib3-1.18 installs
- Upgrade setuptools in Travis so urllib3-1.18 installs. [Jeremy Cline]

  The version of setuptools in Travis is too old to handle <= as an
  environment marker.
- Tests: accept Solr/ES config from environment. [Chris Adams]

  This makes it easy to override these values for e.g. running test
  instances using Docker images with something like this:

  ```
  TEST_ELASTICSEARCH_1_URL="http://$(docker port elasticsearch-1.7 9200/tcp)/" TEST_SOLR_URL="http://$(docker port solr-6 8983/tcp)/solr/" test_haystack/run_tests.py
  ```

  See #1408
- Merge pull request #1418 from Alkalit/master. [Steve Byerly]

  Added link for 2.5.x version docs
- Added link for 2.5.x version. [Alexey Kalinin]
- Merge pull request #1432 from farooqaaa/master. [Steve Byerly]

  Added missing `--batch-size` argument for `rebuild_index` management command.
- Added missing --batch-size argument. [Farooq Azam]
- Merge pull request #1036 from merwok/patch-1. [Steve Byerly]

  Documentation update
- Use ellipsis instead of pass. [Éric Araujo]
- Fix code to enable highlighting. [Éric Araujo]
- Merge pull request #1392 from browniebroke/bugfix/doc-error. [Steve
  Byerly]

  Fix Sphinx errors in the changelog
- Fix Sphinx errors in the changelog. [Bruno Alla]
- Merge pull request #1341 from tymofij/solr-hl-options. [Steve Byerly]
- Merge master > tymofij/solr-hl-options. [Steve Byerly]
- Make solr backend accept both shortened and full-form highlighting
  options. [Tim Babych]
- Autoprefix 'hl.' for solr options. [Tim Babych]
- Update gitignore to not track test artifacts. [Steve Byerly]
- Merge pull request #1413 from tymofij/patch-2. [Steve Byerly]

  typo: suite -> suit
- Typo: suite -> suit. [Tim Babych]
- Merge pull request #1412 from SteveByerly/highlight_sqs_docs. [Steve
  Byerly]

  improve sqs highlight docs - illustrate custom parameters
- Improve highlight docs for custom options. [Steve Byerly]


v2.5.0 (2016-07-12)
-------------------

New
~~~
- SearchQuerySet.set_spelling_query for custom spellcheck. [Chris Adams]

  This makes it much easier to customize the text sent to the
  backend search engine for spelling suggestions independently
  from the actual query being executed.
- Support ManyToManyFields in model_attr lookups. [Arjen Verstoep]

  Thanks to @Terr for the patch
- `update_index` will retry after backend failures. [Gilad Beeri]

  Now `update_index` will retry failures multiple times before aborting
  with a progressive time delay.

  Thanks to Gilad Beeri (@giladbeeri) for the patch
- `highlight()` accepts custom values on Solr and ES. [Chris Adams]

  This allows the default values to be overriden and arbitrary
  backend-specific parameters may be provided to Solr or ElasticSearch.

  Thanks to @tymofij for the patch

  Closes #1334
- Allow Routers to return multiple indexes. [Chris Adams]

  Thanks to Hugo Chargois (@hchargois) for the patch

  Closes #1337
  Closes #934
- Support for newer versions of Whoosh. [Chris Adams]
- Split SearchView.create_response into get_context. [Chris Adams]

  This makes it easy to override the default `create_response` behaviour
  if you don't want a standard HTML response.

  Thanks @seocam for the patch

  Closes #1338
- Django 1.9 support thanks to Claude Paroz. [Chris Adams]
- Create a changelog using gitchangelog. [Chris Adams]

  This uses `gitchangelog <https://github.com/vaab/gitchangelog>`_ to
  generate docs/changelog.rst from our Git commit history using the tags
  for each version. The configuration is currently tracking upstream
  exactly except for our version tags being prefixed with "v".

Changes
~~~~~~~
- Support for Solr 5+ spelling suggestion format. [Chris Adams]
- Set install requirements for Django versions. [Chris Adams]

  This will prevent accidentally breaking apps when Django 1.10 is
  released.

  Closes #1375
- Avoid double-query for queries matching no results. [Chris Adams]
- Update supported/tested Django versions. [Chris Adams]

  * setup.py install_requires uses `>=1.8` to match our current test
    matrix
  * Travis allows failures for Django 1.10 so we can start tracking the
    upcoming release
- Make backend subclassing easier. [Chris Adams]

  This change allows the backend build_search_kwargs to
  accept arbitrary extra arguments, making life easier for authors of `SearchQuery` or `SearchBackend` subclasses when they can directly pass a value which is directly supported by the backend search client.
- Update_index logging & multiprocessing improvements. [Chris Adams]

  * Since older versions of Python are no longer supported we no
    longer conditionally import multiprocessing (see #1001)
  * Use multiprocessing.log_to_stderr for all messages
  * Remove previously-disabled use of the multiprocessing workers for index removals, allowing the worker code to be simplified
- Moved signal processor loading to app_config.ready. [Chris Adams]

  Thanks to @claudep for the patch

  Closes #1260
- Handle `__in=[]` gracefully on Solr. [Chris Adams]

  This commit avoids the need to check whether a list is empty to avoid an
  error when using it for an `__in` filter.

  Closes #358
  Closes #1311

Fix
~~~
- Attribute resolution on models which have a property named `all`
  (#1405) [Henrique Chehad]

  Thanks to Henrique Chehad (@henriquechehad) for the patch

  Closes #1404
- Tests will fall back to the Apache archive server. [Chris Adams]

  The Apache 4.10.4 release was quietly removed from the mirrors without a
  redirect. Until we have time to add newer Solr releases to the test
  suite we'll download from the archive and let the Travis build cache
  store it.
- Whoosh backend support for RAM_STORE (closes #1386) [Martin Owens]

  Thanks to @doctormo for the patch
- Unsafe update_worker multiprocessing sessions. [Chris Adams]

  The `update_index` management command does not handle the
  `multiprocessing` environment safely. On POSIX systems,
  `multiprocessing` uses `fork()` which means that when called in a
  context such as the test suite where the connection has already been
  used some backends like pysolr or ElasticSearch may have an option
  socket connected to the search server and that leaves a potential race
  condition where HTTP requests are interleaved, producing unexpected
  errors.

  This commit resets the backend connection inside the workers and has
  been stable across hundreds of runs, unlike the current situation where
  a single-digit number of runs would almost certainly have at least one
  failure.

  Other improvements:
  * Improved sanity checks for indexed documents in management
    command test suite. This wasn’t actually the cause of the
    problem above but since I wrote it while tracking down the
    real problem there’s no reason not to use it.
  * update_index now checks that each block dispatched was
    executed to catch any possible silent failures.

  Closes #1376
  See #1001
- Tests support PyPy. [Chris Adams]

  PyPy has an optimization which causes it to call __len__ when running a
  list comprehension, which is the same thing Python does for
  `list(iterable)`. This commit simply changes the test code to always use
  `list` the PyPy behaviour matches CPython.
- Avoid an extra query on empty spelling suggestions. [Chris Adams]

  None was being used as a placeholder to test whether to run
  a spelling suggestion query but was also a possible response
  when the backend didn’t return a suggestion, which meant
  that calling `spelling_suggestion()` could run a duplicate
  query.
- MultiValueField issues with single value (#1364) [Arjen Verstoep]

  Thanks to @terr for the patch!
- Queryset slicing and reduced code duplication. [Craig de Stigter]

  Now pagination will not lazy-load all earlier pages before returning the
  result.

  Thanks to @craigds for the patch

  Closes #1269
  Closes #960
- Handle negative timestamps returned from ES. [Chris Adams]

  Elastic search can return negative timestamps for histograms if the
  dates are pre-1970. This PR properly handles these pre-1970 dates.

  Thanks to @speedplane for the patch

  Closes #1239
- SearchMixin allows form initial values. [Chris Adams]

  Thanks to @ahoho for the patch

  Closes #1319
- Graceful handling of empty __in= lists on ElasticSearch. [Chris Adams]

  Thanks to @boulderdave for the ES version of #1311

  Closes #1335

Other
~~~~~
- Docs: update unsupported backends notes. [Chris Adams]

  * Officially suggest developing backends as separate projects
  * Recommend Sphinx users consider django-sphinxql
- V2.5.0. [Chris Adams]
- Bump version to 2.5.dev2. [Chris Adams]
- AUTHORS. [Tim Babych]
- Expand my username into name in changelog.txt. [Tim Babych]
- Corrected non-ascii characters in comments. (#1390) [Mark Walker]
- Add lower and upper bounds for django versions. [Simon Hanna]
- Convert readthedocs link for their .org -> .io migration for hosted
  projects. [Adam Chainz]

  As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/) ‘Securing subdomains’:

  > Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.

  Test Plan: Manually visited all the links I’ve modified.
- V2.5.dev1. [Chris Adams]
- Merge pull request #1349 from sbussetti/master. [Chris Adams]

  Fix logging call in `update_index`
- Fixes improper call to logger in mgmt command. [sbussetti]
- Merge pull request #1340 from claudep/manage_commands. [Chris Adams]

  chg: migrate management commands to argparse
- Updated management commands from optparse to argparse. [Claude Paroz]

  This follows Django's same move and prevents deprecation warnings.
  Thanks Mario César for the initial patch.
- Merge pull request #1225 from gregplaysguitar/patch-1. [Chris Adams]

  fix: correct docstring for ModelSearchForm.get_models !minor
- Fix bogus docstring. [Greg Brown]
- Merge pull request #1328 from claudep/travis19. [Chris Adams]

  Updated test configs to include Django 1.9
- Updated test configs to include Django 1.9. [Claude Paroz]
- Merge pull request #1313 from chrisbrooke/Fix-elasticsearch-2.0-meta-
  data-changes. [Chris Adams]
- Remove boost which is now unsupported. [Chris Brooke]
- Fix concurrency issues when building UnifiedIndex. [Chris Adams]

  We were getting this error a lot when under load in a multithreaded wsgi
  environment:

      Model '%s' has more than one 'SearchIndex`` handling it.

  Turns out the connections in haystack.connections and the UnifiedIndex
  instance were stored globally. However there is a race condition in
  UnifiedIndex.build() when multiple threads both build() at once,
  resulting in the above error.

  Best fix is to never share the same engine or UnifiedIndex across
  multiple threads. This commit does that.

  Closes #959
  Closes #615
- Load connection routers lazily. [Chris Adams]

  Thanks to Tadas Dailyda (@skirsdeda) for the patch

  Closes #1034
  Closes #1296
- DateField/DateTimeField accept strings values. [Chris Adams]

  Now the convert method will be called by default when string values are
  received instead of the normal date/datetime values.

  Closes #1188
- Fix doc ReST warning. [Chris Adams]
- Merge pull request #1297 from martinsvoboda/patch-1. [Sam Peka]

  Highlight elasticsearch 2.X is not supported yet
- Highlight in docs that elasticsearch 2.x is not supported yet. [Martin
  Svoboda]
- Start updating compatibility notes. [Chris Adams]

  * Deprecate versions of Django which are no longer
    supported by the Django project team
  * Update ElasticSearch compatibility messages
  * Update Travis / Tox support matrix
- Merge pull request #1287 from ses4j/patch-1. [Sam Peka]

  Remove duplicated SITE_ID from test_haystack/settings.py
- Remove redundant SITE_ID which was duplicated twice. [Scott Stafford]
- Add ``fuzzy`` operator to SearchQuerySet. [Chris Adams]

  This exposes the backends’ native fuzzy query support.

  Thanks to Ana Carolina (@anacarolinats) and Steve Bussetti (@sbussetti)
  for the patch.
- Merge pull request #1281 from itbabu/python35. [Justin Caratzas]

  Add python 3.5 to tests
- Add python 3.5 to tests. [Marco Badan]

  ref: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django
- SearchQuerySet: don’t trigger backend access in __repr__ [Chris Adams]

  This can lead to confusing errors or performance issues by
  triggering backend access at unexpected locations such as
  logging.

  Closes #1278
- Merge pull request #1276 from mariocesar/patch-1. [Chris Adams]

  Use compatible get_model util to support new django versions

  Thanks to @mariocesar for the patch!
- Reuse haystack custom get model method. [Mario César Señoranis Ayala]
- Removed unused import. [Mario César Señoranis Ayala]
- Use compatible get_model util to support new django versions. [Mario
  César Señoranis Ayala]
- Merge pull request #1263 from dkarchmer/patch-1. [Chris Adams]

  Update views_and_forms.rst
- Update views_and_forms.rst. [David Karchmer]

  After breaking my head for an hour, I realized the instructions to upgrade to class based views is incorrect. It should indicate that switch from `page` to `page_obj` and not `page_object`


v2.3.2 (2015-11-11)
-------------------
- V2.3.2 maintenance update. [Chris Adams]
- Fix #1253. [choco]
- V2.3.2 pre-release version bump. [Chris Adams]
- Allow individual records to be skipped while indexing. [Chris Adams]

  Previously there was no easy way to skip specific objects other than
  filtering the queryset. This change allows a prepare method to raise
  `SkipDocument` after calling methods or making other checks which cannot
  easily be expressed as database filters.

  Thanks to Felipe Prenholato (@chronossc) for the patch

  Closes #380
  Closes #1191


v2.4.1 (2015-10-29)
-------------------
- V2.4.1. [Chris Adams]
- Minimal changes to the example project to allow test use. [Chris
  Adams]
- Merge remote-tracking branch 'django-haystack/pr/1261' [Chris Adams]

  The commit in #1252 / #1251 was based on the assumption that the
  tutorial used the new generic views, which is not yet correct.

  This closes #1261 by restoring the wording and adding some tests to
  avoid regressions in the future before the tutorial is overhauled.
- Rename 'page_obj' with 'page' in the tutorial, section Search Template
  as there is no 'page_obj' in the controller and this results giving
  'No results found' in the search. [bboneva]
- Style cleanup. [Chris Adams]

  * Remove duplicate & unused imports
  * PEP-8 indentation & whitespace
  * Use `foo not in bar` instead of `not foo in bar`
- Update backend logging style. [Chris Adams]

  * Make Whoosh message consistent with the other backends
  * Pass exception info to loggers in except: blocks
  * PEP-8
- Avoid unsafe default value on backend clear() methods. [Chris Adams]

  Having a mutable structure like a list as a default value is unsafe;
  this commit changes that to the standard None.
- Merge pull request #1254 from chocobn69/master. [Chris Adams]

  Update for API change in elasticsearch 1.8 (closes #1253)

  Thanks to @chocobn69 for the patch
- Fix #1253. [choco]
- Tests: update Solr launcher for changed mirror format. [Chris Adams]

  The Apache mirror-detection script appears to have changed its response
  format recently. This change handles that and makes future error
  messages more explanatory.
- Bump doc version numbers - closes #1105. [Chris Adams]
- Merge pull request #1252 from rhemzo/master. [Chris Adams]

  Update tutorial.rst (closes #1251)

  Thanks to @rhemzo for the patch
- Update tutorial.rst. [rhemzo]

  change page for page_obj
- Merge pull request #1240 from speedplane/improve-cache-fill. [Chris
  Adams]

  Use a faster implementation of query result cache
- Use a faster implementation of this horrible cache. In my tests it
  runs much faster and uses far less memory. [speedplane]
- Merge pull request #1149 from lovmat/master. [Chris Adams]

  FacetedSearchMixin bugfixes and improvements

  * Updated documentation & example code
  * Fixed inheritance chain
  * Added facet_fields

  Thanks to @lovmat for the patch
- Updated documentation, facet_fields attribute. [lovmat]
- Added facet_fields attribute. [lovmat]

  Makes it easy to include facets into FacetedSearchVIew
- Bugfixes. [lovmat]
- Merge pull request #1232 from dlo/patch-1. [Chris Adams]

  Rename elasticsearch-py to elasticsearch in docs

  Thanks to @dlo for the patch
- Rename elasticsearch-py to elasticsearch in docs. [Dan Loewenherz]
- Update wording in SearchIndex get_model exception. [Chris Adams]

  Thanks to Greg Brown (@gregplaysguitar) for the patch

  Closes #1223
- Corrected exception wording. [Greg Brown]
- Allow failures on Python 2.6. [Chris Adams]

  Some of our test dependencies like Mock no longer support it. Pinning
  Mock==1.0.1 on Python 2.6 should avoid that failure but the days of
  Python 2.6 are clearly numbered.
- Travis: stop testing unsupported versions of Django on Python 2.6.
  [Chris Adams]
- Use Travis’ matrix support rather than tox. [Chris Adams]

  This avoids a layer of build setup and makes the Travis
  console reports more useful
- Tests: update the test version of Solr in use. [Chris Adams]

  4.7.2 has disappeared from most of the Apache mirrors


v2.4.0 (2015-06-09)
-------------------
- Release 2.4.0. [Chris Adams]
- Merge pull request #1208 from ShawnMilo/patch-1. [Chris Adams]

  Fix a typo in the faceting docs
- Possible typo fix. [Shawn Milochik]

  It seems that this was meant to be results.
- 2.4.0 release candidate 2. [Chris Adams]
- Fix Django 1.9 deprecation warnings. [Ilan Steemers]

  * replaced get_model with haystack_get_model which returns the right function depending on the Django version
  * get_haystack_models is now compliant with > Django 1.7

  Closes #1206
- Documentation: update minimum versions of Django, Python. [Chris
  Adams]
- V2.4.0 release candidate. [Chris Adams]
- Bump version to 2.4.0.dev1. [Chris Adams]
- Travis: remove Django 1.8 from allow_failures. [Chris Adams]
- Tests: update test object creation for Django 1.8. [Chris Adams]

  Several of the field tests previously assigned a related test model
  instance before saving it::

      mock_tag = MockTag(name='primary')
      mock = MockModel()
      mock.tag = mock_tag

  Django 1.8 now validates this dodgy practice and throws an error.

  This commit simply changes it to use `create()` so the mock_tag will
  have a pk before assignment.
- Update AUTHORS. [Chris Adams]
- Tests: fix deprecated Manager.get_query_set call. [Chris Adams]
- Updating haystack to test against django 1.8. [Chris Adams]

  Updated version of @troygrosfield's patch updating the test-runner for
  Django 1.8

  Closes #1175
- Travis: allow Django 1.8 failures until officially supported. [Chris
  Adams]

  See #1175
- Remove support for Django 1.5, add 1.8 to tox/travis. [Chris Adams]

  The Django project does not support 1.5 any more and it's the source of
  most of our false-positive test failures
- Use db.close_old_connections instead of close_connection. [Chris
  Adams]

  Django 1.8 removed the `db.close_connection` method.

  Thanks to Alfredo Armanini (@phingage) for the patch
- Fix mistake in calling super TestCase method. [Ben Spaulding]

  Oddly this caused no issue on Django <= 1.7, but it causes numerous
  errors on Django 1.8.
- Correct unittest imports from commit e37c1f3. [Ben Spaulding]
- Prefer stdlib unittest over Django's unittest2. [Ben Spaulding]

  There is no need to fallback to importing unittest2 because Django 1.5
  is the oldest Django we support, so django.utils.unittest is guaranteed
  to exist.
- Prefer stdlib OrderedDict over Django's SortedDict. [Ben Spaulding]

  The two are not exactly they same, but they are equivalent for
  Haystack's needs.
- Prefer stdlib importlib over Django's included version. [Ben
  Spaulding]

  The app_loading module had to shuffle things a bit. When it was
  importing the function it raised a [RuntimeError][]. Simply importing
  the module resolved that.

  [RuntimeError]: https://gist.github.com/benspaulding/f36eaf483573f8e5f777
- Docs: explain how field boosting interacts with filter. [Chris Adams]

  Thanks to @amjoconn for contributing a doc update to help newcomers

  Closes #1043
- Add tests for values/values_list slicing. [Chris Adams]

  This confirms that #1019 is fixed
- Update_index: avoid gaps in removal logic. [Chris Adams]

  The original logic did not account for the way removing records
  interfered with the pagination logic.

  Closes #1194
- Update_index: don't use workers to remove stale records. [Chris Adams]

  There was only minimal gain to this because, unlike indexing, removal is
  a simple bulk operation limited by the search engine.

  See #1194
  See #1201
- Remove lxml dependency. [Chris Adams]

  pysolr 3.3.2+ no longer requires lxml, which saves a significant install
  dependency
- Allow individual records to be skipped while indexing. [Chris Adams]

  Previously there was no easy way to skip specific objects other than
  filtering the queryset. This change allows a prepare method to raise
  `SkipDocument` after calling methods or making other checks which cannot
  easily be expressed as database filters.

  Thanks to Felipe Prenholato (@chronossc) for the patch

  Closes #380
  Closes #1191
- Update_index: avoid "MySQL has gone away error" with workers. [Eric
  Bressler (Platform)]

  This fixes an issue with a stale database connection being passed to
  a multiprocessing worker when using `--remove`

  Thanks to @ebressler for the patch

  Closes #1201
- Depend on pysolr 3.3.1. [Chris Adams]
- Start-solr-test-server: avoid Travis dependency. [Chris Adams]

  This will now fall back to the current directory when run outside of our Travis-CI environment
- Fix update_index --remove handling. [Chris Adams]

  * Fix support for custom keys by reusing the stored value rather than
    regenerating following the default pattern
  * Batch remove operations using the total number of records
    in the search index rather than the database

  Closes #1185
  Closes #1186
  Closes #1187
- Merge pull request #1177 from paulshannon/patch-1. [Chris Adams]

  Update TravisCI link in README
- Update TravisCI link. [Paul Shannon]

  I think the repo got changed at some point and the old project referenced at travisci doesn't exist anymore...
- Travis: enable containers. [Chris Adams]

  * Move apt-get installs to the addons/apt_packages:
    http://docs.travis-ci.com/user/apt-packages/
  * Set `sudo: false` to enable containers:
    http://docs.travis-ci.com/user/workers/container-based-infrastructure/
- Docs: correct stray GeoDjango doc link. [Chris Adams]
- Document: remove obsolete Whoosh Python 3 warning. [Chris Adams]

  Thanks to @gitaarik for the pull request

  Closes #1154
  Fixes #1108
- Remove method_decorator backport (closes #1155) [Chris Adams]

  This was no longer used anywhere in the Haystack source or documentation
- Travis: enable APT caching. [Chris Adams]
- Travis: update download caching. [Chris Adams]
- App_loading cleanup. [Chris Adams]

  * Add support for Django 1.7+ AppConfig
  * Rename internal app_loading functions to have haystack_ prefix to make
    it immediately obvious that they are not Django utilities and start
  * Add tests to avoid regressions for apps nested with multiple levels of
    module hierarchy like `raven.contrib.django.raven_compat`
  * Refactor app_loading logic to make it easier to remove the legacy
    compatibility code when we eventually drop support for older versions
    of Django

  Fixes #1125
  Fixes #1150
  Fixes #1152
  Closes #1153
- Switch defaults closer to Python 3 defaults. [Chris Adams]

  * Add __future__ imports:

  isort --add_import 'from __future__ import absolute_import, division, print_function, unicode_literals'

  * Add source encoding declaration header
- Setup.py: use strict PEP-440 dev version. [Chris Adams]

  The previous version was valid as per PEP-440 but triggers a warning in
  pkg_resources
- Merge pull request #1146 from kamilmowinski/patch-1. [Chris Adams]

  Fix typo in SearchResult documentation
- Update searchresult_api.rst. [kamilmowinski]
- Merge pull request #1143 from wicol/master. [Chris Adams]

  Fix deprecation warnings in Django 1.6.X (thanks @wicol)
- Fix deprecation warnings in Django 1.6.X. [Wictor]

  Options.model_name was introduced in Django 1.6 together with a deprecation warning:
  https://github.com/django/django/commit/ec469ade2b04b94bfeb59fb0fc7d9300470be615
- Travis: move tox setup to before_script. [Chris Adams]

  This should cause dependency installation problems to show up as build
  errors rather than outright failures
- Update ElasticSearch defaults to allow autocompleting numbers. [Chris
  Adams]

  Previously the defaults for ElasticSearch used the `lowercase`
  tokenizer, which prevented numbers from being autocompleted.

  Thanks to Phill Tornroth (@phill-tornroth) for contributing a patch
  which changes the default settings to use the `standard` tokenizer
  with the `lowercase` filter

  Closes #1056
- Update documentation for new class-based views. [Chris Adams]

  Thanks to @troygrosfield for the pull-request

  Closes #1139
  Closes #1133
  See #1130
- Added documentation for configuring facet behaviour. [Chris Adams]

  Thanks to Philippe Luickx for the contribution

  Closes #1111
- UnifiedIndex has a stable interface to get all indexes. [Chris Adams]

  Previously it was possible for UnifiedIndexes.indexes to be empty when
  called before the list had been populated. This change deprecates
  accessing `.indexes` directly in favor of a `get_indexes()` accessor
  which will call `self.build()` first if necessary.

  Thanks to Phill Tornroth for the patch and tests.

  Closes #851
- Add support for SQ in SearchQuerySet.narrow() (closes #980) [Chris
  Adams]

  Thanks to Andrei Fokau (@andreif) for the patch and tests
- Disable multiprocessing on Python 2.6 (see #1001) [Chris Adams]

  multiprocessing.Pool.join() hangs reliably on Python 2.6 but
  not any later version tested. Since this is an optional
  feature we’ll simply disable it
- Bump version number to 2.4.0-dev. [Chris Adams]
- Update_index: wait for all pool workers to finish. [Chris Adams]

  There was a race condition where update_index() would return
  before all of the workers had finished updating Solr. This
  manifested itself most frequently as Travis failures
  for the multiprocessing test (see #1001).
- Tests: Fix ElasticSearch index setup (see #1093) [Chris Adams]

  Previously when clear_elasticsearch_index() was called to
  reset the tests, this could produce confusing results
  because it cleared the mappings without resetting the
  backend’s setup_complete status and thus fields which were
  expected to have a specific type would end up being inferred

  With this changed test_regression_proper_start_offsets and
  test_more_like_this no longer fail
- Update rebuild_index --nocommit handling and add tests. [Chris Adams]

  rebuild_index builds its option list by combining the options from
  clear_index and update_index. This previously had a manual exclude list
  for options which were present in both commands to avoid conflicts but
  the nocommit option wasn't in that list.

  This wasn't tested because our test suite uses call_command rather than
  invoking the option parser directly.

  This commit also adds tests to confirm that --nocommit will actually
  pass commit=False to clear_index and update_index.

  Closes #1140
  See #1090
- Support ElasticSearch 1.x distance filter syntax (closes #1003) [Chris
  Adams]

  The elasticsearch 1.0 release was backwards incompatible
  with our previous usage.

  Thanks to @dulaccc for the patch adding support.
- Docs: add Github style guide link to pull request instructions. [Chris
  Adams]

  The recent Github blog post makes a number of good points:

  https://github.com/blog/1943-how-to-write-the-perfect-pull-request
- Fixed exception message when resolving model_attr. [Wictor]

  This fixes the error message displayed when model_attr references an
  unknown attribute.

  Thanks to @wicol for the patch

  Closes #1094
- Compatibility with Django 1.7 app loader (see #1097) [Chris Adams]

  * Added wrapper around get_model, so that Django 1.7 uses the new app
    loading mechanism.
  * Added extra model check to prevent that a simple module is treated as
    model.

  Thanks to Dirk Eschler (@deschler) for the patch.
- Fix index_fieldname to match documentation (closes #825) [Chris Adams]

  @jarig contributed a fix to ensure that index_fieldname renaming does
  not interfere with using the field name declared on the index.
- Add tests for Solr/ES spatial order_by. [Chris Adams]

  This exists primarily to avoid the possibility of breaking
  compatibility with the inconsistent lat, lon ordering used
  by Django, Solr and ElasticSearch.
- Remove undocumented `order_by_distance` [Chris Adams]

  This path was an undocumented artifact of the original
  geospatial feature-branch back in the 1.X era. It wasn’t
  documented and is completely covered by the documented API.
- ElasticSearch tests: PEP-8 cleanup. [Chris Adams]
- Implement managers tests for spatial features. [Chris Adams]

  This is largely shadowed by the actual spatial tests but it
  avoids surprises on the query generation

  * Minor PEP-8
- Remove unreferenced add_spatial methods. [Chris Adams]

  SolrSearchQuery and ElasticsearchSearchQuery both defined
  an `add_spatial` method which was neither called nor
  documented.
- Remove legacy httplib/httplib2 references. [Chris Adams]

  We’ve actually delegated the actual work to requests but the
  docs & tests had stale references
- Tests: remove legacy spatial backend code. [Chris Adams]

  This has never run since the solr_native_distance backend
  did not exist and thus the check always failed silently
- ElasticSearch backend: minor PEP-8 cleanup. [Chris Adams]
- Get-solr-download-url: fix Python 3 import path. [Chris Adams]

  This allows the scripts to run on systems where Python 3 is
  the default version
- Merge pull request #1130 from troygrosfield/master. [Chris Adams]

  Added generic class based search views

  (thanks @troygrosfield)
- Removed "expectedFailure". [Troy Grosfield]
- Minor update. [Troy Grosfield]
- Added tests for the generic search view. [Troy Grosfield]
- Hopefully last fix for django version checking. [Troy Grosfield]
- Fix for django version check. [Troy Grosfield]
- Adding fix for previously test for django 1.7. [Troy Grosfield]
- Adding py34-django1.7 to travis. [Troy Grosfield]
- Test for the elasticsearch client. [Troy Grosfield]
- Added unicode_literals import for py 2/3 compat. [Troy Grosfield]
- Added generic class based search views. [Troy Grosfield]
- Merge pull request #1101 from iElectric/nothandledclass. [Chris Adams]

  Report correct class when raising NotHandled
- Report correct class when raising NotHandled. [Domen Kožar]
- Merge pull request #1090 from andrewschoen/feature/no-commit-flag.
  [Chris Adams]

  Adds a --nocommit arg to the update_index, clear_index and rebuild_index management command.
- Adds a --nocommit arg to the update_index, clear_index and
  rebuild_index management commands. [Andrew Schoen]
- Merge pull request #1103 from pkafei/master. [Chris Adams]

  Update documentation to reference Solr 4.x
- Changed link to official archive site. [Portia Burton]
- Added path to schema.xml. [Portia Burton]
- Added latest version of Solr to documentation example. [Portia Burton]
- Update ElasticSearch version requirements. [Chris Adams]
- Elasticsearch's python api by default has _source set to False, this
  causes keyerror mentioned in bug #1019. [xsamurai]
- Solr: clear() won’t call optimize when commit=False. [Chris Adams]

  An optimize will trigger a commit implicitly so we’ll avoid
  calling it when the user has requested not to commit
- Bumped __version__ (closes #1112) [Dan Watson]
- Travis: allow PyPy builds to fail. [Chris Adams]

  This is currently unstable and it's not a first-class supported platform
  yet
- Tests: fix Solr server tarball test. [Chris Adams]

  On a clean Travis instance, the tarball won't exist
- Tests: have Solr test server startup script purge corrupt tarballs.
  [Chris Adams]

  This avoids tests failing if a partial download is cached by Travis
- Merge pull request #1084 from streeter/admin-mixin. [Daniel Lindsley]

  Document and add an admin mixin
- Document support for searching in the Django admin. [Chris Streeter]
- Add some spacing. [Chris Streeter]
- Create an admin mixin for external use. [Chris Streeter]

  There are cases where one might have a different base admin class, and
  wants to use the search features in the admin as well. Creating a mixin
  makes this a bit cleaner.


v2.3.1 (2014-09-22)
-------------------
- V2.3.1. [Chris Adams]
- Tolerate non-importable apps like django-debug-toolbar. [Chris Adams]

  If your installed app isn't even a valid Python module, haystack will
  issue a warning but continue.

  Thanks to @gojomo for the patch

  Closes #1074
  Closes #1075
- Allow apps without models.py on Django <1.7. [Chris Adams]

  This wasn't officially supported by Django prior to 1.7 but is used by
  some third-party apps such as Grappelli

  This commit adds a somewhat contrived test app to avoid future
  regressions by ensuring that the test suite always has an application
  installed which does not have models.py

  See #1073


v2.3.0 (2014-09-19)
-------------------
- Travis: Enable IRC notifications. [Chris Adams]
- Fix app loading call signature. [Chris Adams]

  Updated code from #1016 to ensure that get_models always
  returns a list (previously on Django 1.7 it would return
  the bare model when called with an argument of the form
  `app.modelname`)

  Add some basic tests
- App loading: use ImproperlyConfigured for bogus app names. [Chris
  Adams]

  This never worked but we’ll be more consistent and return
  ImproperlyConfigured instead of a generic LookupError
- App Loading: don’t suppress app-registry related exceptions. [Chris
  Adams]

  This is just asking for trouble in the future. If someone comes up with
  an edge case, we should add a test for it
- Remove Django version pin from install_requires. [Chris Adams]
- Django 1.7 support for app discovery. [Chris Adams]

  * Refactored @Xaroth’s patch from #1015 into a separate utils
    module
  * PEP-8 cleanup
- Start the process of updating for v2.3 release. [Chris Adams]
- Django 1.7 compatibility for model loading. [Chris Adams]

  This refactors the previous use of model _meta.module_name and updates
  the tests so the previous change can be tested safely.

  Closes #981
  Closes #982
- Update tox Django version pins. [Chris Adams]
- Mark expected failures for Django 1.7 (see #1069) [Chris Adams]
- Django 1.7: ensure that the app registry is ready before tests are
  loaded. [Chris Adams]

  The remaining test failures are due to some of the oddities in model
  mocking, which can be solved by overhauling the way we do tests and
  mocks.
- Tests: Whoosh test overhaul. [Chris Adams]

  * Move repetitive filesystem reset logic into WhooshTestCase which
    cleans up after itself
  * Use mkdtemp instead of littering up the current directory with a
    'tmp' subdirectory
  * Use skipIf rather than expectFailure on test_writable to disable
    it only when STORAGE=ram rather than always
- Unpin elasticsearch library version for testing. [Chris Adams]
- Tests: add MIDDLEWARE_CLASSES for Django 1.7. [Chris Adams]
- Use get_model_ct_tuple to generate template name. [Chris Adams]
- Refactor simple_backend to use get_model_ct_tuple. [Chris Adams]
- Haystack admin: refactor to use get_model_ct_tuple. [Chris Adams]
- Consolidate model meta references to use get_model_ct (see #981)
  [Chris Adams]

  This use of a semi-public Django interface will break in Django 1.7
  and we can start preparing by using the existing
  haystack.utils.get_model_ct function instead of directly accessing
  it everywhere.
- Refactor get_model_ct to handle Django 1.7, add tuple version. [Chris
  Adams]

  We have a mix of model _meta access which usually expects strings but in
  a few places needs raw values. This change adds support for Django 1.7
  (see https://code.djangoproject.com/ticket/19689) and allows raw tuple
  access to handle other needs in the codebase
- Add Django 1.7 warning to Sphinx docs as well. [Chris Adams]


v2.2.1 (2014-09-03)
-------------------
- Mark 2.2.X as incompatible with Django 1.7. [Chris Adams]
- Tests: don't suppress Solr stderr logging. [Chris Adams]

  This will make easier to tell why Solr sometimes goes away on Travis
- Update Travis & Tox config. [Chris Adams]

  * Tox: wait for Solr to start before running tests
  * Travis: allow solr & pip downloads to be cached
  * Travis now uses start-solr-test-server.sh instead of travis-solr
  * Test Solr configuration uses port 9001 universally as per the
    documentation
  * Change start-solr-test-server.sh to change into its containing
    directory, which also allows us to remove the realpath dependency
  * Test Solr invocation matches pysolr
      * Use get-solr-download-url script to pick a faster mirror
      * Upgrade to Solr 4.7.2
- Travis, Tox: add Django 1.7 targets. [Chris Adams]
- Merge pull request #1055 from andreif/feature/realpath-fallback-osx.
  [Chris Adams]
- Fallback to pwd if realpath is not available. [Andrei Fokau]
- Merge pull request #1053 from gandalfar/patch-1. [Chris Adams]
- Update example for Faceting to reference page.object_list. [Jure
  Cuhalev]

  Instead of `results` - ref #1052
- Add PyPy targets to Tox & Travis. [Chris Adams]

  Closes #1049
- Merge pull request #1044 from areski/patch-1. [Chris Adams]

  Update Xapian install instructions (thanks @areski)
- Update Xapian install. [Areski Belaid]
- Docs: fix signal processors link in searchindex_api. [Chris Adams]

  Correct a typo in b676b17dbc4b29275a019417e7f19f531740f05e
- Merge pull request #1050 from jogwen/patch-2. [Chris Adams]
- Link to 'signal processors' [Joanna Paulger]
- Merge pull request #1047 from g3rd/patch-1. [Chris Adams]

  Update the installing search engine documentation URL (thanks @g3rd)
- Fixed the installing search engine doc URL. [Chad Shrock]
- Merge pull request #1025 from reinout/patch-1. [Chris Adams]

  Fixed typo in templatetag docs example (thanks to @reinout)
- Fixed typo in example. [Reinout van Rees]

  It should be `css_class` in the template tag example instead of just `class`. (It is mentioned correctly in the syntax line earlier).


v2.2.0 (2014-08-03)
-------------------
- Release v2.2.0. [Chris Adams]
- Test refactor - merge all the tests into one test suite (closes #951)
  [Chris Adams]

  Major refactor by @honzakral which stabilized the test suite, makes it easier to run and add new tests and
  somewhat faster, too.

  * Merged all the tests
  * Mark tests as skipped when a backend is not available (e.g. no ElasticSearch or Solr connection)
  * Massively simplified test runner (``python setup.py test``)

  Minor updates:
  * Travis:
      - Test Python 3.4
      - Use Solr 4.6.1
  * Simplified legacy test code which can now be replaced by the test utilities in newer versions of Django
  * Update ElasticSearch client & tests for ES 1.0+
  * Add option for SearchModelAdmin to specify the haystack connection to use
  * Fixed a bug with RelatedSearchQuerySet caching using multiple instances (429d234)
- RelatedSearchQuerySet: move class globals to instance properties.
  [Chris Adams]

  This caused obvious failures in the test suite and presumably
  elsewhere when multiple RelatedSearchQuerySet instances were in use
- Merge pull request #1032 from maikhoepfel/patch-1. [Justin Caratzas]

  Drop unused variable when post-processing results
- Drop unused variable when post-processing results. [Maik Hoepfel]

  original_results is not used in either method, and can be safely removed.
- 404 when initially retrieving mappings is ok. [Honza Král]
- Ignore 400 (index already exists) when creating an index in
  Elasticsearch. [Honza Král]
- ElasticSearch: update clear() for 1.x+ syntax. [Chris Adams]

  As per http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html this should be nested inside a
  top-level query block:

  {“query”: {“query_string”: …}}
- Add setup.cfg for common linters. [Chris Adams]
- ElasticSearch: avoid KeyError for empty spelling. [Chris Adams]

  It was possible to get a KeyError when spelling suggestions were
  requested but no suggestions are returned by the backend.

  Thanks to Steven Skoczen (@skoczen) for the patch
- Merge pull request #970 from tobych/patch-3. [Justin Caratzas]

  Improve punctuation in super-scary YMMV warning
- Improve punctuation in super-scary YMMV warning. [Toby Champion]
- Merge pull request #969 from tobych/patch-2. [Justin Caratzas]

  Fix typo; clarify purpose of search template
- Fix typo; clarify purpose of search template. [Toby Champion]
- Merge pull request #968 from tobych/patch-1. [Justin Caratzas]

  Fix possessive "its" in tutorial.rst
- Fix possessive "its" [Toby Champion]
- Merge pull request #938 from Mbosco/patch-1. [Daniel Lindsley]

  Update tutorial.rst
- Update tutorial.rst. [BoscoMW]
- Fix logging call in SQS post_process_results (see #648) [Chris Adams]

  This was used in an except: handler and would only be executed when a
  load_all() queryset retrieved a model which wasn't registered with the
  index.
- Merge pull request #946 from gkaplan/spatial-docs-fix. [Daniel
  Lindsley]

  Small docs fix for spatial search example code
- Fix typo with instantiating Distance units. [Graham Kaplan]
- Solr backend: correct usage of pysolr delete. [Chris Adams]

  We use HAYSTACK_ID_FIELD in other places but the value passed to
  pysolr's delete() method must use the keyword argument ``id``:

  https://github.com/toastdriven/pysolr/blob/v3.1.0/pysolr.py#L756

  Although the value is passed to Solr an XML tag named ``<id>`` it will
  always be checked against the actual ``uniqueKey`` field even if it uses
  a custom name:

  https://wiki.apache.org/solr/UpdateXmlMessages#A.22delete.22_documents_by_ID_and_by_Query

  Closes #943
- Add a note on elasticsearch-py versioning with regards to 1.0. [Honza
  Král]
- Ignore 404 when removing a document from elasticsearch. [Honza Král]

  Fixes #942
- Ignore missing index during .clear() [Honza Král]

  404 in indices.delete can only mean that the index is there, no issue
  for a delete operation

  Fixes #647
- Tests: remove legacy targets. [Chris Adams]

  * Django 1.4 is no longer supported as per the documentation
  * Travis: use Python 3.3 targets instead of 3.2
- Tests: update pysolr requirement to 3.1.1. [Chris Adams]

  3.1.1 shipped a fix for a change in the Solr response format for the
  content extraction handler
- Merge pull request #888 from acdha/888-solr-field-list-regression.
  [Chris Adams]

  Solr / ElasticSearch backends: restore run() kwargs handling

  This fixes an earlier regression which did not break functionality but made `.values()` and `.values_list()` much less of an optimization than intended.

  #925 will be a more comprehensive refactor but this is enough of a performance win to be worth including if a point release happens before #925 lands.
- ElasticSearch backend: run() kwargs are passed directly to search
  backend. [Chris Adams]

  This allows customization by subclasses and also fixes #888
  by ensuring that the custom field list prepared by
  `ValuesQuerySet` and `ValuesListQuerySet` is actually used.
- Solr backend: run() kwargs are passed directly to search backend.
  [Chris Adams]

  This allows customization by subclasses and also fixes #888
  by ensuring that the custom field list prepared by
  `ValuesQuerySet` and `ValuesListQuerySet` is actually used.
- Tests: skip Solr content extraction with old PySolr. [Chris Adams]

  Until pysolr 3.1.1 ships there's no point in running the Solr content
  extraction tests because they'll fail:

  https://github.com/toastdriven/pysolr/pull/104
- Make sure DJANGO_CT and DJANGO_ID fields are not analyzed. [Honza
  Král]
- No need to store fields separately in elasticsearch. [Honza Král]

  That will justlead to fields being stored once - as part of _source as
  well as in separate index that would never be used by haystack (would be
  used only in special cases when requesting just that field, which can
  be, with minimal overhead, still just extracted from the _source as it
  is).
- Remove extra code. [Honza Král]
- Simplify mappings for elasticsearch fields. [Honza Král]

  - don't specify defaults (index:analyzed for strings, boost: 1.0)
  - omit extra settings that have little or negative effects
    (term_vector:with_positions_offsets)
  - only use type-specific settings (not_analyzed makes no sense for
    non-string types)

  Fixes #866
- Add narrow queries as individual subfilter to promote caching. [Honza
  Král]

  Each narrow query will be cached individually which means more cache
  reuse
- Doc formatting fix. [Honza Král]
- Allow users to pass in additional kwargs to Solr and Elasticsearch
  backends. [Honza Král]

  Fixes #674, #862
- Whoosh: allow multiple order_by() fields. [Chris Adams]

  The Whoosh backend previously prevented the use of more than one
  order_by field. It now allows multiple fields as long as every field
  uses the same sort direction.

  Thanks to @qris, @overflow for the patch

  Closes #627
  Closes #919
- Fix bounding box calculation for spatial queries (closes #718) [Chris
  Adams]

  Thanks @jasisz for the fix
- Docs: fix ReST syntax error in searchqueryset_api.rst. [Chris Adams]
- Tests: update test_more_like_this for Solr 4.6. [Chris Adams]
- Tests: update test_quotes_regression exception test. [Chris Adams]

  This was previously relying on the assumption that a query would not
  match, which is Solr version dependent, rather than simply
  confirming that no exception is raised
- Tests: update Solr schema to match current build_solr_schema. [Chris
  Adams]

  * Added fields used in spatial tests: location, username, comment
  * Updated schema for recent Solr
  * Ran `xmllint --c14n "$*" | xmllint --format --encode "utf-8" -`
- Tests: update requirements to match tox. [Chris Adams]
- Move test Solr instructions into a script. [Chris Adams]

  These will just rot horribly if they're not actually executed on a
  regular basis…
- Merge pull request #907 from gam-phon/patch-1. [Chris Adams]
- Fix url for solr 3.5.0. [Yaser Alraddadi]
- Merge pull request #775 from stefanw/avoid-pks-seen-on-update. [Justin
  Caratzas]

  Avoid unnecessary, potentially huge db query on index update
- Merge branch 'master' into avoid-pks-seen-on-update. [Stefan
  Wehrmeyer]

  Change smart_text into smart_bytes as in master

  Conflicts:
  	haystack/management/commands/update_index.py
- Upgraded python3 in tox to 3.3. [justin caratzas]

  3.3 is a better target for haystack than 3.2, due to PEP414
- Merge pull request #885 from HonzaKral/elasticsearch-py. [Justin
  Caratzas]

  Use elasticsearch-py instead of pyelasticsearch.
- Use elasticsearch-py instead of pyelasticsearch. [Honza Král]

  elasticsearch-py is the official Python client for Elasticsearch.
- Merge pull request #899 from acdha/html5-input-type=search. [Justin
  Caratzas]

  Search form <input type="search">
- Use HTML5 <input type=search> (closes #899) [Chris Adams]
- Update travis config so that unit tests will run with latest solr +
  elasticsearch. [justin caratzas]
- Merge remote-tracking branch 'HonzaKral/filtered_queries' Fixes #886.
  [Daniel Lindsley]
- Use terms filter for DJANGO_CT, *much* faster. [Honza Král]
- Cleaner query composition when it comes to filters in ES. [Honza Král]
- Fixed typo in AUTHORS. [justin caratzas]
- Added pabluk to AUTHORS. [Pablo SEMINARIO]
- Fixed ValueError exception when SILENTLY_FAIL=True. [Pablo SEMINARIO]
- Merge pull request #882 from benspaulding/docs/issue-607. [Justin
  Caratzas]

  Remove bit about SearchQuerySet.load_all_queryset deprecation
- Remove bit about SearchQuerySet.load_all_queryset deprecation. [Ben
  Spaulding]

  That method was entirely removed in commit b8048dc0e9e3.

  Closes #607. Thanks to @bradleyayers for the report.
- Merge pull request #881 from benspaulding/docs/issue-606. [Justin
  Caratzas]

  Fix documentation regarding ModelSearchIndex to match current behavior
- Fix documentation regarding ModelSearchIndex to match current
  behavior. [Ben Spaulding]

  Closes #606. Thanks to @bradleyayers for the report.
- Fixed #575 & #838, where a change in Whoosh 2.5> required explicitly
  setting the Searcher.search() limit to None to restore correct
  results. [Keryn Knight]

  Thanks to scenable and Shige Abe (typeshige) for
  the initial reports, and to scenable for finding
  the root issue in Whoosh.
- Removed python 1.4 / python 3.2 tox env because thats not possible.
  [justin caratzas]

  also pinned versions of requirements for testing
- Added test for autocomplete whitespace fix. [justin caratzas]
- Fixed autocomplete() method: spaces in query. [Ivan Virabyan]
- Fixed basepython for tox envs, thanks --showconfig. [justin caratzas]

  also, added latest django 1.4 release, which doesn't error out
  currently.

  Downgraded python3.3 to python3.2, as thats what the lastest debian
  stable includes.  I'm working on compiling pypy and python3.3 on the
  test box, so those will probably be re-added as time allows.

  failing tests: still solr context extraction + spatial
- Fixed simple backend for django 1.6, _fields was removed. [justin
  caratzas]
- [tox] run tests for 1.6, fix test modules so they are found by the new
  test runner. [justin caratzas]

  These changes are backwards-compatible with django 1.5.  As of this
  commit, the only failing tests are the Solr extractraction test, and the
  spatial tests.
- Switch solr configs to solr 4. [justin caratzas]

  almost all tests passing, but spatial not working
- Update solr schema template to fix stopwords_en.txt relocation.
  [Patrick Altman]

  Seems that in versions >3.6 and >4 stopwords_en.txt moved
  to a new location. This won't be backwards compatible for
  older versions of solr.

  Addresses issues #558, #560
  In addition, issue #671 references this problem
- Pass `using` to index_queryset for update. [bigjust]
- Update tox to test pypy, py26, py27, py33, django1.5 and django1.6.
  [bigjust]

  django 1.6 doesn't actually work yet, but there are other efforts to get that working
- Fixed my own spelling test case. How embarrassing. [Dan Watson]
- Added a spelling test case for ElasticSearch. [Dan Watson]
- More ElasticSearch test fixes. [Dan Watson]
- Added some faceting tests for ElasticSearch. [Dan Watson]
- Fixed ordering issues in the ElasticSearch tests. [Dan Watson]
- Merge remote-tracking branch 'infoxchange/fix-elasticsearch-index-
  settings-reset' [Daniel Lindsley]
- Test ensuring recreating the index does not remove the mapping.
  [Alexey Kotlyarov]
- Reset backend state when deleting index. [Alexey Kotlyarov]

  Reset setup_complete and existing_mapping when an index is
  deleted. This ensures create_index is called later to restore
  the settings properly.
- Use Django's copy of six. [Dan Watson]
- Merge pull request #847 from luisbarrueco/mgmtcmd-fix. [Dan Watson]

  Fixed an update_index bug when using multiple connections
- Fixed an update_index bug when using multiple connections. [Luis
  Barrueco]
- Fixed a missed raw_input call on Python 3. [Dan Watson]
- Merge pull request #840 from postatum/fix_issue_807. [Justin Caratzas]

  Fixed issue #807
- Fixed issue #807. [postatum]
- Merge pull request #837 from nicholasserra/signals-docs-fix. [Justin
  Caratzas]

  Tiny docs fix in signal_processors example code
- Tiny docs fix in signal_processors example code. [Nicholas Serra]
- Merge pull request #413 from phill-tornroth/patch-1. [Justin Caratzas]

  Silly little change, I know.. but I actually ran into a case where I acci
- Silly little change, I know.. but I actually ran into a case where I
  accidentally passed a list of models in without *ing them. When that
  happens, we get a string formatting exception (not all arguments were
  formatted) instead of the useful "that ain't a model, kid" business.
  [Phill Tornroth]
- Merge pull request #407 from bmihelac/patch-1. [Justin Caratzas]

  Fixed doc, ``query`` is context variable and not in request.
- Fixed doc, ``query`` is context variable and not in request.
  [bmihelac]
- Merge pull request #795 from
  davesque/update_excluded_indexes_error_message. [Justin Caratzas]

  Improve error message for duplicate index classes
- Improve error message for duplicate index classes. [David Sanders]

  To my knowledge, the 'HAYSTACK_EXCLUDED_INDEXES' setting is no longer
  used.
- Started the v2.1.1 work. [Daniel Lindsley]
- Avoid unnecessary db query on index update. [Stefan Wehrmeyer]

  pks_seen is only needed if objects are removed from
  index, so only compute it if necessary.
  Improve pks_seen to not build an intermediary list.


v2.1.0 (2013-07-28)
-------------------
- Bumped to v2.1.0! [Daniel Lindsley]
- Python 3 support is done, thanks to RevSys & the PSF! Updated
  requirements in the docs. [Daniel Lindsley]
- Added all the new additions to AUTHORS. [Daniel Lindsley]
- Merge branch 'py3' [Daniel Lindsley]
- Added Python 3 compatibility notes. [Daniel Lindsley]
- Whoosh mostly working under Python 3. See docs for details. [Daniel
  Lindsley]
- Backported things removed from Django 1.6. [Daniel Lindsley]
- Final core changes. [Daniel Lindsley]
- Solr tests all but passing under Py3. [Daniel Lindsley]
- Elasticsearch tests passing under Python 3. [Daniel Lindsley]

  Requires git master (ES 1.0.0 beta) to work properly when using suggestions.
- Overrides passing under Py3. [Daniel Lindsley]
- Simple backend ported & passing. [Daniel Lindsley]
- Whoosh all but fully working under Python 3. [Daniel Lindsley]
- Closer on porting ES. [Daniel Lindsley]
- Core tests mostly pass on Py 3. \o/ [Daniel Lindsley]

  What's left are 3 failures, all ordering issues, where the correct output is present, but ordering is different between Py2 / Py3.
- More porting to Py3. [Daniel Lindsley]
- Started porting to py3. [Daniel Lindsley]
- Merge pull request #821 from knightzero/patch-1. [Justin Caratzas]

  Update autocomplete.rst
- Update autocomplete.rst. [knightzero]
- Merge pull request #744 from trigger-corp/master. [Justin Caratzas]

  Allow for document boosting with elasticsearch
- Update the current elasticsearch boost test to also test document
  boosting. [Connor Dunn]
- Map boost field to _boost in elasticsearch. [Connor Dunn]

  Means that including a boost field in a document will cause document level boosting.
- Added ethurgood to AUTHORS. [Daniel Lindsley]
- Add test__to_python for elastisearch backend. [Eric Thurgood]
- Fix datetime instantiation in elasticsearch backend's _to_python.
  [Eric Thurgood]
- Merge pull request #810 from pabluk/minor-docs-fix. [Chris Adams]

  Updated description for TIMEOUT setting - thanks @pabluk
- Updated description for TIMEOUT setting. [Pablo SEMINARIO]
- Updated the backend support docs. Thanks to kezabelle & dimiro1 for
  the report! [Daniel Lindsley]
- Added haystack-rqueue to "Other Apps". [Daniel Lindsley]
- Updated README & index. [Daniel Lindsley]
- Added installation instructions. [bigjust]
- Merge pull request #556 from h3/master. [Justin Caratzas]

  Updated to 'xapian_backend.XapianEngine' docs & example
- Updated XapianEngine module path. [h3]
- Updated XapianEngine module path. [h3]
- Merge pull request #660 from seldon/master. [Justin Caratzas]

  Some minor docs fixes
- Fixed a few typos in docs. [Lorenzo Franceschini]
- Add Educreations to who uses Haystack. [bigjust]
- Merge pull request #692 from stephenpaulger/master. [Justin Caratzas]

  Change the README link to latest 1.2 release.
- Update README.rst. [Stephen Paulger]

  Update 1.2.6 link to 1.2.7
- Merge pull request #714 from miracle2k/patch-1. [Justin Caratzas]

  Note enabling INCLUDE_SPELLING requires a reindex.
- Note enabling INCLUDE_SPELLING requires a reindex. [Michael Elsdörfer]
- Unicode support in SimpleSearchQuery (closes #793) [slollo]
- Merge pull request #790 from andrewschoen/feature/haystack-identifier-
  module. [Andrew Schoen]

  Added a new setting, HAYSTACK_IDENTIFIER_METHOD, which will allow a cust...
- Added a new setting, ``HAYSTACK_IDENTIFIER_METHOD``, which will allow
  a custom method to be provided for ``haystack.utils.get_identifier``.
  [Schoen]
- Fixed an exception log message in elasticsearch backend, and added a
  loading test for elasticsearch. [Dan Watson]
- Changed exception log message in whoosh backend to use
  __class__.__name__ instead of just __name__ (closes #641) [Jeffrey
  Tratner]
- Further bumped the docs on installing engines. [Daniel Lindsley]
- Update docs/installing_search_engines.rst. [Tom Dyson]

  grammar, Elasticsearch version and formatting consistency fixes.
- Added GroundCity & Docket Alarm to the Who Uses docs. [Daniel
  Lindsley]
- Started the development on v2.0.1. [Daniel Lindsley]


v2.0.0 (2013-05-12)
-------------------
- Bumped to v2.0.0! [Daniel Lindsley]
- Changed how ``Raw`` inputs are handled. Thanks to kylemacfarlane for
  the (really good) report. [Daniel Lindsley]
- Added a (passing) test trying to verify #545. [Daniel Lindsley]
- Fixed a doc example on custom forms. Thanks to GrivIN and benspaulding
  for patches. [Daniel Lindsley]
- Added a reserved character for Solr (v4+ supports regexes). Thanks to
  RealBigB for the initial patch. [Daniel Lindsley]
- Merge branch 'master' of github.com:toastdriven/django-haystack.
  [Jannis Leidel]
- Fixed the stats tests. [Daniel Lindsley]
- Adding description of stats support to docs. [Ranjit Chacko]
- Adding support for stats queries in Solr. [Ranjit Chacko]
- Added tests for the previous kwargs patch. [Daniel Lindsley]
- Bug fix to allow object removal without a commit. [Madan Thangavelu]
- Do not refresh the index after it has been deleted. [Kevin Tran]
- Fixed naming of manager for consistency. [Jannis Leidel]

  - renamed `HaystackManager` to `SearchIndexManager`
  - renamed `get_query_set` to `get_search_queryset`
- Updated the docs on running tests. [Daniel Lindsley]
- Merge branch 'madan' [Daniel Lindsley]
- Fixed the case where index_name isn't available. [Daniel Lindsley]
- Fixing typo to allow manager to switch between different index_labels.
  [Madan Thangavelu]
- Haystack manager and tests. [Madan Thangavelu]
- Removing unwanted spaces. [Madan Thangavelu]
- Object query manager for searchindex. [Madan Thangavelu]
- Added requirements file for testing. [Daniel Lindsley]
- Added a unit test for #786. [Dan Watson]
- Fixed a bug when passing "using" to SearchQuerySet (closes #786).
  [Rohan Gupta]
- Ignore the env directory. [Daniel Lindsley]
- Allow for setuptools as well as distutils. [Daniel Lindsley]
- Merge pull request #785 from mattdeboard/dev-mailing-list. [Chris
  Adams]

  Add note directing users to django-haystack-dev mailing list.
- Add note directing users to django-haystack-dev mailing list. [Matt
  DeBoard]
- Spelling suggestions for ElasticSearch (closes #769 and #747) [Dan
  Watson]
- Added support for sending facet options to the backend (closes #753)
  [Dan Watson]
- More_like_this: honor .models() restriction. [Chris Adams]

  Original patch by @mattdeboard updated to remove test drift since it was
  originally submitted

  Closes #593
  Closes #543
- Removed commercial support info. [Daniel Lindsley]
- Merge pull request #779 from pombredanne/pep386_docfixes. [Jannis
  Leidel]

  Update version to 2.0.0b0 in doc conf
- Update version to 2.0.0b0 in doc conf .. to redeem myself of the
  unlucky #777 minimess. [pombredanne]
- Merge pull request #778 from falinsky/patch-1. [Justin Caratzas]

  Fix bug in setup.py
- Fix bug. [Sergey Falinsky]
- Merge pull request #777 from pombredanne/patch-1. [Justin Caratzas]

  Update version to be a PEP386 strict with a minor qualifier of 0 for now...
- Update version to be a PEP386 strict with a minor qualifier of 0 for
  now. [pombredanne]

  This version becomes a "strict" version under PEP386 and should be recognized by install/packaging tools (such as distribute/distutils/setuptools) as newer than 2.0.0-beta. This will also help making small increments of the version which brings some sanity when using an update from HEAD and ensure that things will upgrade alright.
- Update_index: display Unicode model names (closes #767) [Chris Adams]

  The model's verbose_name_plural value is included as Unicode but under
  Python 2.x the progress message it was included in was a regular
  byte-string. Now it's correctly handled as Unicode throughout.
- Merge pull request #731 from adityar7/master. [Jannis Leidel]

  Setup custom routers before settings up signal processor.
- Setup custom routers before settings up signal processor. [Aditya
  Rajgarhia]

  Fixes https://github.com/toastdriven/django-haystack/issues/727
- Port the `from_python` method from pyelasticsearch to the
  Elasticsearch backend, similar to `to_python` in
  181bbc2c010a135b536e4d1f7a1c5ae4c63e33db. [Jannis Leidel]

  Fixes #762. Refs #759.
- Merge pull request #761 from stefanw/simple-models-filter. [Justin
  Caratzas]

  Make models filter work on simple backend
- Make model filter for simple backend work. [Stefan Wehrmeyer]

  Adds Stefan Wehrmeyer to AUTHORS for patch
- Merge pull request #746 from lazerscience/fix-update-index-output.
  [Justin Caratzas]

  Using force_text for indexing message
- Replacing `force_text` with `force_unicode`. #746. [Bernhard Vallant]
- Using force_text for indexing message. [Bernhard Vallant]

  verbose_name_plural may be a functional proxy object from ugettext_lazy,
  it should be forced to be a string!
- Support pyelasticsearch 0.4 change (closes #759) [Chris Adams]

  pyelasticsearch 0.4 removed the `to_python` method Haystack used.

  Thanks to @erikrose for the quick patch
- Merge pull request #755 from toastdriven/issue/754-doc-build-warning.
  [Chris Adams]
- Add preceding dots to hyperlink target; fixes issue 754. [Ben
  Spaulding]

  This error was introduced in commit faacbcb.
- Merge pull request #752 from bigjust/master. [Justin Caratzas]

  Fix Simple Score field collision
- Simple: Fix bug in score field collision. [bigjust]

  Previous commit 0a9c919 broke the simple backend for models that
  didn't have an indexed score field.  Added a test to cover regression.
- Set zip_safe in setup.py to prevent egg creation. [Jannis Leidel]

  This is a work around for a bug in Django that prevents detection of management commands embedded in packages installed as setuptools eggs.
- Merge pull request #740 from acdha/simplify-search-view-name-property.
  [Chris Adams]

  Remove redundant __name__ assignment on SearchView
- Remove redundant __name__ assignment on SearchView. [Chris Adams]

  __name__ was being explicitly set to a value which was the same as the
  default value.

  Additionally corrected the obsolete __name__ method declaration in the
  documentation which reflected the code prior to SHA:89d8096 in 2010.
- Merge pull request #698 from gjb83/master. [Chris Adams]

  Fixed deprecation warning for url imports on Django 1.3

  Thanks to @gjb83 for the patch.
- Removed star imports. [gjb83]
- Maintain Django 1.3 compatibility. [gjb83]
- Fixed deprecation warning. [gjb83]

  django.conf.urls.defaults is now deprecated. Use django.conf.urls instead.
- Merge pull request #743 from bigjust/solr-managementcmd-fix. [Justin
  Caratzas]

  Solr build_solr_schema: fixed a bug in build_solr_schema. Thanks to mjum...
- Solr build_solr_schema: fixed a bug in build_solr_schema. Thanks to
  mjumbewu for the report! [Justin Caratzas]

  If you tried to run build_solr_schema with a backend that supports
  schema building, but was not Solr (like Whoosh), then you would get an
  invalid schema.  This fix raises the ImproperlyConfigured exception
  with a proper message.
- Merge pull request #742 from bigjust/simple-backend-score-fix. [Justin
  Caratzas]
- Simple: removed conflicting score field from raw result objects.
  [Justin Caratzas]

  This keeps consistency with the Solr backend, which resolves this conflict
  in the same manner.
- ElasticSearch: fix AltParser test. [Chris Adams]

  AltParser queries are still broken but that fucntionality has only been
  listed as supported on Solr.
- Better Solr AltParser quoting (closes #730) [Chris Adams]

  Previously the Solr AltParser implementation embedded the search term as an
  attribte inside the {!…} construct, which required it to be doubly escaped.

  This change contributed by @ivirabyan moves the value outside the query,
  requiring only our normal quoting:

      q=(_query_:"{!edismax}Assassin's Creed")

  instead of:

      q=(_query_:"{!edismax v='Assassin's Creed'}")

  Thanks @ivirabyan for the patch!
- Solr: use nested query syntax for AltParser queries. [Chris Adams]

  The previous implementation would, given a query like this::

      sqs.filter(content=AltParser('dismax', 'library', qf="title^2 text" mm=1))

  generate a query like this::

      {!dismax v=library qf="title^2 text" mm=1}

  This works in certain situations but causes Solr to choke while parsing it
  when Haystack wraps this term in parentheses::

      org.apache.lucene.queryParser.ParseException: Cannot parse '({!dismax mm=1 qf='title^2 text institution^0.8' v=library})':
      Encountered " &lt;RANGEEX_GOOP&gt; "qf=\'title^1.25 "" at line 1, column 16.

  The solution is to use the nested query syntax described here:

      http://searchhub.org/2009/03/31/nested-queries-in-solr/

  This will produce a query like this, which works with Solr 3.6.2::

      (_query_:"{!edismax mm=1 qf='title^1.5 text institution^0.5' v=library}")

  Leaving the actual URL query string looking like this::

      q=%28_query_%3A%22%7B%21edismax+mm%3D1+qf%3D%27title%5E1.5+text+institution%5E0.5%27+v%3Dlibrary%7D%22%29

  * Tests updated for the new query generation output
  * A Solr backend task was added to actually run the dismax queries and verify
    that we're not getting Solr 400s errors due to syntax gremlins
- Pass active backend to index queryset calls (closes #534) [Chris
  Adams]

  Now the Index index_queryset() and read_queryset() methods will be called with
  the active backend name so they can optionally perform backend-specific
  filtering.

  This is extremely useful when using something like Solr cores to maintain
  language specific backends, allowing an Index to select the appropriate
  documents for each language::

      def index_queryset(self, using=None):
          return Post.objects.filter(language=using)

  Changes:
      * clear_index, update_index and rebuild_index all default to processing
        *every* backend. ``--using`` may now be provided multiple times to select
        a subset of the configured backends.
      * Added examples to the Multiple Index documentation page
- Because Windows. [Daniel Lindsley]
- Fixed the docs on debugging to cover v2. Thanks to eltesttox for the
  report. [Daniel Lindsley]
- That second colon matters. [Daniel Lindsley]
- Further docs on autocomplete. [Daniel Lindsley]
- Fixed the imports that would stomp on each other. [Daniel Lindsley]

  Thanks to codeinthehole, Attorney-Fee & imacleod for pointing this out.
- BACKWARD-INCOMPATIBLE: Removed ``RealTimeSearchIndex`` in favor of
  ``SignalProcessors``. [Daniel Lindsley]

  This only affects people who were using ``RealTimeSearchIndex`` (or a
  queuing variant) to perform near real-time updates. Those users should
  refer to the Migration documentation.
- Updated ignores. [Daniel Lindsley]
- Merge pull request #552 from hadesgames/master. [Jannis Leidel]

  Fixes process leak when using update_index with workers.
- Fixed update_index process leak. [Tache Alexandru]
- Merge branch 'master' of github.com:toastdriven/django-haystack.
  [Jannis Leidel]
- Merge pull request #682 from acdha/682-update_index-tz-support. [Chris
  Adams]

  update_index should use non-naive datetime when settings.USE_TZ=True
- Tests for update_index timezone support. [Chris Adams]

  * Confirm that update_index --age uses the Django timezone-aware now
    support function
  * Skip this test on Django 1.3
- Update_index: use tz-aware datetime where applicable. [Chris Adams]

  This will allow Django 1.4 users with USE_TZ=True to use update_index with time
  windowing as expected - otherwise the timezone offset needs to be manually
  included in the value passed to -a
- Tests: mark expected failures in Whoosh suite. [Chris Adams]

  This avoids making it painful to run the test suite and flags the tests which
  need attention
- Tests: mark expected failures in ElasticSearch suite. [Chris Adams]

  This avoids making it painful to run the test suite and flags the tests which
  need attention
- Multiple index tests: correct handling of Whoosh teardown. [Chris
  Adams]

  We can't remove the Whoosh directory per-test - only after every
  test has run…
- Whoosh tests: use a unique tempdir. [Chris Adams]

  This ensures that there's no way for results to persist across runs
  and lets the OS clean up the mess if we fail catastrophically

  The multiindex and regular whoosh tests will have different prefixes to ease
  debugging
- Merge pull request #699 from acdha/tox-multiple-django-versions.
  [Chris Adams]

  Minor tox.ini & test runner tidying
- Test runner: set exit codes on failure. [Chris Adams]
- Tox: refactor envlist to include Django versions. [Chris Adams]

  * Expanded base dependencies
  * Set TEST_RUNNER_ARGS=-v0 to reduce console noise
  * Add permutations of python 2.5, 2.6, 2.7 and django 1.3 and 1.4
- Test runner: add $TEST_RUNNER_ARGS env. variable. [Chris Adams]

  This allows you to export TEST_RUNNER_ARGS=-v0 to affect all 9
  invocations
- Tox: store downloads in tmpdir. [Chris Adams]
- Be a bit more careful when resetting connections in the
  multiprocessing updater. Fixes #562. [Jannis Leidel]
- Fixed distance handling in result parser of the elasticsearch backend.
  This is basically the second part of #566. Thanks to Josh Drake for
  the initial patch. [Jannis Leidel]
- Merge pull request #670 from dhan88/master. [Jannis Leidel]

  Elasticsearch backend using incorrect coordinates for geo_bounding_box (within) filter
- Elasticsearch geo_bounding_box filter expects top_left (northwest) and
  bottom_right (southeast). Haystack's elasticsearch backend is passing
  northeast and southwest coordinates instead. [Danny Han]
- Merge pull request #666 from caioariede/master. [Jannis Leidel]

  Fixes incorrect call to put_mapping on ElasticSearch backend
- Fixes incorrect call to put_mapping on elasticsearch backend. [Caio
  Ariede]
- Added ericholscher to AUTHORS. [Daniel Lindsley]
- Add a title for the support matrix so it's linkable. [Eric Holscher]
- Tests: command-line help and coverage.py support. [Chris Adams]

  This makes run_all_tests.sh a little easier to use and simplifies the process of
  running under coverage.py

  Closes #683
- Tests: basic help and coverage.py support. [Chris Adams]

  run_all_tests.sh now supports --help and --with-coverage
- Add a CONTRIBUTING.md file for Github. [Chris Adams]

  This is a migrated copy of docs/contributing.rst so Github can suggest it when
  pull requests are being created
- Fix combination logic for complex queries. [Chris Adams]

  Previously combining querysets which used a mix of logical AND and OR operations
  behaved unexpectedly.

  Thanks to @mjl for the patch and tests in SHA: 9192dbd

  Closes #613, #617
- Added rz to AUTHORS. [Daniel Lindsley]
- Fixed string joining bug in the simple backend. [Rodrigo Guzman]
- Added failing test case for #438. [Daniel Lindsley]
- Fix Solr more-like-this tests (closes #655) [Chris Adams]

  * Refactored the MLT tests to be less brittle in checking only
    the top 5 results without respect to slight ordering
    variations.
  * Refactored LiveSolrMoreLikeThisTestCase into multiple tests
  * Convert MLT templatetag tests to rely on mocks for stability
    and to avoid hard-coding backend assumptions, at the expense
    of relying completely on the backend MLT queryset-level tests
    to exercise that code.
  * Updated MLT code to always assume deferred querysets are
    available (introduced in Django 1.1) and removed a hard-coded
    internal attr check
- All backends: fixed more_like_this & deferreds. [Chris Adams]

  Django removed the get_proxied_model helper function in the 1.3 dev
  cycle:

  https://code.djangoproject.com/ticket/17678

  This change adds support for the simple new property access used by 1.3+

  BACKWARD INCOMPATIBLE: Django 1.2 is no longer supported
- Updated elasticsearch backend to use a newer pyelasticsearch release
  that features an improved API , connection pooling and better
  exception handling. [Jannis Leidel]
- Added Gidsy to list of who uses Haystack. [Jannis Leidel]
- Increased the number of terms facets returned by the Elasticsearch
  backend to 100 from the default 10 to work around an issue upstream.
  [Jannis Leidel]

  This is hopefully only temporary until it's fixed in Elasticsearch, see https://github.com/elasticsearch/elasticsearch/issues/1776.
- Merge pull request #643 from stephenmcd/master. [Chris Adams]

  Fixed logging in simple_backend
- Fixed logging in simple_backend. [Stephen McDonald]
- Added Pitchup to Who Uses. [Daniel Lindsley]
- Merge branch 'unittest2-fix' [Chris Adams]
- Better unittest2 detection. [Chris Adams]

  This supports Python 2.6 and earlier by shifting the import to look
  towards the future name rather than the past
- Merge pull request #652 from acdha/solr-content-extraction-test-fix.
  [Chris Adams]

  Fix the Solr content extraction handler tests
- Add a minimal .travis.yml file to suppress build spam. [Chris Adams]

  Until the travis-config branch is merged in, this can be spread around to avoid
  wasting time running builds before we're ready
- Tests: enable Solr content extraction handler. [Chris Adams]

  This is needed for the test_content_extraction test to pass
- Tests: Solr: fail immediately on config errors. [Chris Adams]
- Solr tests: clean unused imports. [Chris Adams]
- Suppress console DeprecationWarnings. [Chris Adams]
- Merge pull request #651 from acdha/unittest2-fix. [Chris Adams]

  Update unittest2 import logic so the tests can actually be run
- Update unittest2 import logic. [Chris Adams]

  We'll try to get it from Django 1.3+ but Django 1.2 users will need to install
  it manually
- Merge pull request #650 from bigjust/patch-1. [Chris Adams]

  Fix typo in docstring
- Fix typo. [Justin Caratzas]
- Refactor to use a dummy logger that lets you turn off logging. [Travis
  Swicegood]
- A bunch of Solr testing cleanup. [Chris Adams]
- Skip test is pysolr isn't available. [Travis Swicegood]
- Updated Who Uses to correct a backend usage. [Daniel Lindsley]
- Updated documentation about using the main pyelasticsearch release.
  [Jannis Leidel]
- Merge pull request #628 from kjoconnor/patch-1. [Jannis Leidel]

  Missing `
- Missing ` [Kevin O'Connor]
- Fixed a mostly-empty warning in the ``SearchQuerySet`` docs. Thanks to
  originell for the report! [Daniel Lindsley]
- Fixed the "Who Uses" entry on AstroBin. [Daniel Lindsley]
- Use the match_all query to speed up performing filter only queries
  dramatically. [Jannis Leidel]
- Fixed typo in docs. Closes #612. [Jannis Leidel]
- Updated link to celery-haystack repository. [Jannis Leidel]
- Fixed the docstring of SearchQuerySet.none. Closes #435. [Jannis
  Leidel]
- Fixed the way quoting is done in the Whoosh backend when using the
  ``__in`` filter. [Jason Kraus]
- Added the solrconfig.xml I use for testing. [Daniel Lindsley]
- Fixed typo in input types docs. Closes #551. [Jannis Leidel]
- Make sure an search engine's backend isn't instantiated on every call
  to the backend but only once. Fixes #580. [Jannis Leidel]
- Restored sorting to ES backend that was broken in
  d1fa95529553ef8d053308159ae4efc455e0183f. [Jannis Leidel]
- Prevent spatial filters from stomping on existing filters in
  ElasticSearch backend. [Josh Drake]
- Merge branch 'mattdeboard-sq-run-refactor' [Jannis Leidel]
- Fixed an ES test that seems like a change in behavior in recent ES
  versions. [Jannis Leidel]
- Merge branch 'sq-run-refactor' of https://github.com/mattdeboard
  /django-haystack into mattdeboard-sq-run-refactor. [Jannis Leidel]
- Refactor Solr & ES SearchQuery subclasses to use the ``build_params``
  from ``BaseSearchQuery`` to build the kwargs to be passed to the
  search engine. [Matt DeBoard]

  This refactor is made to make extending Haystack simpler. I only ran the Solr tests which invoked a ``run`` call (via ``get_results``), and those passed. I did not run the ElasticSearch tests; however, the ``run`` method for both Lucene-based search engines were identical before, and are identical now. The test I did run -- ``LiveSolrSearchQueryTestCase.test_log_query`` -- passed.
- Merge branch 'master' of https://github.com/toastdriven/django-
  haystack. [Jannis Leidel]
- Merge pull request #568 from duncm/master. [Jannis Leidel]

  Fix exception in SearchIndex.get_model()
- Fixed ``SearchIndex.get_model()`` to raise exception instead of
  returning it. [Duncan Maitland]
- Merge branch 'master' of https://github.com/toastdriven/django-
  haystack. [Jannis Leidel]
- Fixed Django 1.4 compatibility. Thanks to bloodchild for the report!
  [Daniel Lindsley]
- Refactored ``SearchBackend.search`` so that kwarg-generation
  operations are in a discrete method. [Matt DeBoard]

  This makes it much simpler to subclass ``SearchBackend`` (& the engine-specific variants) to add support for new parameters.
- Added witten to AUTHORS. [Daniel Lindsley]
- Fix for #378: Highlighter returns unexpected results if one term is
  found within another. [dan]
- Removed jezdez's old entry in AUTHORS. [Daniel Lindsley]
- Added Jannis to Primary Authors. [Daniel Lindsley]
- Merge branch 'master' of github.com:jezdez/django-haystack. [Jannis
  Leidel]
- Fixed a raise condition when using the simple backend (e.g. in tests)
  and changing the DEBUG setting dynamically (e.g. in integration
  tests). [Jannis Leidel]
- Add missing `ImproperlyConfigured` import from django's exceptions.
  [Luis Nell]

  l178 failed.
- Commercial support is now officially available for Haystack. [Daniel
  Lindsley]
- Using multiple workers (and resetting the connection) causes things to
  break when the app is finished and it moves to the next and does
  qs.count() to get a count of the objects in that app to index with
  psycopg2 reporting a closed connection. Manually closing the
  connection before each iteration if using multiple workers before
  building the queryset fixes this issue. [Adam Fast]
- Removed code leftover from v1.X. Thanks to kossovics for the report!
  [Daniel Lindsley]
- Fixed a raise condition when using the simple backend (e.g. in tests)
  and changing the DEBUG setting dynamically (e.g. in integration
  tests). [Jannis Leidel]
- All backends let individual documents fail, rather than failing whole
  chunks. Forward port of acdha's work on 1.2.X. [Daniel Lindsley]
- Added ikks to AUTHORS. [Daniel Lindsley]
- Fixed ``model_choices`` to use ``smart_unicode``. [Igor Támara]
- +localwiki.org. [Philip Neustrom]
- Added Pix Populi to "Who Uses". [Daniel Lindsley]
- Added contribution guidelines. [Daniel Lindsley]
- Updated the docs to reflect the supported version of Django. Thanks to
  catalanojuan for the original patch! [Daniel Lindsley]
- Fix PYTHONPATH Export and add Elasticsearch example. [Craig Nagy]
- Updated the Whoosh URL. Thanks to cbess for the original patch!
  [Daniel Lindsley]
- Reset database connections on each process on update_index when using
  --workers. [Diego Búrigo Zacarão]
- Moved the ``build_queryset`` method to ``SearchIndex``. [Alex Vidal]

  This method is used to build the queryset for indexing operations. It is copied
  from the build_queryset function that lived in the update_index management
  command.

  Making this change allows developers to modify the queryset used for indexing
  even when a date filter is necessary. See `tests/core/indexes.py` for tests.
- Fixed a bug where ``Indexable`` could be mistakenly recognized as a
  discoverable class. Thanks to twoolie for the original patch! [Daniel
  Lindsley]
- Fixed a bug with query construction. Thanks to dstufft for the report!
  [Daniel Lindsley]

  This goes back to erroring on the side of too many parens, where there weren't enough before. The engines will no-op them when they're not important.
- Fixed a bug where South would cause Haystack to setup too soon. Thanks
  to adamfast for the report! [Daniel Lindsley]
- Added Crate.io to "Who Uses"! [Daniel Lindsley]
- Fixed a small typo in spatial docs. [Frank Wiles]
- Logging: avoid forcing string interpolation. [Chris Adams]
- Fixed docs on using a template for Solr schema. [Daniel Lindsley]
- Add note to 'Installing Search Engines' doc explaining how to override
  the template used by 'build_solr_schema' [Matt DeBoard]
- Better handling of ``.models``. Thanks to zbyte64 for the report &
  HonzaKral for the original patch! [Daniel Lindsley]
- Added Honza to AUTHORS. [Daniel Lindsley]
- Handle sorting for ElasticSearch better. [Honza Kral]
- Update docs/backend_support.rst. [Issac Kelly]
- Fixed a bug where it's possible to erroneously try to get spelling
  suggestions. Thanks to bigjust for the report! [Daniel Lindsley]
- The ``dateutil`` requirement is now optional. Thanks to arthurnn for
  the report. [Daniel Lindsley]
- Fixed docs on Solr spelling suggestion until the new Suggester support
  can be added. Thanks to zw0rk & many others for the report! [Daniel
  Lindsley]
- Bumped to beta. [Daniel Lindsley]

  We're not there yet, but we're getting close.
- Added saved-search to subproject docs. [Daniel Lindsley]
- Search index discovery no longer swallows errors with reckless
  abandon. Thanks to denplis for the report! [Daniel Lindsley]
- Elasticsearch backend officially supported. [Daniel Lindsley]

  All tests passing.
- Back down to 3 on latest pyelasticsearch. [Daniel Lindsley]
- And then there were 3 (Elasticsearch test failures). [Daniel Lindsley]
- Solr tests now run faster. [Daniel Lindsley]
- Improved the tutorial docs. Thanks to denplis for the report! [Daniel
  Lindsley]
- Down to 9 failures on Elasticsearch. [Daniel Lindsley]
- Because the wishlist has changed. [Daniel Lindsley]
- A few small fixes. Thanks to robhudson for the report! [Daniel
  Lindsley]
- Added an experimental Elasticsearch backend. [Daniel Lindsley]

  Tests are not yet passing but it works in basic hand-testing. Passing test coverage coming soon.
- Fixed a bug related to the use of ``Exact``. [Daniel Lindsley]
- Removed accidental indent. [Daniel Lindsley]
- Ensure that importing fields without the GeoDjango kit doesn't cause
  an error. Thanks to dimamoroz for the report! [Daniel Lindsley]
- Added the ability to reload a connection. [Daniel Lindsley]
- Fixed ``rebuild_index`` to properly have all options available.
  [Daniel Lindsley]
- Fixed a bug in pagination. Thanks to sgoll for the report! [Daniel
  Lindsley]
- Added an example to the docs on what to put in ``INSTALLED_APPS``.
  Thanks to Dan Krol for the suggestion. [Daniel Lindsley]
- Changed imports so the geospatial modules are only imported as needed.
  [Dan Loewenherz]
- Better excluded index detection. [Daniel Lindsley]
- Fixed a couple of small typos. [Sean Bleier]
- Made sure the toolbar templates are included in the source
  distribution. [Jannis Leidel]
- Fixed a few documentation issues. [Jannis Leidel]
- Moved my contribution for the geospatial backend to a attribution of
  Gidsy which funded my work. [Jannis Leidel]
- Small docs fix. [Daniel Lindsley]
- Added input types, which enables advanced querying support. Thanks to
  CMGdigital for funding the development! [Daniel Lindsley]
- Added geospatial search support! [Daniel Lindsley]

  I have anxiously waited to add this feature for almost 3 years now.
  Support is finally present in more than one backend & I was
  generously given some paid time to work on implementing this.

  Thanks go out to:

    * CMGdigital, who paid for ~50% of the development of this feature
      & were awesomely supportive.
    * Jannis Leidel (jezdez), who did the original version of this
      patch & was an excellent sounding board.
    * Adam Fast, for patiently holding my hand through some of the
      geospatial confusions & for helping me verify GeoDjango
      functionality.
    * Justin Bronn, for the great work he originally did on
      GeoDjango, which served as a point of reference/inspiration
      on the API.

  And thanks to all others who have submitted a variety of
  patches/pull requests/interest throughout the years trying to get
  this feature in place.
- Added .values() / .values_list() methods, for fetching less data.
  Thanks to acdha for the original implementation! [Daniel Lindsley]
- Reduced the number of queries Haystack has to perform in many cases
  (pagination/facet_counts/spelling_suggestions). Thanks to acdha for
  the improvements! [Daniel Lindsley]
- Spruced up the layout on the new DjDT panel. [Daniel Lindsley]
- Fixed compatibility with Django pre-1.4 trunk. * The
  MAX_SHOW_ALL_ALLOWED variable is no longer available, and hence causes
  an ImportError with Django versions higher 1.3. * The
  "list_max_show_all" attribute on the ChangeList object is used
  instead. * This patch maintains compatibility with Django 1.3 and
  lower by trying to import the MAX_SHOW_ALL_ALLOWED variable first.
  [Aram Dulyan]
- Updated ``setup.py`` for the new panel bits. [Daniel Lindsley]
- Added a basic DjDT panel for Haystack. Thanks to robhudson for
  planting the seed that Haystack should bundle this! [Daniel Lindsley]
- Added the ability to specify apps or individual models to
  ``update_index``. Thanks to CMGdigital for funding this development!
  [Daniel Lindsley]
- Added ``--start/--end`` flags to ``update_index`` to allow finer-
  grained control over date ranges. Thanks to CMGdigital for funding
  this development! [Daniel Lindsley]
- I hate Python packaging. [Daniel Lindsley]
- Made ``SearchIndex`` classes thread-safe. Thanks to craigds for the
  report & original patch. [Daniel Lindsley]
- Added a couple more uses. [Daniel Lindsley]
- Bumped reqs in docs for content extraction bits. [Daniel Lindsley]
- Added a long description for PyPI. [Daniel Lindsley]
- Solr backend support for rich-content extraction. [Chris Adams]

  This allows indexes to use text extracted from binary files as well
  as normal database content.
- Fixed errant ``self.log``. [Daniel Lindsley]

  Thanks to terryh for the report!
- Fixed a bug with index inheritance. [Daniel Lindsley]

  Fields would seem to not obey the MRO while method did. Thanks to ironfroggy for the report!
- Fixed a long-time bug where the Whoosh backend didn't have a ``log``
  attribute. [Daniel Lindsley]
- Fixed a bug with Whoosh's edge n-gram support to be consistent with
  the implementation in the other engines. [Daniel Lindsley]
- Added celery-haystack to Other Apps. [Daniel Lindsley]
- Changed ``auto_query`` so it can be run on other, non-``content``
  fields. [Daniel Lindsley]
- Removed extra loops through the field list for a slight performance
  gain. [Daniel Lindsley]
- Moved ``EXCLUDED_INDEXES`` to a per-backend setting. [Daniel Lindsley]
- BACKWARD-INCOMPATIBLE: The default filter is now ``__contains`` (in
  place of ``__exact``). [Daniel Lindsley]

  If you were relying on this behavior before, simply add ``__exact`` to the fieldname.
- BACKWARD-INCOMPATIBLE: All "concrete" ``SearchIndex`` classes must now
  mixin ``indexes.Indexable`` as well in order to be included in the
  index. [Daniel Lindsley]
- Added tox to the mix. [Daniel Lindsley]
- Allow for less configuration. Thanks to jeromer & cyberdelia for the
  reports! [Daniel Lindsley]
- Fixed up the management commands to show the right alias & use the
  default better. Thanks to jeromer for the report! [Daniel Lindsley]
- Fixed a bug where signals wouldn't get setup properly, especially on
  ``RealTimeSearchIndex``. Thanks to byoungb for the report! [Daniel
  Lindsley]
- Fixed formatting in the tutorial. [Daniel Lindsley]
- Removed outdated warning about padding numeric fields. Thanks to
  mchaput for pointing this out! [Daniel Lindsley]
- Added a silent failure option to prevent Haystack from suppressing
  some failures. [Daniel Lindsley]

  This option defaults to ``True`` for compatibility & to prevent cases where lost connections can break reindexes/searches.
- Fixed the simple backend to not throw an exception when handed an
  ``SQ``. Thanks to diegobz for the report! [Daniel Lindsley]
- Whoosh now supports More Like This! Requires Whoosh 1.8.4. [Daniel
  Lindsley]
- Deprecated ``get_queryset`` & fixed how indexing happens. Thanks to
  Craig de Stigter & others for the report! [Daniel Lindsley]
- Fixed a bug where ``RealTimeSearchIndex`` was erroneously included in
  index discovery. Thanks to dedsm for the report & original patch!
  [Daniel Lindsley]
- Added Vickery to "Who Uses". [Daniel Lindsley]
- Require Whoosh 1.8.3+. It's for your own good. [Daniel Lindsley]
- Added multiprocessing support to ``update_index``! Thanks to
  CMGdigital for funding development of this feature. [Daniel Lindsley]
- Fixed a bug where ``set`` couldn't be used with ``__in``. Thanks to
  Kronuz for the report! [Daniel Lindsley]
- Added a ``DecimalField``. [Daniel Lindsley]
- Fixed a bug where a different style of import could confuse the
  collection of indexes. Thanks to groovecoder for the report. [Daniel
  Lindsley]
- Fixed a typo in the autocomplete docs. Thanks to anderso for the
  catch! [Daniel Lindsley]
- Fixed a backward-incompatible query syntax change Whoosh introduced
  between 1.6.1 & 1.6.2 that causes only one model to appear as though
  it is indexed. [Daniel Lindsley]
- Updated AUTHORS to reflect the Kent's involvement in multiple index
  support. [Daniel Lindsley]
- BACKWARD-INCOMPATIBLE: Added multiple index support to Haystack, which
  enables you to talk to more than one search engine in the same
  codebase. Thanks to: [Daniel Lindsley]

  * Kent Gormat for funding the development of this feature.
  * alex, freakboy3742 & all the others who contributed to Django's multidb feature, on which much of this was based.
  * acdha for inspiration & feedback.
  * dcramer for inspiration & feedback.
  * mcroydon for patch review & docs feedback.

  This commit starts the development efforts for Haystack v2.


v1.2.7 (2012-04-06)
-------------------
- Bumped to v1.2.7! [Daniel Lindsley]
- Solr: more informative logging when full_prepare fails during update.
  [Chris Adams]

  * Change the exception handler to record per-object failures
  * Log the precise object which failed in a manner which tools like Sentry can examine
- Added ikks to AUTHORS. [Daniel Lindsley]
- Fixed ``model_choices`` to use ``smart_unicode``. Thanks to ikks for
  the patch! [Daniel Lindsley]
- Fixed compatibility with Django pre-1.4 trunk. * The
  MAX_SHOW_ALL_ALLOWED variable is no longer available, and hence causes
  an ImportError with Django versions higher 1.3. * The
  "list_max_show_all" attribute on the ChangeList object is used
  instead. * This patch maintains compatibility with Django 1.3 and
  lower by trying to import the MAX_SHOW_ALL_ALLOWED variable first.
  [Aram Dulyan]
- Fixed a bug in pagination. Thanks to sgoll for the report! [Daniel
  Lindsley]
- Added an example to the docs on what to put in ``INSTALLED_APPS``.
  Thanks to Dan Krol for the suggestion. [Daniel Lindsley]
- Added .values() / .values_list() methods, for fetching less data.
  [Chris Adams]
- Reduced the number of queries Haystack has to perform in many cases
  (pagination/facet_counts/spelling_suggestions). [Chris Adams]
- Fixed compatibility with Django pre-1.4 trunk. * The
  MAX_SHOW_ALL_ALLOWED variable is no longer available, and hence causes
  an ImportError with Django versions higher 1.3. * The
  "list_max_show_all" attribute on the ChangeList object is used
  instead. * This patch maintains compatibility with Django 1.3 and
  lower by trying to import the MAX_SHOW_ALL_ALLOWED variable first.
  [Aram Dulyan]


v1.2.6 (2011-12-09)
-------------------
- I hate Python packaging. [Daniel Lindsley]
- Bumped to v1.2.6! [Daniel Lindsley]
- Made ``SearchIndex`` classes thread-safe. Thanks to craigds for the
  report & original patch. [Daniel Lindsley]
- Added a long description for PyPI. [Daniel Lindsley]
- Fixed errant ``self.log``. [Daniel Lindsley]

  Thanks to terryh for the report!
- Started 1.2.6. [Daniel Lindsley]


v1.2.5 (2011-09-14)
-------------------
- Bumped to v1.2.5! [Daniel Lindsley]
- Fixed a bug with index inheritance. [Daniel Lindsley]

  Fields would seem to not obey the MRO while method did. Thanks to ironfroggy for the report!
- Fixed a long-time bug where the Whoosh backend didn't have a ``log``
  attribute. [Daniel Lindsley]
- Fixed a bug with Whoosh's edge n-gram support to be consistent with
  the implementation in the other engines. [Daniel Lindsley]
- Added tswicegood to AUTHORS. [Daniel Lindsley]
- Fixed the ``clear_index`` management command to respect the ``--site``
  option. [Travis Swicegood]
- Removed outdated warning about padding numeric fields. Thanks to
  mchaput for pointing this out! [Daniel Lindsley]
- Added a silent failure option to prevent Haystack from suppressing
  some failures. [Daniel Lindsley]

  This option defaults to ``True`` for compatibility & to prevent cases where lost connections can break reindexes/searches.
- Fixed the simple backend to not throw an exception when handed an
  ``SQ``. Thanks to diegobz for the report! [Daniel Lindsley]
- Bumped version post-release. [Daniel Lindsley]
- Whoosh now supports More Like This! Requires Whoosh 1.8.4. [Daniel
  Lindsley]


v1.2.4 (2011-05-28)
-------------------
- Bumped to v1.2.4! [Daniel Lindsley]
- Fixed a bug where the old ``get_queryset`` wouldn't be used during
  ``update_index``. Thanks to Craig de Stigter & others for the report.
  [Daniel Lindsley]
- Bumped to v1.2.3! [Daniel Lindsley]
- Require Whoosh 1.8.3+. It's for your own good. [Daniel Lindsley]


v1.2.2 (2011-05-19)
-------------------
- Bumped to v1.2.2! [Daniel Lindsley]
- Added multiprocessing support to ``update_index``! Thanks to
  CMGdigital for funding development of this feature. [Daniel Lindsley]
- Fixed a bug where ``set`` couldn't be used with ``__in``. Thanks to
  Kronuz for the report! [Daniel Lindsley]
- Added a ``DecimalField``. [Daniel Lindsley]


v1.2.1 (2011-05-14)
-------------------
- Bumped to v1.2.1. [Daniel Lindsley]
- Fixed a typo in the autocomplete docs. Thanks to anderso for the
  catch! [Daniel Lindsley]
- Fixed a backward-incompatible query syntax change Whoosh introduced
  between 1.6.1 & 1.6.2 that causes only one model to appear as though
  it is indexed. [Daniel Lindsley]


v1.2.0 (2011-05-03)
-------------------
- V1.2.0! [Daniel Lindsley]
- Added ``request`` to the ``FacetedSearchView`` context. Thanks to
  dannercustommade for the report! [Daniel Lindsley]
- Fixed the docs on enabling spelling suggestion support in Solr.
  [Daniel Lindsley]
- Fixed a bug so that ``ValuesListQuerySet`` now works with the ``__in``
  filter. Thanks to jcdyer for the report! [Daniel Lindsley]
- Added the new ``SearchIndex.read_queryset`` bits. [Sam Cooke]
- Changed ``update_index`` so that it warns you if your
  ``SearchIndex.get_queryset`` returns an unusable object. [Daniel
  Lindsley]
- Removed Python 2.3 compat code & bumped requirements for the impending
  release. [Daniel Lindsley]
- Added treyhunner to AUTHORS. [Daniel Lindsley]
- Improved the way selected_facets are handled. [Chris Adams]

  * ``selected_facets`` may be provided multiple times.
  * Facet values are quoted to avoid backend confusion (i.e. `author:Joe Blow` is seen by Solr as `author:Joe AND Blow` rather than the expected `author:"Joe Blow"`)
- Add test for Whoosh field boost. [Trey Hunner]
- Enable field boosting with Whoosh backend. [Trey Hunner]
- Fixed the Solr & Whoosh backends to use the correct ``site`` when
  processing results. Thanks to Madan Thangavelu for the original patch!
  [Daniel Lindsley]
- Added lukeman to AUTHORS. [Daniel Lindsley]
- Updating Solr download and installation instructions to reference
  version 1.4.1 as 1.3.x is no longer available. Fixes #341. [lukeman]
- Revert "Shifted ``handle_registrations`` into ``models.py``." [Daniel
  Lindsley]

  This seems to be breaking for people, despite working here & passing tests. Back to the drawing board...

  This reverts commit 106758f88a9bc5ab7e505be62d385d876fbc52fe.
- Shifted ``handle_registrations`` into ``models.py``. [Daniel Lindsley]

  For historical reasons, it was (wrongly) kept & run in ``__init__.py``. This should help fix many people's issues with it running too soon.
- Pulled out ``EmptyResults`` for testing elsewhere. [Daniel Lindsley]
- Fixed a bug where boolean filtering wouldn't work properly on Whoosh.
  Thanks to alexrobbins for pointing it out! [Daniel Lindsley]
- Added link to 1.1 version of the docs. [Daniel Lindsley]
- Whoosh 1.8.1 compatibility. [Daniel Lindsley]
- Added TodasLasRecetas to "Who Uses". Thanks Javier! [Daniel Lindsley]
- Added a new method to ``SearchQuerySet`` to allow you to specify a
  custom ``result_class`` to use in place of ``SearchResult``. Thanks to
  aaronvanderlip for getting me thinking about this! [Daniel Lindsley]
- Added better autocomplete support to Haystack. [Daniel Lindsley]
- Changed ``SearchForm`` to be more permissive of missing form data,
  especially when the form is unbound. Thanks to cleifer for pointing
  this out! [Daniel Lindsley]
- Ensured that the primary key of the result is a string. Thanks to
  gremmie for pointing this out! [Daniel Lindsley]
- Fixed a typo in the tutorial. Thanks to JavierLopezMunoz for pointing
  this out! [Daniel Lindsley]
- Added appropriate warnings about ``HAYSTACK_<ENGINE>_PATH`` settings
  in the docs. [Daniel Lindsley]
- Added some checks for badly-behaved backends. [Daniel Lindsley]
- Ensure ``use_template`` can't be used with ``MultiValueField``.
  [Daniel Lindsley]
- Added n-gram fields for auto-complete style searching. [Daniel
  Lindsley]
- Added ``django-celery-haystack`` to the subapp docs. [Daniel Lindsley]
- Fixed the the faceting docs to correctly link to narrowed facets.
  Thanks to daveumr for pointing that out! [Daniel Lindsley]
- Updated docs to reflect the ``form_kwargs`` that can be used for
  customization. [Daniel Lindsley]
- Whoosh backend now explicitly closes searchers in an attempt to use
  fewer file handles. [Daniel Lindsley]
- Changed fields so that ``boost`` is now the parameter of choice over
  ``weight`` (though ``weight`` has been retained for backward
  compatibility). Thanks to many people for the report! [Daniel
  Lindsley]
- Bumped revision. [Daniel Lindsley]


v1.1 (2010-11-23)
-----------------
- Bumped version to v1.1! [Daniel Lindsley]
- The ``build_solr_schema`` command can now write directly to a file.
  Also includes tests for the new overrides. [Daniel Lindsley]
- Haystack's reserved field names are now configurable. [Daniel
  Lindsley]
- BACKWARD-INCOMPATIBLE: ``auto_query`` has changed so that only double
  quotes cause exact match searches. Thanks to craigds for the report!
  [Daniel Lindsley]
- Added docs on handling content-type specific output in results.
  [Daniel Lindsley]
- Added tests for ``content_type``. [Daniel Lindsley]
- Added docs on boosting. [Daniel Lindsley]
- Updated the ``searchfield_api`` docs. [Daniel Lindsley]
- ``template_name`` can be a list of templates passed to
  ``loader.select_template``. Thanks to zifot for the suggestion.
  [Daniel Lindsley]
- Moved handle_facet_parameters call into FacetField's __init__. [Travis
  Cline]
- Updated the pysolr dependency docs & added a debugging note about
  boost support. [Daniel Lindsley]
- Starting the beta. [Daniel Lindsley]
- Fixed a bug with ``FacetedSearchForm`` where ``cleaned_data`` may not
  exist. Thanks to imageinary for the report! [Daniel Lindsley]
- Added the ability to build epub versions of the docs. [Alfredo]
- Clarified that the current supported version of Whoosh is the 1.1.1+
  series. Thanks to glesica for the report & original patch! [Daniel
  Lindsley]
- The SearchAdmin now correctly uses SEARCH_VAR instead of assuming
  things. [Rob Hudson]
- Added the ability to "weight" individual fields to adjust their
  relevance. [David Sauve]
- Fixed facet fieldname lookups to use the proper fieldname. [Daniel
  Lindsley]
- Removed unneeded imports from the Solr backend. [Daniel Lindsley]
- Further revamping of faceting. Each field type now has a faceted
  variant that's created either with ``faceted=True`` or manual
  initialization. [Daniel Lindsley]

  This should also make user-created field types possible, as many of the gross ``isinstance`` checks were removed.
- Fixes SearchQuerySet not pickleable. Patch by oyiptong, tests by
  toastdriven. [oyiptong]
- Added the ability to remove objects from the index that are no longer
  in the database to the ``update_index`` management command. [Daniel
  Lindsley]
- Added a ``range`` filter type. Thanks to davisp & lukesneeringer for
  the suggestion! [Daniel Lindsley]

  Note that integer ranges are broken on the current Whoosh (1.1.1). However, date & character ranges seem to work fine.
- Consistency. [Daniel Lindsley]
- Ensured that multiple calls to ``count`` don't result in multiple
  queries. Thanks to Nagyman and others for the report! [Daniel
  Lindsley]
- Ensure that when fetching the length of a result set that the whole
  index isn't consumed (especially on Whoosh & Xapian). [Daniel
  Lindsley]
- Really fixed dict ordering bugs in SearchSite. [Travis Cline]
- Changed how you query for facets and how how they are presented in the
  facet counts.  Allows customization of facet field names in indexes.
  [Travis Cline]

  Lightly backward-incompatible (git only).
- Made it easier to override ``SearchView/SearchForm`` behavior when no
  query is present. [Daniel Lindsley]

  No longer do you need to override both ``SearchForm`` & ``SearchView`` if you want to return all results. Use the built-in ``SearchView``, provide your own custom ``SearchForm`` subclass & override the ``no_query_found`` method per the docstring.
- Don't assume that any pk castable to an integer should be an integer.
  [Carl Meyer]
- Fetching a list of all fields now produces correct results regardless
  of dict-ordering. Thanks to carljm & veselosky for the report! [Daniel
  Lindsley]
- Added notes about what is needed to make schema-building independent
  of dict-ordering. [Daniel Lindsley]
- Sorted model order matters. [Daniel Lindsley]
- Prevent Whoosh from erroring if the ``end_offset`` is less than or
  equal to 0. Thanks to zifot for the report! [Daniel Lindsley]
- Removed insecure use of ``eval`` from the Whoosh backend. Thanks to
  SmileyChris for pointing this out. [Daniel Lindsley]
- Disallow ``indexed=False`` on ``FacetFields``. Thanks to jefftriplett
  for the report! [Daniel Lindsley]
- Added ``FacetField`` & changed the way facets are processed. [Daniel
  Lindsley]

  Facet data is no longer quietly duplicated just before it goes into the index. Instead, full fields are created (with all the standard data & methods) to contain the faceted information.

  This change is backward-compatible, but allows for better extension, not requiring data duplication into an unfaceted field and a little less magic.
- EmptyQuerySet.facet_counts() won't hit the backend. [Chris Adams]

  This avoids an unnecessary extra backend query displaying the default
  faceted search form.
- TextMate fail. [Daniel Lindsley]
- Changed ``__name__`` to an attribute on ``SearchView`` to work with
  decorators. Thanks to trybik for the report! [Daniel Lindsley]
- Changed some wording on the tutorial to indicate where the data
  template should go. Thanks for the suggestion Davepar! [Daniel
  Lindsley]
- Merge branch 'whoosh-1.1' [Daniel Lindsley]
- Final cleanup before merging Whoosh 1.1 branch! [Daniel Lindsley]
- Final Whoosh 1.1.1 fixes. Waiting for an official release of Whoosh &
  hand testing, then this ought to be merge-able. [Daniel Lindsley]
- Upgraded the Whoosh backend to 1.1. Still one remaining test failure
  and two errors. Waiting on mchaput's thoughts/patches. [Daniel
  Lindsley]
- Mistakenly committed this change. This bug is not fixed. [Daniel
  Lindsley]
- Better handling of attempts at loading backends when the various
  supporting libraries aren't installed. Thanks to traviscline for the
  report. [Daniel Lindsley]
- Fixed random test failures from not running the Solr tests in awhile.
  [Daniel Lindsley]
- Changed mlt test to use a set comparison to eliminate failures due to
  ordering differences. [Travis Cline]
- Sped up Solr backend tests by moving away from RealTimeSearchIndex
  since it was adding objects to Solr when loading fixtures. [Travis
  Cline]
- Automatically add ``suggestion`` to the context if
  ``HAYSTACK_INCLUDE_SPELLING`` is set. Thanks to notanumber for the
  suggestion! [Daniel Lindsley]
- Added apollo13 to AUTHORS for the ``SearchForm.__init__`` cleanup.
  [Daniel Lindsley]
- Use kwargs.pop instead of try/except. [Florian Apolloner]
- Added Rob to AUTHORS for the admin cleanup. [Daniel Lindsley]
- Fixed selection_note text by adding missing zero. [Rob Hudson]
- Fixed full_result_count in admin search results. [Rob Hudson]
- Fixed admin actions in admin search results. [Rob Hudson]
- Added DevCheatSheet to "Who Uses". [Daniel Lindsley]
- Added Christchurch Art Gallery to "Who Uses". [Daniel Lindsley]
- Forgot to include ghostrocket as submitting a patch on the previous
  commit. [Daniel Lindsley]
- Fixed a serious bug in the ``simple`` backend that would flip the
  object instance and class. [Daniel Lindsley]
- Updated Whoosh to 0.3.18. [Daniel Lindsley]
- Updated NASA's use of Haystack in "Who Uses". [Daniel Lindsley]
- Changed how ``ModelSearchIndex`` introspects to accurately use
  ``IntegerField`` instead of ``FloatField`` as it was using. [Daniel
  Lindsley]
- Added CongresoVisible to Who Uses. [Daniel Lindsley]
- Added a test to verify a previous change to the ``simple`` backend.
  [Daniel Lindsley]
- Fixed the new admin bits to not explode on Django 1.1. [Daniel
  Lindsley]
- Added ``SearchModelAdmin``, which enables Haystack-based search within
  the admin. [Daniel Lindsley]
- Fixed a bug when not specifying a ``limit`` when using the
  ``more_like_this`` template tag. Thanks to symroe for the original
  patch. [Daniel Lindsley]
- Fixed the error messages that occur when looking up attributes on a
  model. Thanks to acdha for the patch. [Daniel Lindsley]
- Added pagination to the example search template in the docs so it's
  clear that it is supported. [Daniel Lindsley]
- Fixed copy-paste foul in ``Installing Search Engines`` docs. [Daniel
  Lindsley]
- Fixed the ``simple`` backend to return ``SearchResult`` instances, not
  just bare model instances. Thanks to Agos for the report. [Daniel
  Lindsley]
- Fixed the ``clear_index`` management command to respect
  ``--verbosity``. Thanks to kylemacfarlane for the report. [Daniel
  Lindsley]
- Altered the ``simple`` backend to only search textual fields. This
  makes the backend work consistently across all databases and is likely
  the desired behavior anyhow. Thanks to kylemacfarlane for the report.
  [Daniel Lindsley]
- Fixed a bug in the ``Highlighter`` which would double-highlight HTML
  tags. Thanks to EmilStenstrom for the original patch. [Daniel
  Lindsley]
- Updated management command docs to mention all options that are
  accepted. [Daniel Lindsley]
- Altered the Whoosh backend to correctly clear the index when using the
  ``RAMStorage`` backend. Thanks to kylemacfarlane for the initial
  patch. [Daniel Lindsley]
- Changed ``SearchView`` to allow more control over how many results are
  shown per page. Thanks to simonw for the suggestion. [Daniel Lindsley]
- Ignore ``.pyo`` files when listing out the backend options. Thanks to
  kylemacfarlane for the report. [Daniel Lindsley]
- Added CustomMade to Who Uses. [Daniel Lindsley]
- Moved a backend import to allow changing the backend Haystack uses on
  the fly. [Daniel Lindsley]

  Useful for testing.
- Added more debugging information to the docs. [Daniel Lindsley]
- Added DeliverGood.org to the "Who Uses" docs. [Daniel Lindsley]
- Added an settings override on ``HAYSTACK_LIMIT_TO_REGISTERED_MODELS``
  as a possible performance optimization. [Daniel Lindsley]
- Added the ability to pickle ``SearchResult`` objects. Thanks to dedsm
  for the original patch. [Daniel Lindsley]
- Added docs and fixed tests on the backend loading portions. Thanks to
  kylemacfarlane for the report. [Daniel Lindsley]
- Fixed bug with ``build_solr_schema`` where ``stored=False`` would be
  ignored. Thanks to johnthedebs for the report. [Daniel Lindsley]
- Added debugging notes for Solr. Thanks to smccully for reporting this.
  [Daniel Lindsley]
- Fixed several errors in the ``simple`` backend. Thanks to notanumber
  for the original patch. [Daniel Lindsley]
- Documentation fixes for Xapian. Thanks to notanumber for the edits!
  [Daniel Lindsley]
- Fixed a typo in the tutorial. Thanks to cmbeelby for pointing this
  out. [Daniel Lindsley]
- Fixed an error in the tutorial. Thanks to bencc for pointing this out.
  [Daniel Lindsley]
- Added a warning to the docs that ``SearchQuerySet.raw_search`` does
  not chain. Thanks to jacobstr for the report. [Daniel Lindsley]
- Fixed an error in the documentation on providing fields for faceting.
  Thanks to ghostmob for the report. [Daniel Lindsley]
- Fixed a bug where a field that's both nullable & faceted would error
  if no data was provided. Thanks to LarryEitel for the report. [Daniel
  Lindsley]
- Fixed a regression where the built-in Haystack fields would no longer
  facet correctly. Thanks to traviscline for the report. [Daniel
  Lindsley]
- Fixed last code snippet on the ``SearchIndex.prepare_FOO`` docs.
  Thanks to sk1p for pointing that out. [Daniel Lindsley]
- Fixed a bug where the schema could be built improperly if similar
  fieldnames had different options. [Daniel Lindsley]
- Added to existing tests to ensure that multiple faceted fields are
  included in the index. [Daniel Lindsley]
- Finally added a README. [Daniel Lindsley]
- Added a note about versions of the docs. [Daniel Lindsley]
- Go back to the default Sphinx theme. The custom Haystack theme is too
  much work and too little benefit. [Daniel Lindsley]
- Added a note in the tutorial about building the schema when using
  Solr. Thanks to trey0 for the report! [Daniel Lindsley]
- Fixed a bug where using ``SearchQuerySet.models()`` on an unregistered
  model would be silently ignored. [Daniel Lindsley]

  It is still silently ignored, but now emits a warning informing the user of why they may receive more results back than they expect.
- Added notes about the ``simple`` backend in the docs. Thanks to
  notanumber for catching the omission. [Daniel Lindsley]
- Removed erroneous old docs about Lucene support, which never landed.
  [Daniel Lindsley]
- Merge branch 'master' of github.com:toastdriven/django-haystack.
  [Daniel Lindsley]
- Fixed typo in the tutorial. Thanks fxdgear for pointing that out!
  [Daniel Lindsley]
- Fixed a bug related to Unicode data in conjunction with the ``dummy``
  backend. Thanks to kylemacfarlane for the report! [Daniel Lindsley]
- Added Forkinit to Who Uses. [Daniel Lindsley]
- Added Rampframe to Who Uses. [Daniel Lindsley]
- Added other apps documentation for Haystack-related apps. [Daniel
  Lindsley]
- Unified the way ``DEFAULT_OPERATOR`` is setup. [Daniel Lindsley]
- You can now override ``ITERATOR_LOAD_PER_QUERY`` with a setting if
  you're consuming big chunks of a ``SearchQuerySet``. Thanks to
  kylemacfarlane for the report. [Daniel Lindsley]
- Moved the preparation of faceting data to a
  ``SearchIndex.full_prepare()`` method for easier overriding. Thanks to
  xav for the suggestion! [Daniel Lindsley]
- The ``more_like_this`` tag now silently fails if things go south.
  Thanks to piquadrat for the patch! [Daniel Lindsley]
- Added a fleshed out ``simple_backend`` for basic usage + testing.
  [David Sauve]
- ``SearchView.build_form()`` now accepts a dict to pass along to the
  form. Thanks to traviscline for the patch! [Daniel Lindsley]
- Fixed the ``setup.py`` to include ``haystack.utils`` and added to the
  ``MANIFEST.in``. Thanks to jezdez for the patch! [Daniel Lindsley]
- Fixed date faceting in Solr. [Daniel Lindsley]

  No more OOMs and very fast over large data sets.
- Added the ``search_view_factory`` function for thread-safe use of
  ``SearchView``. [Daniel Lindsley]
- Added more to th
Download .txt
gitextract_qq3rhc1s/

├── .editorconfig
├── .gitchangelog.rc
├── .github/
│   ├── issue_template.md
│   ├── pull_request_template.md
│   └── workflows/
│       ├── black+isort.yml
│       ├── codeql-analysis.yml
│       ├── docs.yml
│       ├── flake8.yml
│       └── test.yml
├── .gitignore
├── AUTHORS
├── CONTRIBUTING.md
├── LICENSE
├── MANIFEST.in
├── README.rst
├── docs/
│   ├── Makefile
│   ├── _static/
│   │   └── .gitignore
│   ├── _templates/
│   │   └── .gitignore
│   ├── admin.rst
│   ├── architecture_overview.rst
│   ├── autocomplete.rst
│   ├── backend_support.rst
│   ├── best_practices.rst
│   ├── boost.rst
│   ├── changelog.rst
│   ├── conf.py
│   ├── contributing.rst
│   ├── creating_new_backends.rst
│   ├── debugging.rst
│   ├── faceting.rst
│   ├── faq.rst
│   ├── glossary.rst
│   ├── haystack_theme/
│   │   ├── layout.html
│   │   ├── static/
│   │   │   └── documentation.css
│   │   └── theme.conf
│   ├── highlighting.rst
│   ├── index.rst
│   ├── inputtypes.rst
│   ├── installing_search_engines.rst
│   ├── management_commands.rst
│   ├── migration_from_1_to_2.rst
│   ├── multiple_index.rst
│   ├── other_apps.rst
│   ├── python3.rst
│   ├── rich_content_extraction.rst
│   ├── running_tests.rst
│   ├── searchbackend_api.rst
│   ├── searchfield_api.rst
│   ├── searchindex_api.rst
│   ├── searchquery_api.rst
│   ├── searchqueryset_api.rst
│   ├── searchresult_api.rst
│   ├── settings.rst
│   ├── signal_processors.rst
│   ├── spatial.rst
│   ├── templatetags.rst
│   ├── toc.rst
│   ├── tutorial.rst
│   ├── utils.rst
│   ├── views_and_forms.rst
│   └── who_uses.rst
├── example_project/
│   ├── __init__.py
│   ├── bare_bones_app/
│   │   ├── __init__.py
│   │   ├── models.py
│   │   └── search_indexes.py
│   ├── regular_app/
│   │   ├── __init__.py
│   │   ├── models.py
│   │   └── search_indexes.py
│   ├── settings.py
│   └── templates/
│       └── search/
│           └── indexes/
│               ├── bare_bones_app/
│               │   └── cat_text.txt
│               └── regular_app/
│                   └── dog_text.txt
├── haystack/
│   ├── __init__.py
│   ├── admin.py
│   ├── apps.py
│   ├── backends/
│   │   ├── __init__.py
│   │   ├── elasticsearch2_backend.py
│   │   ├── elasticsearch5_backend.py
│   │   ├── elasticsearch_backend.py
│   │   ├── simple_backend.py
│   │   ├── solr_backend.py
│   │   └── whoosh_backend.py
│   ├── constants.py
│   ├── exceptions.py
│   ├── fields.py
│   ├── forms.py
│   ├── generic_views.py
│   ├── indexes.py
│   ├── inputs.py
│   ├── management/
│   │   ├── __init__.py
│   │   └── commands/
│   │       ├── __init__.py
│   │       ├── build_solr_schema.py
│   │       ├── clear_index.py
│   │       ├── haystack_info.py
│   │       ├── rebuild_index.py
│   │       └── update_index.py
│   ├── manager.py
│   ├── models.py
│   ├── panels.py
│   ├── query.py
│   ├── routers.py
│   ├── signals.py
│   ├── templates/
│   │   ├── panels/
│   │   │   └── haystack.html
│   │   └── search_configuration/
│   │       ├── schema.xml
│   │       └── solrconfig.xml
│   ├── templatetags/
│   │   ├── __init__.py
│   │   ├── highlight.py
│   │   └── more_like_this.py
│   ├── urls.py
│   ├── utils/
│   │   ├── __init__.py
│   │   ├── app_loading.py
│   │   ├── geo.py
│   │   ├── highlighting.py
│   │   ├── loading.py
│   │   └── log.py
│   └── views.py
├── pyproject.toml
├── setup.cfg
├── setup.py
├── test_haystack/
│   ├── __init__.py
│   ├── core/
│   │   ├── __init__.py
│   │   ├── admin.py
│   │   ├── custom_identifier.py
│   │   ├── fixtures/
│   │   │   ├── base_data.json
│   │   │   └── bulk_data.json
│   │   ├── models.py
│   │   ├── templates/
│   │   │   ├── 404.html
│   │   │   ├── base.html
│   │   │   ├── search/
│   │   │   │   ├── indexes/
│   │   │   │   │   ├── bar.txt
│   │   │   │   │   ├── core/
│   │   │   │   │   │   ├── mockmodel_content.txt
│   │   │   │   │   │   ├── mockmodel_extra.txt
│   │   │   │   │   │   ├── mockmodel_template.txt
│   │   │   │   │   │   └── mockmodel_text.txt
│   │   │   │   │   └── foo.txt
│   │   │   │   └── search.html
│   │   │   └── test_suggestion.html
│   │   └── urls.py
│   ├── discovery/
│   │   ├── __init__.py
│   │   ├── models.py
│   │   ├── search_indexes.py
│   │   └── templates/
│   │       └── search/
│   │           └── indexes/
│   │               └── bar_text.txt
│   ├── elasticsearch2_tests/
│   │   ├── __init__.py
│   │   ├── test_backend.py
│   │   ├── test_inputs.py
│   │   └── test_query.py
│   ├── elasticsearch5_tests/
│   │   ├── __init__.py
│   │   ├── test_backend.py
│   │   ├── test_inputs.py
│   │   └── test_query.py
│   ├── elasticsearch_tests/
│   │   ├── __init__.py
│   │   ├── test_elasticsearch_backend.py
│   │   ├── test_elasticsearch_query.py
│   │   └── test_inputs.py
│   ├── mocks.py
│   ├── multipleindex/
│   │   ├── __init__.py
│   │   ├── models.py
│   │   ├── routers.py
│   │   ├── search_indexes.py
│   │   └── tests.py
│   ├── results_per_page_urls.py
│   ├── run_tests.py
│   ├── settings.py
│   ├── simple_tests/
│   │   ├── __init__.py
│   │   ├── search_indexes.py
│   │   ├── test_simple_backend.py
│   │   └── test_simple_query.py
│   ├── solr_tests/
│   │   ├── __init__.py
│   │   ├── server/
│   │   │   ├── .gitignore
│   │   │   ├── confdir/
│   │   │   │   ├── schema.xml
│   │   │   │   └── solrconfig.xml
│   │   │   ├── get-solr-download-url.py
│   │   │   ├── start-solr-test-server.sh
│   │   │   └── wait-for-solr
│   │   ├── test_admin.py
│   │   ├── test_inputs.py
│   │   ├── test_solr_backend.py
│   │   ├── test_solr_management_commands.py
│   │   ├── test_solr_query.py
│   │   └── test_templatetags.py
│   ├── spatial/
│   │   ├── __init__.py
│   │   ├── fixtures/
│   │   │   └── sample_spatial_data.json
│   │   ├── models.py
│   │   ├── search_indexes.py
│   │   └── test_spatial.py
│   ├── test_altered_internal_names.py
│   ├── test_app_loading.py
│   ├── test_app_using_appconfig/
│   │   ├── __init__.py
│   │   ├── apps.py
│   │   ├── migrations/
│   │   │   ├── 0001_initial.py
│   │   │   └── __init__.py
│   │   ├── models.py
│   │   ├── search_indexes.py
│   │   └── tests.py
│   ├── test_app_with_hierarchy/
│   │   ├── __init__.py
│   │   └── contrib/
│   │       ├── __init__.py
│   │       └── django/
│   │           ├── __init__.py
│   │           └── hierarchal_app_django/
│   │               ├── __init__.py
│   │               └── models.py
│   ├── test_app_without_models/
│   │   ├── __init__.py
│   │   ├── urls.py
│   │   └── views.py
│   ├── test_backends.py
│   ├── test_discovery.py
│   ├── test_fields.py
│   ├── test_forms.py
│   ├── test_generic_views.py
│   ├── test_indexes.py
│   ├── test_inputs.py
│   ├── test_loading.py
│   ├── test_management_commands.py
│   ├── test_managers.py
│   ├── test_models.py
│   ├── test_query.py
│   ├── test_templatetags.py
│   ├── test_utils.py
│   ├── test_views.py
│   ├── utils.py
│   └── whoosh_tests/
│       ├── __init__.py
│       ├── test_forms.py
│       ├── test_inputs.py
│       ├── test_whoosh_backend.py
│       ├── test_whoosh_query.py
│       └── testcases.py
└── tox.ini
Download .txt
SYMBOL INDEX (2095 symbols across 111 files)

FILE: example_project/bare_bones_app/models.py
  class Cat (line 6) | class Cat(models.Model):
    method __str__ (line 13) | def __str__(self):
    method get_absolute_url (line 17) | def get_absolute_url(self):

FILE: example_project/bare_bones_app/search_indexes.py
  class CatIndex (line 10) | class CatIndex(indexes.BasicSearchIndex, indexes.Indexable):
    method get_model (line 11) | def get_model(self):

FILE: example_project/regular_app/models.py
  class Dog (line 14) | class Dog(models.Model):
    method __str__ (line 24) | def __str__(self):
    method get_absolute_url (line 28) | def get_absolute_url(self):
    method full_name (line 31) | def full_name(self):
  class Toy (line 38) | class Toy(models.Model):
    method __str__ (line 42) | def __str__(self):

FILE: example_project/regular_app/search_indexes.py
  class DogIndex (line 9) | class DogIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 20) | def get_model(self):
    method index_queryset (line 23) | def index_queryset(self, using=None):
    method prepare_toys (line 26) | def prepare_toys(self, obj):

FILE: haystack/__init__.py
  function reset_search_queries (line 67) | def reset_search_queries(**kwargs):

FILE: haystack/admin.py
  class SearchChangeList (line 15) | class SearchChangeList(ChangeList):
    method __init__ (line 16) | def __init__(self, **kwargs):
    method get_results (line 20) | def get_results(self, request):
  class SearchModelAdminMixin (line 59) | class SearchModelAdminMixin(object):
    method changelist_view (line 64) | def changelist_view(self, request, extra_context=None):
  class SearchModelAdmin (line 162) | class SearchModelAdmin(SearchModelAdminMixin, ModelAdmin):

FILE: haystack/apps.py
  class HaystackConfig (line 10) | class HaystackConfig(AppConfig):
    method ready (line 15) | def ready(self):

FILE: haystack/backends/__init__.py
  function log_query (line 22) | def log_query(func):
  class EmptyResults (line 53) | class EmptyResults(object):
    method __len__ (line 57) | def __len__(self):
    method __getitem__ (line 60) | def __getitem__(self, k):
  class BaseSearchBackend (line 67) | class BaseSearchBackend(object):
    method __init__ (line 76) | def __init__(self, connection_alias, **connection_options):
    method update (line 84) | def update(self, index, iterable, commit=True):
    method remove (line 94) | def remove(self, obj_or_string):
    method clear (line 105) | def clear(self, models=None, commit=True):
    method search (line 115) | def search(self, query_string, **kwargs):
    method build_search_kwargs (line 131) | def build_search_kwargs(
    method prep_value (line 156) | def prep_value(self, value):
    method more_like_this (line 163) | def more_like_this(
    method extract_file_contents (line 176) | def extract_file_contents(self, file_obj):
    method build_schema (line 195) | def build_schema(self, fields):
    method build_models_list (line 206) | def build_models_list(self):
  class SearchNode (line 231) | class SearchNode(tree.Node):
    method __init__ (line 252) | def __init__(self, children=None, connector=None, negated=False):
    method _new_instance (line 268) | def _new_instance(cls, children=None, connector=None, negated=False):
    method __str__ (line 283) | def __str__(self):
    method __deepcopy__ (line 291) | def __deepcopy__(self, memodict):
    method __len__ (line 301) | def __len__(self):
    method __bool__ (line 307) | def __bool__(self):
    method __contains__ (line 313) | def __contains__(self, other):
    method add (line 319) | def add(self, node, conn_type):
    method negate (line 342) | def negate(self):
    method start_subtree (line 357) | def start_subtree(self, conn_type):
    method end_subtree (line 379) | def end_subtree(self):
    method __repr__ (line 395) | def __repr__(self):
    method _repr_query_fragment_callback (line 401) | def _repr_query_fragment_callback(self, field, filter_type, value):
    method as_query_string (line 404) | def as_query_string(self, query_fragment_callback):
    method split_expression (line 430) | def split_expression(self, expression):
  class SQ (line 442) | class SQ(Q, SearchNode):
  class BaseSearchQuery (line 454) | class BaseSearchQuery(object):
    method __init__ (line 473) | def __init__(self, using=DEFAULT_ALIAS):
    method __str__ (line 512) | def __str__(self):
    method __getstate__ (line 515) | def __getstate__(self):
    method __setstate__ (line 521) | def __setstate__(self, obj_dict):
    method has_run (line 528) | def has_run(self):
    method build_params (line 532) | def build_params(self, spelling_query=None):
    method run (line 585) | def run(self, spelling_query=None, **kwargs):
    method run_mlt (line 599) | def run_mlt(self, **kwargs):
    method run_raw (line 624) | def run_raw(self, **kwargs):
    method get_count (line 638) | def get_count(self):
    method get_results (line 662) | def get_results(self, **kwargs):
    method get_facet_counts (line 681) | def get_facet_counts(self):
    method get_stats (line 693) | def get_stats(self):
    method set_spelling_query (line 704) | def set_spelling_query(self, spelling_query):
    method get_spelling_suggestion (line 707) | def get_spelling_suggestion(self, preferred_query=None):
    method boost_fragment (line 719) | def boost_fragment(self, boost_word, boost_value):
    method matching_all_fragment (line 723) | def matching_all_fragment(self):
    method build_query (line 727) | def build_query(self):
    method combine (line 748) | def combine(self, rhs, connector=SQ.AND):
    method build_query_fragment (line 756) | def build_query_fragment(self, field, filter_type, value):
    method clean (line 768) | def clean(self, query_fragment):
    method build_not_query (line 792) | def build_not_query(self, query_string):
    method build_exact_query (line 798) | def build_exact_query(self, query_string):
    method add_filter (line 801) | def add_filter(self, query_filter, use_or=False):
    method add_order_by (line 837) | def add_order_by(self, field):
    method clear_order_by (line 841) | def clear_order_by(self):
    method add_model (line 848) | def add_model(self, model):
    method set_limits (line 862) | def set_limits(self, low=None, high=None):
    method clear_limits (line 870) | def clear_limits(self):
    method add_boost (line 874) | def add_boost(self, term, boost_value):
    method raw_search (line 878) | def raw_search(self, query_string, **kwargs):
    method more_like_this (line 891) | def more_like_this(self, model_instance):
    method add_stats_query (line 899) | def add_stats_query(self, stats_field, stats_facets):
    method add_highlight (line 903) | def add_highlight(self, **kwargs):
    method add_within (line 907) | def add_within(self, field, point_1, point_2):
    method add_dwithin (line 917) | def add_dwithin(self, field, point, distance):
    method add_distance (line 927) | def add_distance(self, field, point):
    method add_field_facet (line 936) | def add_field_facet(self, field, **options):
    method add_date_facet (line 945) | def add_date_facet(self, field, start_date, end_date, gap_by, gap_amou...
    method add_query_facet (line 965) | def add_query_facet(self, field, query):
    method add_narrow_query (line 976) | def add_narrow_query(self, query):
    method set_result_class (line 984) | def set_result_class(self, klass):
    method post_process_facets (line 996) | def post_process_facets(self, results):
    method using (line 1019) | def using(self, using=None):
    method _reset (line 1028) | def _reset(self):
    method _clone (line 1038) | def _clone(self, klass=None, using=None):
  class BaseEngine (line 1075) | class BaseEngine(object):
    method __init__ (line 1080) | def __init__(self, using=None):
    method get_backend (line 1090) | def get_backend(self):
    method reset_sessions (line 1095) | def reset_sessions(self):
    method get_query (line 1099) | def get_query(self):
    method reset_queries (line 1102) | def reset_queries(self):
    method get_unified_index (line 1105) | def get_unified_index(self):

FILE: haystack/backends/elasticsearch2_backend.py
  class Elasticsearch2SearchBackend (line 34) | class Elasticsearch2SearchBackend(ElasticsearchSearchBackend):
    method __init__ (line 35) | def __init__(self, connection_alias, **connection_options):
    method clear (line 39) | def clear(self, models=None, commit=True):
    method build_search_kwargs (line 98) | def build_search_kwargs(
    method more_like_this (line 233) | def more_like_this(
    method _process_results (line 338) | def _process_results(
  class Elasticsearch2SearchQuery (line 384) | class Elasticsearch2SearchQuery(ElasticsearchSearchQuery):
  class Elasticsearch2SearchEngine (line 388) | class Elasticsearch2SearchEngine(BaseEngine):

FILE: haystack/backends/elasticsearch5_backend.py
  class Elasticsearch5SearchBackend (line 30) | class Elasticsearch5SearchBackend(ElasticsearchSearchBackend):
    method __init__ (line 31) | def __init__(self, connection_alias, **connection_options):
    method clear (line 35) | def clear(self, models=None, commit=True):
    method build_search_kwargs (line 94) | def build_search_kwargs(
    method _build_search_query_dwithin (line 300) | def _build_search_query_dwithin(self, dwithin):
    method _build_search_query_within (line 310) | def _build_search_query_within(self, within):
    method more_like_this (line 325) | def more_like_this(
    method _process_results (line 428) | def _process_results(
  class Elasticsearch5SearchQuery (line 474) | class Elasticsearch5SearchQuery(ElasticsearchSearchQuery):
    method add_field_facet (line 475) | def add_field_facet(self, field, **options):
  class Elasticsearch5SearchEngine (line 481) | class Elasticsearch5SearchEngine(BaseEngine):

FILE: haystack/backends/elasticsearch_backend.py
  class ElasticsearchSearchBackend (line 53) | class ElasticsearchSearchBackend(BaseSearchBackend):
    method __init__ (line 122) | def __init__(self, connection_alias, **connection_options):
    method setup (line 147) | def setup(self):
    method update (line 184) | def update(self, index, iterable, commit=True):
    method remove (line 230) | def remove(self, obj_or_string, commit=True):
    method clear (line 266) | def clear(self, models=None, commit=True):
    method build_search_kwargs (line 310) | def build_search_kwargs(
    method search (line 538) | def search(self, query_string, **kwargs):
    method more_like_this (line 587) | def more_like_this(
    method _process_results (line 645) | def _process_results(
    method build_schema (line 763) | def build_schema(self, fields):
    method _iso_datetime (line 798) | def _iso_datetime(self, value):
    method _from_python (line 810) | def _from_python(self, value):
    method _to_python (line 822) | def _to_python(self, value):
  class ElasticsearchSearchQuery (line 882) | class ElasticsearchSearchQuery(BaseSearchQuery):
    method matching_all_fragment (line 883) | def matching_all_fragment(self):
    method build_query_fragment (line 886) | def build_query_fragment(self, field, filter_type, value):
    method build_alt_parser_query (line 997) | def build_alt_parser_query(self, parser_name, query_string="", **kwargs):
    method build_params (line 1011) | def build_params(self, spelling_query=None, **kwargs):
    method run (line 1071) | def run(self, spelling_query=None, **kwargs):
    method run_mlt (line 1085) | def run_mlt(self, **kwargs):
  class ElasticsearchSearchEngine (line 1109) | class ElasticsearchSearchEngine(BaseEngine):

FILE: haystack/backends/simple_backend.py
  class SimpleSearchBackend (line 22) | class SimpleSearchBackend(BaseSearchBackend):
    method update (line 23) | def update(self, indexer, iterable, commit=True):
    method remove (line 26) | def remove(self, obj, commit=True):
    method clear (line 29) | def clear(self, models=None, commit=True):
    method search (line 33) | def search(self, query_string, **kwargs):
    method prep_value (line 90) | def prep_value(self, db_field, value):
    method more_like_this (line 93) | def more_like_this(
  class SimpleSearchQuery (line 106) | class SimpleSearchQuery(BaseSearchQuery):
    method build_query (line 107) | def build_query(self):
    method _build_sub_query (line 113) | def _build_sub_query(self, search_node):
  class SimpleEngine (line 130) | class SimpleEngine(BaseEngine):

FILE: haystack/backends/solr_backend.py
  class SolrSearchBackend (line 30) | class SolrSearchBackend(BaseSearchBackend):
    method __init__ (line 58) | def __init__(self, connection_alias, **connection_options):
    method update (line 76) | def update(self, index, iterable, commit=True):
    method remove (line 106) | def remove(self, obj_or_string, commit=True):
    method clear (line 123) | def clear(self, models=None, commit=True):
    method search (line 157) | def search(self, query_string, **kwargs):
    method build_search_kwargs (line 181) | def build_search_kwargs(
    method more_like_this (line 385) | def more_like_this(
    method _process_results (line 462) | def _process_results(
    method extract_spelling_suggestions (line 587) | def extract_spelling_suggestions(self, raw_results):
    method build_schema (line 647) | def build_schema(self, fields):
    method extract_file_contents (line 706) | def extract_file_contents(self, file_obj, **kwargs):
  class SolrSearchQuery (line 743) | class SolrSearchQuery(BaseSearchQuery):
    method matching_all_fragment (line 744) | def matching_all_fragment(self):
    method build_query_fragment (line 747) | def build_query_fragment(self, field, filter_type, value):
    method build_alt_parser_query (line 852) | def build_alt_parser_query(self, parser_name, query_string="", **kwargs):
    method build_params (line 870) | def build_params(self, spelling_query=None, **kwargs):
    method run (line 932) | def run(self, spelling_query=None, **kwargs):
    method run_mlt (line 948) | def run_mlt(self, **kwargs):
  class SolrEngine (line 972) | class SolrEngine(BaseEngine):

FILE: haystack/backends/whoosh_backend.py
  class WhooshHtmlFormatter (line 65) | class WhooshHtmlFormatter(HtmlFormatter):
  class WhooshSearchBackend (line 75) | class WhooshSearchBackend(BaseSearchBackend):
    method __init__ (line 103) | def __init__(self, connection_alias, **connection_options):
    method setup (line 121) | def setup(self):
    method build_schema (line 166) | def build_schema(self, fields):
    method update (line 247) | def update(self, index, iterable, commit=True):
    method remove (line 288) | def remove(self, obj_or_string, commit=True):
    method clear (line 308) | def clear(self, models=None, commit=True):
    method delete_index (line 343) | def delete_index(self):
    method optimize (line 354) | def optimize(self):
    method calculate_page (line 361) | def calculate_page(self, start_offset=0, end_offset=None):
    method search (line 386) | def search(
    method more_like_this (line 576) | def more_like_this(
    method _process_results (line 681) | def _process_results(
    method create_spelling_suggestion (line 775) | def create_spelling_suggestion(self, query_string):
    method _from_python (line 804) | def _from_python(self, value):
    method _to_python (line 827) | def _to_python(self, value):
  class WhooshSearchQuery (line 874) | class WhooshSearchQuery(BaseSearchQuery):
    method _convert_datetime (line 875) | def _convert_datetime(self, date):
    method clean (line 881) | def clean(self, query_fragment):
    method build_query_fragment (line 906) | def build_query_fragment(self, field, filter_type, value):
  class WhooshEngine (line 1048) | class WhooshEngine(BaseEngine):

FILE: haystack/constants.py
  class Indexable (line 50) | class Indexable(object):

FILE: haystack/exceptions.py
  class HaystackError (line 1) | class HaystackError(Exception):
  class SearchBackendError (line 7) | class SearchBackendError(HaystackError):
  class SearchFieldError (line 13) | class SearchFieldError(HaystackError):
  class MissingDependency (line 19) | class MissingDependency(HaystackError):
  class NotHandled (line 25) | class NotHandled(HaystackError):
  class MoreLikeThisError (line 31) | class MoreLikeThisError(HaystackError):
  class FacetingError (line 37) | class FacetingError(HaystackError):
  class SpatialError (line 43) | class SpatialError(HaystackError):
  class StatsError (line 49) | class StatsError(HaystackError):
  class SkipDocument (line 54) | class SkipDocument(HaystackError):

FILE: haystack/fields.py
  class NOT_PROVIDED (line 12) | class NOT_PROVIDED:
  class SearchField (line 29) | class SearchField(object):
    method __init__ (line 34) | def __init__(
    method analyzer (line 77) | def analyzer(self):
    method set_instance_name (line 82) | def set_instance_name(self, instance_name):
    method has_default (line 88) | def has_default(self):
    method default (line 93) | def default(self):
    method prepare (line 100) | def prepare(self, obj):
    method resolve_attributes_lookup (line 124) | def resolve_attributes_lookup(self, current_objects, attributes):
    method split_model_attr_lookups (line 170) | def split_model_attr_lookups(self):
    method get_iterable_objects (line 175) | def get_iterable_objects(cls, current_objects):
    method prepare_template (line 194) | def prepare_template(self, obj):
    method convert (line 223) | def convert(self, value):
  class CharField (line 233) | class CharField(SearchField):
    method __init__ (line 236) | def __init__(self, analyzer=NOT_PROVIDED, **kwargs):
    method prepare (line 247) | def prepare(self, obj):
    method convert (line 250) | def convert(self, value):
  class LocationField (line 257) | class LocationField(SearchField):
    method prepare (line 260) | def prepare(self, obj):
    method convert (line 272) | def convert(self, value):
  class NgramField (line 299) | class NgramField(CharField):
    method __init__ (line 302) | def __init__(self, **kwargs):
  class EdgeNgramField (line 309) | class EdgeNgramField(NgramField):
  class IntegerField (line 313) | class IntegerField(SearchField):
    method __init__ (line 316) | def __init__(self, **kwargs):
    method prepare (line 322) | def prepare(self, obj):
    method convert (line 325) | def convert(self, value):
  class FloatField (line 332) | class FloatField(SearchField):
    method __init__ (line 335) | def __init__(self, **kwargs):
    method prepare (line 341) | def prepare(self, obj):
    method convert (line 344) | def convert(self, value):
  class DecimalField (line 351) | class DecimalField(SearchField):
    method __init__ (line 354) | def __init__(self, **kwargs):
    method prepare (line 360) | def prepare(self, obj):
    method convert (line 363) | def convert(self, value):
  class BooleanField (line 370) | class BooleanField(SearchField):
    method __init__ (line 373) | def __init__(self, **kwargs):
    method prepare (line 379) | def prepare(self, obj):
    method convert (line 382) | def convert(self, value):
  class DateField (line 389) | class DateField(SearchField):
    method __init__ (line 392) | def __init__(self, **kwargs):
    method prepare (line 398) | def prepare(self, obj):
    method convert (line 401) | def convert(self, value):
  class DateTimeField (line 422) | class DateTimeField(SearchField):
    method __init__ (line 425) | def __init__(self, **kwargs):
    method prepare (line 431) | def prepare(self, obj):
    method convert (line 434) | def convert(self, value):
  class MultiValueField (line 460) | class MultiValueField(SearchField):
    method __init__ (line 463) | def __init__(self, **kwargs):
    method prepare (line 476) | def prepare(self, obj):
    method convert (line 479) | def convert(self, value):
  class FacetField (line 489) | class FacetField(SearchField):
    method __init__ (line 500) | def __init__(self, **kwargs):
    method handle_facet_parameters (line 504) | def handle_facet_parameters(self, kwargs):
    method get_facet_for_name (line 541) | def get_facet_for_name(self):
  class FacetCharField (line 545) | class FacetCharField(FacetField, CharField):
  class FacetIntegerField (line 549) | class FacetIntegerField(FacetField, IntegerField):
  class FacetFloatField (line 553) | class FacetFloatField(FacetField, FloatField):
  class FacetDecimalField (line 557) | class FacetDecimalField(FacetField, DecimalField):
  class FacetBooleanField (line 561) | class FacetBooleanField(FacetField, BooleanField):
  class FacetDateField (line 565) | class FacetDateField(FacetField, DateField):
  class FacetDateTimeField (line 569) | class FacetDateTimeField(FacetField, DateTimeField):
  class FacetMultiValueField (line 573) | class FacetMultiValueField(FacetField, MultiValueField):

FILE: haystack/forms.py
  function model_choices (line 13) | def model_choices(using=DEFAULT_ALIAS):
  class SearchForm (line 21) | class SearchForm(forms.Form):
    method __init__ (line 28) | def __init__(self, *args, **kwargs):
    method no_query_found (line 37) | def no_query_found(self):
    method search (line 48) | def search(self):
    method get_suggestion (line 62) | def get_suggestion(self):
  class HighlightedSearchForm (line 69) | class HighlightedSearchForm(SearchForm):
    method search (line 70) | def search(self):
  class FacetedSearchForm (line 74) | class FacetedSearchForm(SearchForm):
    method __init__ (line 75) | def __init__(self, *args, **kwargs):
    method search (line 79) | def search(self):
  class ModelSearchForm (line 96) | class ModelSearchForm(SearchForm):
    method __init__ (line 97) | def __init__(self, *args, **kwargs):
    method get_models (line 106) | def get_models(self):
    method search (line 116) | def search(self):
  class HighlightedModelSearchForm (line 121) | class HighlightedModelSearchForm(ModelSearchForm):
    method search (line 122) | def search(self):
  class FacetedModelSearchForm (line 126) | class FacetedModelSearchForm(ModelSearchForm):
    method search (line 129) | def search(self):

FILE: haystack/generic_views.py
  class SearchMixin (line 13) | class SearchMixin(MultipleObjectMixin, FormMixin):
    method get_queryset (line 52) | def get_queryset(self):
    method get_form_kwargs (line 57) | def get_form_kwargs(self):
    method form_invalid (line 69) | def form_invalid(self, form):
    method form_valid (line 75) | def form_valid(self, form):
  class FacetedSearchMixin (line 87) | class FacetedSearchMixin(SearchMixin):
    method get_form_kwargs (line 96) | def get_form_kwargs(self):
    method get_context_data (line 101) | def get_context_data(self, **kwargs):
    method get_queryset (line 106) | def get_queryset(self):
  class SearchView (line 113) | class SearchView(SearchMixin, FormView):
    method get (line 116) | def get(self, request, *args, **kwargs):
  class FacetedSearchView (line 129) | class FacetedSearchView(FacetedSearchMixin, SearchView):

FILE: haystack/indexes.py
  class DeclarativeMetaclass (line 34) | class DeclarativeMetaclass(type):
    method __new__ (line 35) | def __new__(cls, name, bases, attrs):
  class SearchIndex (line 94) | class SearchIndex(threading.local, metaclass=DeclarativeMetaclass):
    method __init__ (line 117) | def __init__(self):
    method get_model (line 134) | def get_model(self):
    method index_queryset (line 145) | def index_queryset(self, using=None):
    method read_queryset (line 153) | def read_queryset(self, using=None):
    method build_queryset (line 162) | def build_queryset(self, using=None, start_date=None, end_date=None):
    method prepare (line 213) | def prepare(self, obj):
    method full_prepare (line 234) | def full_prepare(self, obj):
    method get_content_field (line 259) | def get_content_field(self):
    method get_field_weights (line 265) | def get_field_weights(self):
    method _get_backend (line 273) | def _get_backend(self, using):
    method get_backend (line 280) | def get_backend(self, using=None):
    method update (line 290) | def update(self, using=None):
    method update_object (line 304) | def update_object(self, instance, using=None, **kwargs):
    method remove_object (line 320) | def remove_object(self, instance, using=None, **kwargs):
    method clear (line 334) | def clear(self, using=None):
    method reindex (line 347) | def reindex(self, using=None):
    method get_updated_field (line 358) | def get_updated_field(self):
    method should_update (line 369) | def should_update(self, instance, **kwargs):
    method load_all_queryset (line 381) | def load_all_queryset(self):
  class BasicSearchIndex (line 394) | class BasicSearchIndex(SearchIndex):
  function index_field_from_django_field (line 402) | def index_field_from_django_field(f, default=CharField):
  class ModelSearchIndex (line 428) | class ModelSearchIndex(SearchIndex):
    method __init__ (line 447) | def __init__(self, extra_field_kwargs=None):
    method should_skip_field (line 479) | def should_skip_field(self, field):
    method get_model (line 494) | def get_model(self):
    method get_index_fieldname (line 497) | def get_index_fieldname(self, f):
    method get_fields (line 503) | def get_fields(self, fields=None, excludes=None):

FILE: haystack/inputs.py
  class BaseInput (line 7) | class BaseInput(object):
    method __init__ (line 15) | def __init__(self, query_string, **kwargs):
    method __repr__ (line 19) | def __repr__(self):
    method __str__ (line 22) | def __str__(self):
    method prepare (line 25) | def prepare(self, query_obj):
  class Raw (line 29) | class Raw(BaseInput):
  class PythonData (line 40) | class PythonData(BaseInput):
  class Clean (line 50) | class Clean(BaseInput):
    method prepare (line 57) | def prepare(self, query_obj):
  class Exact (line 62) | class Exact(BaseInput):
    method prepare (line 69) | def prepare(self, query_obj):
  class Not (line 82) | class Not(Clean):
    method prepare (line 89) | def prepare(self, query_obj):
  class AutoQuery (line 94) | class AutoQuery(BaseInput):
    method prepare (line 106) | def prepare(self, query_obj):
  class AltParser (line 136) | class AltParser(BaseInput):
    method __init__ (line 146) | def __init__(self, parser_name, query_string="", **kwargs):
    method __repr__ (line 151) | def __repr__(self):
    method prepare (line 159) | def prepare(self, query_obj):

FILE: haystack/management/commands/build_solr_schema.py
  class Command (line 13) | class Command(BaseCommand):
    method add_arguments (line 22) | def add_arguments(self, parser):
    method handle (line 52) | def handle(self, **options):
    method build_context (line 146) | def build_context(self, using):
    method build_template (line 166) | def build_template(self, using, template_filename=schema_template_loc):
    method print_stdout (line 171) | def print_stdout(self, schema_xml):
    method write_file (line 184) | def write_file(self, filename, schema_xml):

FILE: haystack/management/commands/clear_index.py
  class Command (line 6) | class Command(BaseCommand):
    method add_arguments (line 9) | def add_arguments(self, parser):
    method handle (line 33) | def handle(self, **options):

FILE: haystack/management/commands/haystack_info.py
  class Command (line 7) | class Command(BaseCommand):
    method handle (line 10) | def handle(self, **options):

FILE: haystack/management/commands/rebuild_index.py
  class Command (line 7) | class Command(BaseCommand):
    method add_arguments (line 10) | def add_arguments(self, parser):
    method handle (line 57) | def handle(self, **options):

FILE: haystack/management/commands/update_index.py
  function update_worker (line 24) | def update_worker(args):
  function do_update (line 72) | def do_update(
  class Command (line 160) | class Command(BaseCommand):
    method add_arguments (line 163) | def add_arguments(self, parser):
    method handle (line 242) | def handle(self, **options):
    method update_backend (line 302) | def update_backend(self, label, using):

FILE: haystack/manager.py
  class SearchIndexManager (line 4) | class SearchIndexManager(object):
    method __init__ (line 5) | def __init__(self, using=None):
    method get_search_queryset (line 9) | def get_search_queryset(self):
    method get_empty_query_set (line 15) | def get_empty_query_set(self):
    method all (line 18) | def all(self):  # noqa A003
    method none (line 21) | def none(self):
    method filter (line 24) | def filter(self, *args, **kwargs):  # noqa A003
    method exclude (line 27) | def exclude(self, *args, **kwargs):
    method filter_and (line 30) | def filter_and(self, *args, **kwargs):
    method filter_or (line 33) | def filter_or(self, *args, **kwargs):
    method order_by (line 36) | def order_by(self, *args):
    method highlight (line 39) | def highlight(self):
    method boost (line 42) | def boost(self, term, boost):
    method facet (line 45) | def facet(self, field):
    method within (line 48) | def within(self, field, point_1, point_2):
    method dwithin (line 51) | def dwithin(self, field, point, distance):
    method distance (line 54) | def distance(self, field, point):
    method date_facet (line 57) | def date_facet(self, field, start_date, end_date, gap_by, gap_amount=1):
    method query_facet (line 62) | def query_facet(self, field, query):
    method narrow (line 65) | def narrow(self, query):
    method raw_search (line 68) | def raw_search(self, query_string, **kwargs):
    method load_all (line 71) | def load_all(self):
    method auto_query (line 74) | def auto_query(self, query_string, fieldname="content"):
    method autocomplete (line 77) | def autocomplete(self, **kwargs):
    method using (line 80) | def using(self, connection_name):
    method count (line 83) | def count(self):
    method best_match (line 86) | def best_match(self):
    method latest (line 89) | def latest(self, date_field):
    method more_like_this (line 92) | def more_like_this(self, model_instance):
    method facet_counts (line 95) | def facet_counts(self):
    method spelling_suggestion (line 98) | def spelling_suggestion(self, preferred_query=None):
    method values (line 101) | def values(self, *fields):
    method values_list (line 104) | def values_list(self, *fields, **kwargs):

FILE: haystack/models.py
  class SearchResult (line 19) | class SearchResult:
    method __init__ (line 29) | def __init__(self, app_label, model_name, pk, score, **kwargs):
    method _get_log (line 47) | def _get_log(self):
    method __repr__ (line 50) | def __repr__(self):
    method __str__ (line 57) | def __str__(self):
    method __getattr__ (line 60) | def __getattr__(self, attr):
    method _get_searchindex (line 66) | def _get_searchindex(self):
    method _get_object (line 73) | def _get_object(self):
    method _set_object (line 98) | def _set_object(self, obj):
    method _get_model (line 103) | def _get_model(self):
    method _set_model (line 115) | def _set_model(self, obj):
    method _get_distance (line 120) | def _get_distance(self):
    method _set_distance (line 157) | def _set_distance(self, dist):
    method _get_verbose_name (line 162) | def _get_verbose_name(self):
    method _get_verbose_name_plural (line 171) | def _get_verbose_name_plural(self):
    method content_type (line 180) | def content_type(self):
    method get_additional_fields (line 188) | def get_additional_fields(self):
    method get_stored_fields (line 203) | def get_stored_fields(self):
    method __getstate__ (line 231) | def __getstate__(self):
    method __setstate__ (line 242) | def __setstate__(self, data_dict):
  function reload_indexes (line 250) | def reload_indexes(sender, *args, **kwargs):

FILE: haystack/panels.py
  class HaystackDebugPanel (line 8) | class HaystackDebugPanel(DebugPanel):
    method __init__ (line 17) | def __init__(self, *args, **kwargs):
    method nav_title (line 27) | def nav_title(self):
    method nav_subtitle (line 30) | def nav_subtitle(self):
    method title (line 51) | def title(self):
    method url (line 54) | def url(self):
    method content (line 57) | def content(self):

FILE: haystack/query.py
  class SearchQuerySet (line 13) | class SearchQuerySet(object):
    method __init__ (line 20) | def __init__(self, using=None, query=None):
    method _determine_backend (line 39) | def _determine_backend(self):
    method __getstate__ (line 60) | def __getstate__(self):
    method __setstate__ (line 70) | def __setstate__(self, data_dict):
    method __repr__ (line 77) | def __repr__(self):
    method __len__ (line 80) | def __len__(self):
    method __iter__ (line 91) | def __iter__(self):
    method __and__ (line 98) | def __and__(self, other):
    method __or__ (line 105) | def __or__(self, other):
    method _cache_is_full (line 112) | def _cache_is_full(self):
    method _manual_iter (line 126) | def _manual_iter(self):
    method post_process_results (line 155) | def post_process_results(self, results):
    method _load_model_objects (line 206) | def _load_model_objects(self, model, pks):
    method _fill_cache (line 217) | def _fill_cache(self, start, end, **kwargs):
    method __getitem__ (line 277) | def __getitem__(self, k):
    method all (line 321) | def all(self):  # noqa A003
    method none (line 325) | def none(self):
    method filter (line 329) | def filter(self, *args, **kwargs):  # noqa A003
    method exclude (line 336) | def exclude(self, *args, **kwargs):
    method filter_and (line 342) | def filter_and(self, *args, **kwargs):
    method filter_or (line 348) | def filter_or(self, *args, **kwargs):
    method order_by (line 354) | def order_by(self, *args):
    method highlight (line 363) | def highlight(self, **kwargs):
    method models (line 369) | def models(self, *models):
    method result_class (line 386) | def result_class(self, klass):
    method boost (line 397) | def boost(self, term, boost):
    method facet (line 403) | def facet(self, field, **options):
    method within (line 409) | def within(self, field, point_1, point_2):
    method dwithin (line 415) | def dwithin(self, field, point, distance):
    method stats (line 421) | def stats(self, field):
    method stats_facet (line 425) | def stats_facet(self, field, facet_fields=None):
    method distance (line 438) | def distance(self, field, point):
    method date_facet (line 447) | def date_facet(self, field, start_date, end_date, gap_by, gap_amount=1):
    method query_facet (line 455) | def query_facet(self, field, query):
    method narrow (line 461) | def narrow(self, query):
    method raw_search (line 474) | def raw_search(self, query_string, **kwargs):
    method load_all (line 478) | def load_all(self):
    method auto_query (line 484) | def auto_query(self, query_string, fieldname="content"):
    method autocomplete (line 494) | def autocomplete(self, **kwargs):
    method using (line 513) | def using(self, connection_name):
    method count (line 525) | def count(self):
    method best_match (line 529) | def best_match(self):
    method latest (line 533) | def latest(self, date_field):
    method more_like_this (line 540) | def more_like_this(self, model_instance):
    method facet_counts (line 546) | def facet_counts(self):
    method stats_results (line 559) | def stats_results(self):
    method set_spelling_query (line 569) | def set_spelling_query(self, spelling_query):
    method spelling_suggestion (line 581) | def spelling_suggestion(self, preferred_query=None):
    method values (line 597) | def values(self, *fields):
    method values_list (line 606) | def values_list(self, *fields, **kwargs):
    method _clone (line 629) | def _clone(self, klass=None):
  class EmptySearchQuerySet (line 639) | class EmptySearchQuerySet(SearchQuerySet):
    method __len__ (line 645) | def __len__(self):
    method _cache_is_full (line 648) | def _cache_is_full(self):
    method _clone (line 652) | def _clone(self, klass=None):
    method _fill_cache (line 657) | def _fill_cache(self, start, end):
    method facet_counts (line 660) | def facet_counts(self):
  class ValuesListSearchQuerySet (line 664) | class ValuesListSearchQuerySet(SearchQuerySet):
    method __init__ (line 670) | def __init__(self, *args, **kwargs):
    method _clone (line 680) | def _clone(self, klass=None):
    method _fill_cache (line 686) | def _fill_cache(self, start, end):
    method post_process_results (line 692) | def post_process_results(self, results):
  class ValuesSearchQuerySet (line 706) | class ValuesSearchQuerySet(ValuesListSearchQuerySet):
    method _fill_cache (line 713) | def _fill_cache(self, start, end):
    method post_process_results (line 719) | def post_process_results(self, results):
  class RelatedSearchQuerySet (line 728) | class RelatedSearchQuerySet(SearchQuerySet):
    method __init__ (line 733) | def __init__(self, *args, **kwargs):
    method _load_model_objects (line 738) | def _load_model_objects(self, model, pks):
    method load_all_queryset (line 756) | def load_all_queryset(self, model, queryset):
    method _clone (line 768) | def _clone(self, klass=None):

FILE: haystack/routers.py
  class BaseRouter (line 4) | class BaseRouter(object):
  class DefaultRouter (line 9) | class DefaultRouter(BaseRouter):
    method for_read (line 10) | def for_read(self, **hints):
    method for_write (line 13) | def for_write(self, **hints):

FILE: haystack/signals.py
  class BaseSignalProcessor (line 6) | class BaseSignalProcessor(object):
    method __init__ (line 14) | def __init__(self, connections, connection_router):
    method setup (line 19) | def setup(self):
    method teardown (line 29) | def teardown(self):
    method handle_save (line 39) | def handle_save(self, sender, instance, **kwargs):
    method handle_delete (line 54) | def handle_delete(self, sender, instance, **kwargs):
  class RealtimeSignalProcessor (line 70) | class RealtimeSignalProcessor(BaseSignalProcessor):
    method setup (line 76) | def setup(self):
    method teardown (line 83) | def teardown(self):

FILE: haystack/templatetags/highlight.py
  class HighlightNode (line 10) | class HighlightNode(template.Node):
    method __init__ (line 11) | def __init__(
    method render (line 29) | def render(self, context):
  function highlight (line 73) | def highlight(parser, token):

FILE: haystack/templatetags/more_like_this.py
  class MoreLikeThisNode (line 11) | class MoreLikeThisNode(template.Node):
    method __init__ (line 12) | def __init__(self, model, varname, for_types=None, limit=None):
    method render (line 21) | def render(self, context):
  function more_like_this (line 54) | def more_like_this(parser, token):

FILE: haystack/utils/__init__.py
  function default_get_identifier (line 11) | def default_get_identifier(obj_or_string):
  function _lookup_identifier_method (line 29) | def _lookup_identifier_method():
  function get_model_ct_tuple (line 65) | def get_model_ct_tuple(model):
  function get_model_ct (line 75) | def get_model_ct(model):
  function get_facet_field_name (line 79) | def get_facet_field_name(fieldname):

FILE: haystack/utils/app_loading.py
  function haystack_get_app_modules (line 10) | def haystack_get_app_modules():
  function haystack_load_apps (line 15) | def haystack_load_apps():
  function haystack_get_models (line 20) | def haystack_get_models(label):
  function haystack_get_model (line 33) | def haystack_get_model(app_label, model_name):

FILE: haystack/utils/geo.py
  function ensure_geometry (line 5) | def ensure_geometry(geom):
  function ensure_point (line 15) | def ensure_point(geom):
  function ensure_wgs84 (line 27) | def ensure_wgs84(point):
  function ensure_distance (line 47) | def ensure_distance(dist):
  function generate_bounding_box (line 61) | def generate_bounding_box(bottom_left, top_right):

FILE: haystack/utils/highlighting.py
  class Highlighter (line 4) | class Highlighter(object):
    method __init__ (line 10) | def __init__(self, query, **kwargs):
    method highlight (line 26) | def highlight(self, text_block):
    method find_highlightable_words (line 32) | def find_highlightable_words(self):
    method find_window (line 59) | def find_window(self, highlight_locations):
    method render_html (line 111) | def render_html(self, highlight_locations=None, start_offset=None, end...

FILE: haystack/utils/loading.py
  function import_class (line 17) | def import_class(path):
  function load_backend (line 33) | def load_backend(full_backend_path):
  function load_router (line 63) | def load_router(full_router_path):
  class ConnectionHandler (line 90) | class ConnectionHandler(object):
    method __init__ (line 91) | def __init__(self, connections_info):
    method ensure_defaults (line 96) | def ensure_defaults(self, alias):
    method __getitem__ (line 107) | def __getitem__(self, key):
    method reload (line 119) | def reload(self, key):
    method all (line 129) | def all(self):  # noqa A003
  class ConnectionRouter (line 133) | class ConnectionRouter(object):
    method __init__ (line 134) | def __init__(self):
    method routers (line 138) | def routers(self):
    method _for_action (line 152) | def _for_action(self, action, many, **hints):
    method for_write (line 170) | def for_write(self, **hints):
    method for_read (line 173) | def for_read(self, **hints):
  class UnifiedIndex (line 177) | class UnifiedIndex(object):
    method __init__ (line 179) | def __init__(self, excluded_indexes=None):
    method indexes (line 190) | def indexes(self):
    method collect_indexes (line 196) | def collect_indexes(self):
    method reset (line 230) | def reset(self):
    method build (line 237) | def build(self, indexes=None):
    method collect_fields (line 259) | def collect_fields(self, index):
    method get_indexes (line 324) | def get_indexes(self):
    method get_indexed_models (line 330) | def get_indexed_models(self):
    method get_index_fieldname (line 334) | def get_index_fieldname(self, field):
    method get_index (line 340) | def get_index(self, model_klass):
    method get_facet_fieldname (line 349) | def get_facet_fieldname(self, field):
    method all_searchfields (line 367) | def all_searchfields(self):

FILE: haystack/utils/log.py
  function getLogger (line 6) | def getLogger(name):
  class LoggingFacade (line 11) | class LoggingFacade(object):
    method __init__ (line 12) | def __init__(self, real_logger):
    method noop (line 15) | def noop(self, *args, **kwargs):
    method __getattr__ (line 18) | def __getattr__(self, attr):

FILE: haystack/views.py
  class SearchView (line 12) | class SearchView(object):
    method __init__ (line 21) | def __init__(
    method __call__ (line 42) | def __call__(self, request):
    method build_form (line 56) | def build_form(self, form_kwargs=None):
    method get_query (line 73) | def get_query(self):
    method get_results (line 84) | def get_results(self):
    method build_page (line 92) | def build_page(self):
    method extra_context (line 120) | def extra_context(self):
    method get_context (line 128) | def get_context(self):
    method create_response (line 149) | def create_response(self):
  function search_view_factory (line 159) | def search_view_factory(view_class=SearchView, *args, **kwargs):
  class FacetedSearchView (line 166) | class FacetedSearchView(SearchView):
    method __init__ (line 167) | def __init__(self, *args, **kwargs):
    method build_form (line 174) | def build_form(self, form_kwargs=None):
    method extra_context (line 184) | def extra_context(self):
  function basic_search (line 191) | def basic_search(

FILE: test_haystack/__init__.py
  function setup (line 14) | def setup():
  function teardown (line 25) | def teardown():

FILE: test_haystack/core/admin.py
  class MockModelAdmin (line 8) | class MockModelAdmin(SearchModelAdmin):

FILE: test_haystack/core/custom_identifier.py
  function get_identifier_method (line 4) | def get_identifier_method(key):

FILE: test_haystack/core/models.py
  class MockTag (line 8) | class MockTag(models.Model):
    method __str__ (line 11) | def __str__(self):
  class MockModel (line 15) | class MockModel(models.Model):
    method __str__ (line 21) | def __str__(self):
    method hello (line 24) | def hello(self):
  class UUIDMockModel (line 28) | class UUIDMockModel(models.Model):
    method __str__ (line 32) | def __str__(self):
  class AnotherMockModel (line 36) | class AnotherMockModel(models.Model):
    method __str__ (line 40) | def __str__(self):
  class AThirdMockModel (line 44) | class AThirdMockModel(AnotherMockModel):
  class CharPKMockModel (line 49) | class CharPKMockModel(models.Model):
  class AFourthMockModel (line 53) | class AFourthMockModel(models.Model):
    method __str__ (line 58) | def __str__(self):
  class SoftDeleteManager (line 62) | class SoftDeleteManager(models.Manager):
    method get_queryset (line 63) | def get_queryset(self):
    method complete_set (line 66) | def complete_set(self):
  class AFifthMockModel (line 70) | class AFifthMockModel(models.Model):
    method __str__ (line 76) | def __str__(self):
  class ASixthMockModel (line 80) | class ASixthMockModel(models.Model):
    method __str__ (line 85) | def __str__(self):
  class ScoreMockModel (line 89) | class ScoreMockModel(models.Model):
    method __str__ (line 92) | def __str__(self):
  class ManyToManyLeftSideModel (line 96) | class ManyToManyLeftSideModel(models.Model):
  class ManyToManyRightSideModel (line 100) | class ManyToManyRightSideModel(models.Model):
    method __str__ (line 103) | def __str__(self):
  class OneToManyLeftSideModel (line 107) | class OneToManyLeftSideModel(models.Model):
  class OneToManyRightSideModel (line 111) | class OneToManyRightSideModel(models.Model):

FILE: test_haystack/discovery/models.py
  class Foo (line 4) | class Foo(models.Model):
    method __str__ (line 8) | def __str__(self):
  class Bar (line 12) | class Bar(models.Model):
    method __str__ (line 16) | def __str__(self):

FILE: test_haystack/discovery/search_indexes.py
  class FooIndex (line 5) | class FooIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 8) | def get_model(self):
  class BarIndex (line 12) | class BarIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 15) | def get_model(self):

FILE: test_haystack/elasticsearch2_tests/__init__.py
  function setup (line 11) | def setup():

FILE: test_haystack/elasticsearch2_tests/test_backend.py
  function clear_elasticsearch_index (line 26) | def clear_elasticsearch_index():
  class Elasticsearch2MockSearchIndex (line 44) | class Elasticsearch2MockSearchIndex(indexes.SearchIndex, indexes.Indexab...
    method get_model (line 49) | def get_model(self):
  class Elasticsearch2MockSearchIndexWithSkipDocument (line 53) | class Elasticsearch2MockSearchIndexWithSkipDocument(Elasticsearch2MockSe...
    method prepare_text (line 54) | def prepare_text(self, obj):
  class Elasticsearch2MockSpellingIndex (line 60) | class Elasticsearch2MockSpellingIndex(indexes.SearchIndex, indexes.Index...
    method get_model (line 65) | def get_model(self):
    method prepare_text (line 68) | def prepare_text(self, obj):
  class Elasticsearch2MaintainTypeMockSearchIndex (line 72) | class Elasticsearch2MaintainTypeMockSearchIndex(indexes.SearchIndex, ind...
    method prepare_month (line 77) | def prepare_month(self, obj):
    method get_model (line 80) | def get_model(self):
  class Elasticsearch2MockModelSearchIndex (line 84) | class Elasticsearch2MockModelSearchIndex(indexes.SearchIndex, indexes.In...
    method get_model (line 89) | def get_model(self):
  class Elasticsearch2AnotherMockModelSearchIndex (line 93) | class Elasticsearch2AnotherMockModelSearchIndex(indexes.SearchIndex, ind...
    method get_model (line 98) | def get_model(self):
    method prepare_text (line 101) | def prepare_text(self, obj):
  class Elasticsearch2BoostMockSearchIndex (line 105) | class Elasticsearch2BoostMockSearchIndex(indexes.SearchIndex, indexes.In...
    method get_model (line 115) | def get_model(self):
    method prepare (line 118) | def prepare(self, obj):
  class Elasticsearch2FacetingMockSearchIndex (line 127) | class Elasticsearch2FacetingMockSearchIndex(indexes.SearchIndex, indexes...
    method prepare_text (line 134) | def prepare_text(self, obj):
    method get_model (line 137) | def get_model(self):
  class Elasticsearch2RoundTripSearchIndex (line 141) | class Elasticsearch2RoundTripSearchIndex(indexes.SearchIndex, indexes.In...
    method get_model (line 153) | def get_model(self):
    method prepare (line 156) | def prepare(self, obj):
  class Elasticsearch2ComplexFacetsMockSearchIndex (line 175) | class Elasticsearch2ComplexFacetsMockSearchIndex(
    method get_model (line 188) | def get_model(self):
  class Elasticsearch2AutocompleteMockModelSearchIndex (line 192) | class Elasticsearch2AutocompleteMockModelSearchIndex(
    method get_model (line 201) | def get_model(self):
  class Elasticsearch2SpatialSearchIndex (line 205) | class Elasticsearch2SpatialSearchIndex(indexes.SearchIndex, indexes.Inde...
    method prepare_location (line 209) | def prepare_location(self, obj):
    method get_model (line 212) | def get_model(self):
  class TestSettings (line 216) | class TestSettings(TestCase):
    method test_kwargs_are_passed_on (line 217) | def test_kwargs_are_passed_on(self):
  class Elasticsearch2SearchBackendTestCase (line 232) | class Elasticsearch2SearchBackendTestCase(TestCase):
    method setUp (line 233) | def setUp(self):
    method tearDown (line 265) | def tearDown(self):
    method raw_search (line 270) | def raw_search(self, query):
    method test_non_silent (line 279) | def test_non_silent(self):
    method test_update_no_documents (line 312) | def test_update_no_documents(self):
    method test_update (line 330) | def test_update(self):
    method test_update_with_SkipDocument_raised (line 371) | def test_update_with_SkipDocument_raised(self):
    method test_remove (line 382) | def test_remove(self):
    method test_remove_succeeds_on_404 (line 415) | def test_remove_succeeds_on_404(self):
    method test_clear (line 419) | def test_clear(self):
    method test_search (line 441) | def test_search(self):
    method test_spatial_search_parameters (line 571) | def test_spatial_search_parameters(self):
    method test_more_like_this (line 593) | def test_more_like_this(self):
    method test_build_schema (line 608) | def test_build_schema(self):
    method test_verify_type (line 670) | def test_verify_type(self):
  class CaptureHandler (line 686) | class CaptureHandler(std_logging.Handler):
    method emit (line 689) | def emit(self, record):
  class FailedElasticsearch2SearchBackendTestCase (line 693) | class FailedElasticsearch2SearchBackendTestCase(TestCase):
    method setUp (line 694) | def setUp(self):
    method tearDown (line 724) | def tearDown(self):
    method test_all_cases (line 733) | def test_all_cases(self):
  class LiveElasticsearch2SearchQueryTestCase (line 756) | class LiveElasticsearch2SearchQueryTestCase(TestCase):
    method setUp (line 759) | def setUp(self):
    method tearDown (line 777) | def tearDown(self):
    method test_log_query (line 781) | def test_log_query(self):
  class LiveElasticsearch2SearchQuerySetTestCase (line 818) | class LiveElasticsearch2SearchQuerySetTestCase(TestCase):
    method setUp (line 823) | def setUp(self):
    method tearDown (line 848) | def tearDown(self):
    method test_load_all (line 853) | def test_load_all(self):
    method test_iter (line 862) | def test_iter(self):
    method test_slice (line 870) | def test_slice(self):
    method test_values_slicing (line 886) | def test_values_slicing(self):
    method test_count (line 907) | def test_count(self):
    method test_manual_iter (line 918) | def test_manual_iter(self):
    method test_fill_cache (line 954) | def test_fill_cache(self):
    method test_cache_is_full (line 971) | def test_cache_is_full(self):
    method test___and__ (line 980) | def test___and__(self):
    method test___or__ (line 1003) | def test___or__(self):
    method test_auto_query (line 1026) | def test_auto_query(self):
    method test_regression_proper_start_offsets (line 1039) | def test_regression_proper_start_offsets(self):
    method test_regression_raw_search_breaks_slicing (line 1057) | def test_regression_raw_search_breaks_slicing(self):
    method test_related_load_all (line 1070) | def test_related_load_all(self):
    method test_related_load_all_queryset (line 1079) | def test_related_load_all_queryset(self):
    method test_related_iter (line 1097) | def test_related_iter(self):
    method test_related_slice (line 1132) | def test_related_slice(self):
    method test_related_manual_iter (line 1156) | def test_related_manual_iter(self):
    method test_related_fill_cache (line 1165) | def test_related_fill_cache(self):
    method test_related_cache_is_full (line 1182) | def test_related_cache_is_full(self):
    method test_quotes_regression (line 1191) | def test_quotes_regression(self):
    method test_query_generation (line 1238) | def test_query_generation(self):
    method test_result_class (line 1246) | def test_result_class(self):
  class LiveElasticsearch2SpellingTestCase (line 1261) | class LiveElasticsearch2SpellingTestCase(TestCase):
    method setUp (line 1266) | def setUp(self):
    method tearDown (line 1287) | def tearDown(self):
    method test_spelling (line 1292) | def test_spelling(self):
  class LiveElasticsearch2MoreLikeThisTestCase (line 1306) | class LiveElasticsearch2MoreLikeThisTestCase(TestCase):
    method setUp (line 1309) | def setUp(self):
    method tearDown (line 1327) | def tearDown(self):
    method test_more_like_this (line 1332) | def test_more_like_this(self):
  class LiveElasticsearch2AutocompleteTestCase (line 1384) | class LiveElasticsearch2AutocompleteTestCase(TestCase):
    method setUp (line 1387) | def setUp(self):
    method tearDown (line 1408) | def tearDown(self):
    method test_build_schema (line 1413) | def test_build_schema(self):
    method test_autocomplete (line 1437) | def test_autocomplete(self):
  class LiveElasticsearch2RoundTripTestCase (line 1502) | class LiveElasticsearch2RoundTripTestCase(TestCase):
    method setUp (line 1503) | def setUp(self):
    method tearDown (line 1524) | def tearDown(self):
    method test_round_trip (line 1529) | def test_round_trip(self):
  class LiveElasticsearch2PickleTestCase (line 1550) | class LiveElasticsearch2PickleTestCase(TestCase):
    method setUp (line 1553) | def setUp(self):
    method tearDown (line 1572) | def tearDown(self):
    method test_pickling (line 1577) | def test_pickling(self):
  class Elasticsearch2BoostBackendTestCase (line 1590) | class Elasticsearch2BoostBackendTestCase(TestCase):
    method setUp (line 1591) | def setUp(self):
    method tearDown (line 1624) | def tearDown(self):
    method raw_search (line 1628) | def raw_search(self, query):
    method test_boost (line 1633) | def test_boost(self):
    method test__to_python (line 1651) | def test__to_python(self):
  class RecreateIndexTestCase (line 1671) | class RecreateIndexTestCase(TestCase):
    method setUp (line 1672) | def setUp(self):
    method test_recreate_index (line 1677) | def test_recreate_index(self):
  class Elasticsearch2FacetingTestCase (line 1701) | class Elasticsearch2FacetingTestCase(TestCase):
    method setUp (line 1702) | def setUp(self):
    method tearDown (line 1736) | def tearDown(self):
    method test_facet (line 1740) | def test_facet(self):
    method test_multiple_narrow (line 1764) | def test_multiple_narrow(self):
    method test_narrow (line 1775) | def test_narrow(self):
    method test_date_facet (line 1789) | def test_date_facet(self):

FILE: test_haystack/elasticsearch2_tests/test_inputs.py
  class Elasticsearch2InputTestCase (line 6) | class Elasticsearch2InputTestCase(TestCase):
    method setUp (line 7) | def setUp(self):
    method test_raw_init (line 11) | def test_raw_init(self):
    method test_raw_prepare (line 22) | def test_raw_prepare(self):
    method test_clean_init (line 26) | def test_clean_init(self):
    method test_clean_prepare (line 31) | def test_clean_prepare(self):
    method test_exact_init (line 35) | def test_exact_init(self):
    method test_exact_prepare (line 40) | def test_exact_prepare(self):
    method test_not_init (line 47) | def test_not_init(self):
    method test_not_prepare (line 52) | def test_not_prepare(self):
    method test_autoquery_init (line 56) | def test_autoquery_init(self):
    method test_autoquery_prepare (line 61) | def test_autoquery_prepare(self):
    method test_altparser_init (line 67) | def test_altparser_init(self):
    method test_altparser_prepare (line 80) | def test_altparser_prepare(self):

FILE: test_haystack/elasticsearch2_tests/test_query.py
  class Elasticsearch2SearchQueryTestCase (line 15) | class Elasticsearch2SearchQueryTestCase(TestCase):
    method setUp (line 16) | def setUp(self):
    method test_build_query_all (line 20) | def test_build_query_all(self):
    method test_build_query_single_word (line 23) | def test_build_query_single_word(self):
    method test_build_query_boolean (line 27) | def test_build_query_boolean(self):
    method test_regression_slash_search (line 31) | def test_regression_slash_search(self):
    method test_build_query_datetime (line 35) | def test_build_query_datetime(self):
    method test_build_query_multiple_words_and (line 39) | def test_build_query_multiple_words_and(self):
    method test_build_query_multiple_words_not (line 44) | def test_build_query_multiple_words_not(self):
    method test_build_query_multiple_words_or (line 49) | def test_build_query_multiple_words_or(self):
    method test_build_query_multiple_words_mixed (line 54) | def test_build_query_multiple_words_mixed(self):
    method test_build_query_phrase (line 62) | def test_build_query_phrase(self):
    method test_build_query_boost (line 71) | def test_build_query_boost(self):
    method test_build_query_multiple_filter_types (line 76) | def test_build_query_multiple_filter_types(self):
    method test_build_query_multiple_filter_types_with_datetimes (line 89) | def test_build_query_multiple_filter_types_with_datetimes(self):
    method test_build_query_in_filter_multiple_words (line 102) | def test_build_query_in_filter_multiple_words(self):
    method test_build_query_in_filter_datetime (line 110) | def test_build_query_in_filter_datetime(self):
    method test_build_query_in_with_set (line 117) | def test_build_query_in_with_set(self):
    method test_build_query_wildcard_filter_types (line 124) | def test_build_query_wildcard_filter_types(self):
    method test_build_query_fuzzy_filter_types (line 129) | def test_build_query_fuzzy_filter_types(self):
    method test_clean (line 134) | def test_clean(self):
    method test_build_query_with_models (line 148) | def test_build_query_with_models(self):
    method test_set_result_class (line 156) | def test_set_result_class(self):
    method test_in_filter_values_list (line 171) | def test_in_filter_values_list(self):
    method test_narrow_sq (line 176) | def test_narrow_sq(self):
  class Elasticsearch2SearchQuerySpatialBeforeReleaseTestCase (line 183) | class Elasticsearch2SearchQuerySpatialBeforeReleaseTestCase(TestCase):
    method setUp (line 184) | def setUp(self):
    method tearDown (line 190) | def tearDown(self):
    method test_build_query_with_dwithin_range (line 193) | def test_build_query_with_dwithin_range(self):
  class Elasticsearch2SearchQuerySpatialAfterReleaseTestCase (line 215) | class Elasticsearch2SearchQuerySpatialAfterReleaseTestCase(TestCase):
    method setUp (line 216) | def setUp(self):
    method tearDown (line 222) | def tearDown(self):
    method test_build_query_with_dwithin_range (line 225) | def test_build_query_with_dwithin_range(self):

FILE: test_haystack/elasticsearch5_tests/__init__.py
  function setup (line 11) | def setup():

FILE: test_haystack/elasticsearch5_tests/test_backend.py
  function clear_elasticsearch_index (line 26) | def clear_elasticsearch_index():
  class Elasticsearch5MockSearchIndex (line 44) | class Elasticsearch5MockSearchIndex(indexes.SearchIndex, indexes.Indexab...
    method get_model (line 49) | def get_model(self):
  class Elasticsearch5MockSearchIndexWithSkipDocument (line 53) | class Elasticsearch5MockSearchIndexWithSkipDocument(Elasticsearch5MockSe...
    method prepare_text (line 54) | def prepare_text(self, obj):
  class Elasticsearch5MockSpellingIndex (line 60) | class Elasticsearch5MockSpellingIndex(indexes.SearchIndex, indexes.Index...
    method get_model (line 65) | def get_model(self):
    method prepare_text (line 68) | def prepare_text(self, obj):
  class Elasticsearch5MaintainTypeMockSearchIndex (line 72) | class Elasticsearch5MaintainTypeMockSearchIndex(indexes.SearchIndex, ind...
    method prepare_month (line 77) | def prepare_month(self, obj):
    method get_model (line 80) | def get_model(self):
  class Elasticsearch5MockModelSearchIndex (line 84) | class Elasticsearch5MockModelSearchIndex(indexes.SearchIndex, indexes.In...
    method get_model (line 89) | def get_model(self):
  class Elasticsearch5AnotherMockModelSearchIndex (line 93) | class Elasticsearch5AnotherMockModelSearchIndex(indexes.SearchIndex, ind...
    method get_model (line 98) | def get_model(self):
    method prepare_text (line 101) | def prepare_text(self, obj):
  class Elasticsearch5BoostMockSearchIndex (line 105) | class Elasticsearch5BoostMockSearchIndex(indexes.SearchIndex, indexes.In...
    method get_model (line 115) | def get_model(self):
    method prepare (line 118) | def prepare(self, obj):
  class Elasticsearch5FacetingMockSearchIndex (line 127) | class Elasticsearch5FacetingMockSearchIndex(indexes.SearchIndex, indexes...
    method prepare_text (line 134) | def prepare_text(self, obj):
    method get_model (line 137) | def get_model(self):
  class Elasticsearch5RoundTripSearchIndex (line 141) | class Elasticsearch5RoundTripSearchIndex(indexes.SearchIndex, indexes.In...
    method get_model (line 153) | def get_model(self):
    method prepare (line 156) | def prepare(self, obj):
  class Elasticsearch5ComplexFacetsMockSearchIndex (line 175) | class Elasticsearch5ComplexFacetsMockSearchIndex(
    method get_model (line 188) | def get_model(self):
  class Elasticsearch5AutocompleteMockModelSearchIndex (line 192) | class Elasticsearch5AutocompleteMockModelSearchIndex(
    method get_model (line 201) | def get_model(self):
  class Elasticsearch5SpatialSearchIndex (line 205) | class Elasticsearch5SpatialSearchIndex(indexes.SearchIndex, indexes.Inde...
    method prepare_location (line 209) | def prepare_location(self, obj):
    method get_model (line 212) | def get_model(self):
  class TestSettings (line 216) | class TestSettings(TestCase):
    method test_kwargs_are_passed_on (line 217) | def test_kwargs_are_passed_on(self):
  class Elasticsearch5SearchBackendTestCase (line 232) | class Elasticsearch5SearchBackendTestCase(TestCase):
    method setUp (line 233) | def setUp(self):
    method tearDown (line 265) | def tearDown(self):
    method raw_search (line 270) | def raw_search(self, query):
    method test_non_silent (line 279) | def test_non_silent(self):
    method test_update_no_documents (line 312) | def test_update_no_documents(self):
    method test_update (line 330) | def test_update(self):
    method test_update_with_SkipDocument_raised (line 371) | def test_update_with_SkipDocument_raised(self):
    method test_remove (line 382) | def test_remove(self):
    method test_remove_succeeds_on_404 (line 415) | def test_remove_succeeds_on_404(self):
    method test_clear (line 419) | def test_clear(self):
    method test_search (line 441) | def test_search(self):
    method test_spatial_search_parameters (line 571) | def test_spatial_search_parameters(self):
    method test_more_like_this (line 593) | def test_more_like_this(self):
    method test_build_schema (line 608) | def test_build_schema(self):
    method test_verify_type (line 670) | def test_verify_type(self):
  class CaptureHandler (line 686) | class CaptureHandler(std_logging.Handler):
    method emit (line 689) | def emit(self, record):
  class FailedElasticsearch5SearchBackendTestCase (line 693) | class FailedElasticsearch5SearchBackendTestCase(TestCase):
    method setUp (line 694) | def setUp(self):
    method tearDown (line 724) | def tearDown(self):
    method test_all_cases (line 733) | def test_all_cases(self):
  class LiveElasticsearch5SearchQueryTestCase (line 756) | class LiveElasticsearch5SearchQueryTestCase(TestCase):
    method setUp (line 759) | def setUp(self):
    method tearDown (line 777) | def tearDown(self):
    method test_log_query (line 781) | def test_log_query(self):
  class LiveElasticsearch5SearchQuerySetTestCase (line 818) | class LiveElasticsearch5SearchQuerySetTestCase(TestCase):
    method setUp (line 823) | def setUp(self):
    method tearDown (line 848) | def tearDown(self):
    method test_load_all (line 853) | def test_load_all(self):
    method test_iter (line 862) | def test_iter(self):
    method test_slice (line 870) | def test_slice(self):
    method test_values_slicing (line 886) | def test_values_slicing(self):
    method test_count (line 907) | def test_count(self):
    method test_manual_iter (line 918) | def test_manual_iter(self):
    method test_fill_cache (line 954) | def test_fill_cache(self):
    method test_cache_is_full (line 971) | def test_cache_is_full(self):
    method test___and__ (line 980) | def test___and__(self):
    method test___or__ (line 1003) | def test___or__(self):
    method test_auto_query (line 1026) | def test_auto_query(self):
    method test_regression_proper_start_offsets (line 1039) | def test_regression_proper_start_offsets(self):
    method test_regression_raw_search_breaks_slicing (line 1057) | def test_regression_raw_search_breaks_slicing(self):
    method test_related_load_all (line 1070) | def test_related_load_all(self):
    method test_related_load_all_queryset (line 1079) | def test_related_load_all_queryset(self):
    method test_related_iter (line 1097) | def test_related_iter(self):
    method test_related_slice (line 1132) | def test_related_slice(self):
    method test_related_manual_iter (line 1156) | def test_related_manual_iter(self):
    method test_related_fill_cache (line 1165) | def test_related_fill_cache(self):
    method test_related_cache_is_full (line 1182) | def test_related_cache_is_full(self):
    method test_quotes_regression (line 1191) | def test_quotes_regression(self):
    method test_query_generation (line 1238) | def test_query_generation(self):
    method test_result_class (line 1246) | def test_result_class(self):
  class LiveElasticsearch5SpellingTestCase (line 1261) | class LiveElasticsearch5SpellingTestCase(TestCase):
    method setUp (line 1266) | def setUp(self):
    method tearDown (line 1287) | def tearDown(self):
    method test_spelling (line 1292) | def test_spelling(self):
  class LiveElasticsearch5MoreLikeThisTestCase (line 1306) | class LiveElasticsearch5MoreLikeThisTestCase(TestCase):
    method setUp (line 1309) | def setUp(self):
    method tearDown (line 1327) | def tearDown(self):
    method test_more_like_this (line 1332) | def test_more_like_this(self):
  class LiveElasticsearch5AutocompleteTestCase (line 1384) | class LiveElasticsearch5AutocompleteTestCase(TestCase):
    method setUp (line 1387) | def setUp(self):
    method tearDown (line 1408) | def tearDown(self):
    method test_build_schema (line 1413) | def test_build_schema(self):
    method test_autocomplete (line 1437) | def test_autocomplete(self):
  class LiveElasticsearch5RoundTripTestCase (line 1502) | class LiveElasticsearch5RoundTripTestCase(TestCase):
    method setUp (line 1503) | def setUp(self):
    method tearDown (line 1524) | def tearDown(self):
    method test_round_trip (line 1529) | def test_round_trip(self):
  class LiveElasticsearch5PickleTestCase (line 1550) | class LiveElasticsearch5PickleTestCase(TestCase):
    method setUp (line 1553) | def setUp(self):
    method tearDown (line 1572) | def tearDown(self):
    method test_pickling (line 1577) | def test_pickling(self):
  class Elasticsearch5BoostBackendTestCase (line 1590) | class Elasticsearch5BoostBackendTestCase(TestCase):
    method setUp (line 1591) | def setUp(self):
    method tearDown (line 1624) | def tearDown(self):
    method raw_search (line 1628) | def raw_search(self, query):
    method test_boost (line 1633) | def test_boost(self):
    method test__to_python (line 1651) | def test__to_python(self):
  class RecreateIndexTestCase (line 1671) | class RecreateIndexTestCase(TestCase):
    method setUp (line 1672) | def setUp(self):
    method test_recreate_index (line 1677) | def test_recreate_index(self):
  class Elasticsearch5FacetingTestCase (line 1701) | class Elasticsearch5FacetingTestCase(TestCase):
    method setUp (line 1702) | def setUp(self):
    method tearDown (line 1736) | def tearDown(self):
    method test_facet (line 1740) | def test_facet(self):
    method test_multiple_narrow (line 1764) | def test_multiple_narrow(self):
    method test_narrow (line 1775) | def test_narrow(self):
    method test_date_facet (line 1789) | def test_date_facet(self):

FILE: test_haystack/elasticsearch5_tests/test_inputs.py
  class Elasticsearch5InputTestCase (line 6) | class Elasticsearch5InputTestCase(TestCase):
    method setUp (line 7) | def setUp(self):
    method test_raw_init (line 11) | def test_raw_init(self):
    method test_raw_prepare (line 22) | def test_raw_prepare(self):
    method test_clean_init (line 26) | def test_clean_init(self):
    method test_clean_prepare (line 31) | def test_clean_prepare(self):
    method test_exact_init (line 35) | def test_exact_init(self):
    method test_exact_prepare (line 40) | def test_exact_prepare(self):
    method test_not_init (line 47) | def test_not_init(self):
    method test_not_prepare (line 52) | def test_not_prepare(self):
    method test_autoquery_init (line 56) | def test_autoquery_init(self):
    method test_autoquery_prepare (line 61) | def test_autoquery_prepare(self):
    method test_altparser_init (line 67) | def test_altparser_init(self):
    method test_altparser_prepare (line 80) | def test_altparser_prepare(self):

FILE: test_haystack/elasticsearch5_tests/test_query.py
  class Elasticsearch5SearchQueryTestCase (line 14) | class Elasticsearch5SearchQueryTestCase(TestCase):
    method setUp (line 15) | def setUp(self):
    method test_build_query_all (line 19) | def test_build_query_all(self):
    method test_build_query_single_word (line 22) | def test_build_query_single_word(self):
    method test_build_query_boolean (line 26) | def test_build_query_boolean(self):
    method test_regression_slash_search (line 30) | def test_regression_slash_search(self):
    method test_build_query_datetime (line 34) | def test_build_query_datetime(self):
    method test_build_query_multiple_words_and (line 38) | def test_build_query_multiple_words_and(self):
    method test_build_query_multiple_words_not (line 43) | def test_build_query_multiple_words_not(self):
    method test_build_query_multiple_words_or (line 48) | def test_build_query_multiple_words_or(self):
    method test_build_query_multiple_words_mixed (line 53) | def test_build_query_multiple_words_mixed(self):
    method test_build_query_phrase (line 61) | def test_build_query_phrase(self):
    method test_build_query_boost (line 70) | def test_build_query_boost(self):
    method test_build_query_multiple_filter_types (line 75) | def test_build_query_multiple_filter_types(self):
    method test_build_query_multiple_filter_types_with_datetimes (line 88) | def test_build_query_multiple_filter_types_with_datetimes(self):
    method test_build_query_in_filter_multiple_words (line 101) | def test_build_query_in_filter_multiple_words(self):
    method test_build_query_in_filter_datetime (line 109) | def test_build_query_in_filter_datetime(self):
    method test_build_query_in_with_set (line 116) | def test_build_query_in_with_set(self):
    method test_build_query_wildcard_filter_types (line 123) | def test_build_query_wildcard_filter_types(self):
    method test_build_query_fuzzy_filter_types (line 128) | def test_build_query_fuzzy_filter_types(self):
    method test_clean (line 133) | def test_clean(self):
    method test_build_query_with_models (line 147) | def test_build_query_with_models(self):
    method test_set_result_class (line 155) | def test_set_result_class(self):
    method test_in_filter_values_list (line 170) | def test_in_filter_values_list(self):
    method test_narrow_sq (line 175) | def test_narrow_sq(self):
    method test_build_query_with_dwithin_range (line 181) | def test_build_query_with_dwithin_range(self):

FILE: test_haystack/elasticsearch_tests/__init__.py
  function setup (line 11) | def setup():

FILE: test_haystack/elasticsearch_tests/test_elasticsearch_backend.py
  function clear_elasticsearch_index (line 27) | def clear_elasticsearch_index():
  class ElasticsearchMockSearchIndex (line 45) | class ElasticsearchMockSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 50) | def get_model(self):
  class ElasticsearchMockSearchIndexWithSkipDocument (line 54) | class ElasticsearchMockSearchIndexWithSkipDocument(ElasticsearchMockSear...
    method prepare_text (line 55) | def prepare_text(self, obj):
  class ElasticsearchMockSpellingIndex (line 61) | class ElasticsearchMockSpellingIndex(indexes.SearchIndex, indexes.Indexa...
    method get_model (line 66) | def get_model(self):
    method prepare_text (line 69) | def prepare_text(self, obj):
  class ElasticsearchMaintainTypeMockSearchIndex (line 73) | class ElasticsearchMaintainTypeMockSearchIndex(indexes.SearchIndex, inde...
    method prepare_month (line 78) | def prepare_month(self, obj):
    method get_model (line 81) | def get_model(self):
  class ElasticsearchMockModelSearchIndex (line 85) | class ElasticsearchMockModelSearchIndex(indexes.SearchIndex, indexes.Ind...
    method get_model (line 90) | def get_model(self):
  class ElasticsearchAnotherMockModelSearchIndex (line 94) | class ElasticsearchAnotherMockModelSearchIndex(indexes.SearchIndex, inde...
    method get_model (line 99) | def get_model(self):
    method prepare_text (line 102) | def prepare_text(self, obj):
  class ElasticsearchBoostMockSearchIndex (line 106) | class ElasticsearchBoostMockSearchIndex(indexes.SearchIndex, indexes.Ind...
    method get_model (line 116) | def get_model(self):
    method prepare (line 119) | def prepare(self, obj):
  class ElasticsearchFacetingMockSearchIndex (line 128) | class ElasticsearchFacetingMockSearchIndex(indexes.SearchIndex, indexes....
    method prepare_text (line 135) | def prepare_text(self, obj):
    method get_model (line 138) | def get_model(self):
  class ElasticsearchRoundTripSearchIndex (line 142) | class ElasticsearchRoundTripSearchIndex(indexes.SearchIndex, indexes.Ind...
    method get_model (line 154) | def get_model(self):
    method prepare (line 157) | def prepare(self, obj):
  class ElasticsearchComplexFacetsMockSearchIndex (line 176) | class ElasticsearchComplexFacetsMockSearchIndex(indexes.SearchIndex, ind...
    method get_model (line 187) | def get_model(self):
  class ElasticsearchAutocompleteMockModelSearchIndex (line 191) | class ElasticsearchAutocompleteMockModelSearchIndex(
    method get_model (line 200) | def get_model(self):
  class ElasticsearchSpatialSearchIndex (line 204) | class ElasticsearchSpatialSearchIndex(indexes.SearchIndex, indexes.Index...
    method prepare_location (line 208) | def prepare_location(self, obj):
    method get_model (line 211) | def get_model(self):
  class TestSettings (line 215) | class TestSettings(TestCase):
    method test_kwargs_are_passed_on (line 216) | def test_kwargs_are_passed_on(self):
  class ElasticSearchMockUnifiedIndex (line 231) | class ElasticSearchMockUnifiedIndex(UnifiedIndex):
    method get_index (line 235) | def get_index(self, model_klass):
    method spy (line 241) | def spy(self):
  class ElasticsearchSearchBackendTestCase (line 249) | class ElasticsearchSearchBackendTestCase(TestCase):
    method setUp (line 250) | def setUp(self):
    method tearDown (line 282) | def tearDown(self):
    method raw_search (line 287) | def raw_search(self, query):
    method test_non_silent (line 296) | def test_non_silent(self):
    method test_update_no_documents (line 329) | def test_update_no_documents(self):
    method test_update (line 347) | def test_update(self):
    method test_update_with_SkipDocument_raised (line 388) | def test_update_with_SkipDocument_raised(self):
    method test_remove (line 399) | def test_remove(self):
    method test_remove_succeeds_on_404 (line 432) | def test_remove_succeeds_on_404(self):
    method test_clear (line 436) | def test_clear(self):
    method test_results_ask_for_index_per_entry (line 458) | def test_results_ask_for_index_per_entry(self):
    method test_search (line 465) | def test_search(self):
    method test_spatial_search_parameters (line 611) | def test_spatial_search_parameters(self):
    method test_more_like_this (line 633) | def test_more_like_this(self):
    method test_build_schema (line 648) | def test_build_schema(self):
    method test_verify_type (line 710) | def test_verify_type(self):
  class CaptureHandler (line 726) | class CaptureHandler(std_logging.Handler):
    method emit (line 729) | def emit(self, record):
  class FailedElasticsearchSearchBackendTestCase (line 733) | class FailedElasticsearchSearchBackendTestCase(TestCase):
    method setUp (line 734) | def setUp(self):
    method tearDown (line 764) | def tearDown(self):
    method test_all_cases (line 773) | def test_all_cases(self):
  class LiveElasticsearchSearchQueryTestCase (line 796) | class LiveElasticsearchSearchQueryTestCase(TestCase):
    method setUp (line 799) | def setUp(self):
    method tearDown (line 817) | def tearDown(self):
    method test_log_query (line 821) | def test_log_query(self):
  class LiveElasticsearchSearchQuerySetTestCase (line 858) | class LiveElasticsearchSearchQuerySetTestCase(TestCase):
    method setUp (line 863) | def setUp(self):
    method tearDown (line 888) | def tearDown(self):
    method test_load_all (line 893) | def test_load_all(self):
    method test_iter (line 902) | def test_iter(self):
    method test_slice (line 910) | def test_slice(self):
    method test_values_slicing (line 926) | def test_values_slicing(self):
    method test_count (line 947) | def test_count(self):
    method test_highlight (line 958) | def test_highlight(self):
    method test_highlight_options (line 963) | def test_highlight_options(self):
    method test_manual_iter (line 969) | def test_manual_iter(self):
    method test_fill_cache (line 1007) | def test_fill_cache(self):
    method test_cache_is_full (line 1024) | def test_cache_is_full(self):
    method test___and__ (line 1034) | def test___and__(self):
    method test___or__ (line 1057) | def test___or__(self):
    method test_auto_query (line 1080) | def test_auto_query(self):
    method test_query__in (line 1091) | def test_query__in(self):
    method test_query__in_empty_list (line 1096) | def test_query__in_empty_list(self):
    method test_regression_proper_start_offsets (line 1104) | def test_regression_proper_start_offsets(self):
    method test_regression_raw_search_breaks_slicing (line 1122) | def test_regression_raw_search_breaks_slicing(self):
    method test_related_load_all (line 1135) | def test_related_load_all(self):
    method test_related_load_all_queryset (line 1144) | def test_related_load_all_queryset(self):
    method test_related_iter (line 1162) | def test_related_iter(self):
    method test_related_slice (line 1199) | def test_related_slice(self):
    method test_related_manual_iter (line 1223) | def test_related_manual_iter(self):
    method test_related_fill_cache (line 1232) | def test_related_fill_cache(self):
    method test_related_cache_is_full (line 1249) | def test_related_cache_is_full(self):
    method test_quotes_regression (line 1259) | def test_quotes_regression(self):
    method test_query_generation (line 1306) | def test_query_generation(self):
    method test_result_class (line 1314) | def test_result_class(self):
  class LiveElasticsearchSpellingTestCase (line 1329) | class LiveElasticsearchSpellingTestCase(TestCase):
    method setUp (line 1334) | def setUp(self):
    method tearDown (line 1355) | def tearDown(self):
    method test_spelling (line 1360) | def test_spelling(self):
  class LiveElasticsearchMoreLikeThisTestCase (line 1379) | class LiveElasticsearchMoreLikeThisTestCase(TestCase):
    method setUp (line 1382) | def setUp(self):
    method tearDown (line 1400) | def tearDown(self):
    method test_more_like_this (line 1405) | def test_more_like_this(self):
  class LiveElasticsearchAutocompleteTestCase (line 1454) | class LiveElasticsearchAutocompleteTestCase(TestCase):
    method setUp (line 1457) | def setUp(self):
    method tearDown (line 1478) | def tearDown(self):
    method test_build_schema (line 1483) | def test_build_schema(self):
    method test_autocomplete (line 1507) | def test_autocomplete(self):
  class LiveElasticsearchRoundTripTestCase (line 1589) | class LiveElasticsearchRoundTripTestCase(TestCase):
    method setUp (line 1590) | def setUp(self):
    method tearDown (line 1611) | def tearDown(self):
    method test_round_trip (line 1616) | def test_round_trip(self):
  class LiveElasticsearchPickleTestCase (line 1637) | class LiveElasticsearchPickleTestCase(TestCase):
    method setUp (line 1640) | def setUp(self):
    method tearDown (line 1659) | def tearDown(self):
    method test_pickling (line 1664) | def test_pickling(self):
  class ElasticsearchBoostBackendTestCase (line 1677) | class ElasticsearchBoostBackendTestCase(TestCase):
    method setUp (line 1678) | def setUp(self):
    method tearDown (line 1711) | def tearDown(self):
    method raw_search (line 1715) | def raw_search(self, query):
    method test_boost (line 1720) | def test_boost(self):
    method test__to_python (line 1740) | def test__to_python(self):
  class RecreateIndexTestCase (line 1760) | class RecreateIndexTestCase(TestCase):
    method setUp (line 1761) | def setUp(self):
    method test_recreate_index (line 1766) | def test_recreate_index(self):
  class ElasticsearchFacetingTestCase (line 1790) | class ElasticsearchFacetingTestCase(TestCase):
    method setUp (line 1791) | def setUp(self):
    method tearDown (line 1825) | def tearDown(self):
    method test_facet (line 1829) | def test_facet(self):
    method test_multiple_narrow (line 1853) | def test_multiple_narrow(self):
    method test_narrow (line 1864) | def test_narrow(self):
    method test_date_facet (line 1878) | def test_date_facet(self):

FILE: test_haystack/elasticsearch_tests/test_elasticsearch_query.py
  class ElasticsearchSearchQueryTestCase (line 15) | class ElasticsearchSearchQueryTestCase(TestCase):
    method setUp (line 18) | def setUp(self):
    method test_build_query_all (line 22) | def test_build_query_all(self):
    method test_build_query_single_word (line 25) | def test_build_query_single_word(self):
    method test_build_query_boolean (line 29) | def test_build_query_boolean(self):
    method test_regression_slash_search (line 33) | def test_regression_slash_search(self):
    method test_build_query_datetime (line 37) | def test_build_query_datetime(self):
    method test_build_query_multiple_words_and (line 41) | def test_build_query_multiple_words_and(self):
    method test_build_query_multiple_words_not (line 46) | def test_build_query_multiple_words_not(self):
    method test_build_query_multiple_words_or (line 51) | def test_build_query_multiple_words_or(self):
    method test_build_query_multiple_words_mixed (line 56) | def test_build_query_multiple_words_mixed(self):
    method test_build_query_phrase (line 64) | def test_build_query_phrase(self):
    method test_build_query_boost (line 73) | def test_build_query_boost(self):
    method test_build_query_multiple_filter_types (line 78) | def test_build_query_multiple_filter_types(self):
    method test_build_query_multiple_filter_types_with_datetimes (line 91) | def test_build_query_multiple_filter_types_with_datetimes(self):
    method test_build_query_in_filter_multiple_words (line 104) | def test_build_query_in_filter_multiple_words(self):
    method test_build_query_in_filter_datetime (line 112) | def test_build_query_in_filter_datetime(self):
    method test_build_query_in_with_set (line 119) | def test_build_query_in_with_set(self):
    method test_build_query_wildcard_filter_types (line 126) | def test_build_query_wildcard_filter_types(self):
    method test_build_query_fuzzy_filter_types (line 131) | def test_build_query_fuzzy_filter_types(self):
    method test_build_query_with_contains (line 136) | def test_build_query_with_contains(self):
    method test_build_query_with_endswith (line 141) | def test_build_query_with_endswith(self):
    method test_clean (line 146) | def test_clean(self):
    method test_build_query_with_models (line 160) | def test_build_query_with_models(self):
    method test_set_result_class (line 168) | def test_set_result_class(self):
    method test_in_filter_values_list (line 183) | def test_in_filter_values_list(self):
    method test_narrow_sq (line 188) | def test_narrow_sq(self):
    method test_query__in (line 194) | def test_query__in(self):
    method test_query__in_empty_list (line 198) | def test_query__in_empty_list(self):
  class ElasticsearchSearchQuerySpatialBeforeReleaseTestCase (line 204) | class ElasticsearchSearchQuerySpatialBeforeReleaseTestCase(TestCase):
    method setUp (line 205) | def setUp(self):
    method tearDown (line 211) | def tearDown(self):
    method test_build_query_with_dwithin_range (line 214) | def test_build_query_with_dwithin_range(self):
  class ElasticsearchSearchQuerySpatialAfterReleaseTestCase (line 236) | class ElasticsearchSearchQuerySpatialAfterReleaseTestCase(TestCase):
    method setUp (line 237) | def setUp(self):
    method tearDown (line 243) | def tearDown(self):
    method test_build_query_with_dwithin_range (line 246) | def test_build_query_with_dwithin_range(self):

FILE: test_haystack/elasticsearch_tests/test_inputs.py
  class ElasticsearchInputTestCase (line 6) | class ElasticsearchInputTestCase(TestCase):
    method setUp (line 7) | def setUp(self):
    method test_raw_init (line 11) | def test_raw_init(self):
    method test_raw_prepare (line 22) | def test_raw_prepare(self):
    method test_clean_init (line 26) | def test_clean_init(self):
    method test_clean_prepare (line 31) | def test_clean_prepare(self):
    method test_exact_init (line 35) | def test_exact_init(self):
    method test_exact_prepare (line 40) | def test_exact_prepare(self):
    method test_not_init (line 47) | def test_not_init(self):
    method test_not_prepare (line 52) | def test_not_prepare(self):
    method test_autoquery_init (line 56) | def test_autoquery_init(self):
    method test_autoquery_prepare (line 61) | def test_autoquery_prepare(self):
    method test_altparser_init (line 67) | def test_altparser_init(self):
    method test_altparser_prepare (line 80) | def test_altparser_prepare(self):

FILE: test_haystack/mocks.py
  class MockMasterSlaveRouter (line 9) | class MockMasterSlaveRouter(BaseRouter):
    method for_read (line 10) | def for_read(self, **hints):
    method for_write (line 13) | def for_write(self, **hints):
  class MockPassthroughRouter (line 17) | class MockPassthroughRouter(BaseRouter):
    method for_read (line 18) | def for_read(self, **hints):
    method for_write (line 24) | def for_write(self, **hints):
  class MockMultiRouter (line 31) | class MockMultiRouter(BaseRouter):
    method for_write (line 32) | def for_write(self, **hints):
  class MockSearchResult (line 36) | class MockSearchResult(SearchResult):
    method __init__ (line 37) | def __init__(self, app_label, model_name, pk, score, **kwargs):
  class MockSearchBackend (line 48) | class MockSearchBackend(BaseSearchBackend):
    method update (line 51) | def update(self, index, iterable, commit=True):
    method remove (line 57) | def remove(self, obj, commit=True):
    method clear (line 62) | def clear(self, models=None, commit=True):
    method search (line 67) | def search(self, query_string, **kwargs):
    method more_like_this (line 104) | def more_like_this(
  class CharPKMockSearchBackend (line 110) | class CharPKMockSearchBackend(MockSearchBackend):
  class UUIDMockSearchBackend (line 118) | class UUIDMockSearchBackend(MockSearchBackend):
  class ReadQuerySetMockSearchBackend (line 130) | class ReadQuerySetMockSearchBackend(MockSearchBackend):
  class MixedMockSearchBackend (line 138) | class MixedMockSearchBackend(MockSearchBackend):
    method search (line 140) | def search(self, query_string, **kwargs):
  class MockSearchQuery (line 162) | class MockSearchQuery(BaseSearchQuery):
    method build_query (line 163) | def build_query(self):
    method clean (line 166) | def clean(self, query_fragment):
  class MockEngine (line 179) | class MockEngine(BaseEngine):

FILE: test_haystack/multipleindex/__init__.py
  function setup (line 11) | def setup():
  function teardown (line 21) | def teardown():

FILE: test_haystack/multipleindex/models.py
  class Foo (line 4) | class Foo(models.Model):
    method __str__ (line 8) | def __str__(self):
  class Bar (line 12) | class Bar(models.Model):
    method __str__ (line 16) | def __str__(self):

FILE: test_haystack/multipleindex/routers.py
  class MultipleIndexRouter (line 4) | class MultipleIndexRouter(BaseRouter):
    method for_write (line 5) | def for_write(self, instance=None, **hints):

FILE: test_haystack/multipleindex/search_indexes.py
  class BaseIndex (line 8) | class BaseIndex(indexes.SearchIndex):
    method get_model (line 11) | def get_model(self):
  class FooIndex (line 15) | class FooIndex(BaseIndex, indexes.Indexable):
    method index_queryset (line 16) | def index_queryset(self, using=None):
  class BarIndex (line 26) | class BarIndex(SearchIndex, Indexable):
    method get_model (line 29) | def get_model(self):
    method prepare_text (line 32) | def prepare_text(self, obj):

FILE: test_haystack/multipleindex/tests.py
  class MultipleIndexTestCase (line 13) | class MultipleIndexTestCase(WhooshTestCase):
    method setUp (line 14) | def setUp(self):
    method tearDown (line 43) | def tearDown(self):
    method test_index_update_object_using (line 48) | def test_index_update_object_using(self):
    method test_index_remove_object_using (line 68) | def test_index_remove_object_using(self):
    method test_index_clear_using (line 88) | def test_index_clear_using(self):
    method test_index_update_using (line 106) | def test_index_update_using(self):
    method test_searchqueryset_using (line 129) | def test_searchqueryset_using(self):
    method test_searchquery_using (line 144) | def test_searchquery_using(self):
    method test_excluded_indexes (line 158) | def test_excluded_indexes(self):
    method test_filtered_index_update (line 169) | def test_filtered_index_update(self):
  class TestSignalProcessor (line 183) | class TestSignalProcessor(BaseSignalProcessor):
    method setup (line 184) | def setup(self):
    method teardown (line 188) | def teardown(self):
  class SignalProcessorTestCase (line 193) | class SignalProcessorTestCase(WhooshTestCase):
    method setUp (line 194) | def setUp(self):
    method tearDown (line 219) | def tearDown(self):
    method test_init (line 224) | def test_init(self):
    method test_setup (line 234) | def test_setup(self):
    method test_teardown (line 239) | def test_teardown(self):
    method test_handle_save (line 244) | def test_handle_save(self):
    method test_handle_delete (line 287) | def test_handle_delete(self):

FILE: test_haystack/results_per_page_urls.py
  class CustomPerPage (line 6) | class CustomPerPage(SearchView):

FILE: test_haystack/run_tests.py
  function run_all (line 8) | def run_all(argv=None):

FILE: test_haystack/simple_tests/search_indexes.py
  class SimpleMockSearchIndex (line 6) | class SimpleMockSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 11) | def get_model(self):
  class SimpleMockScoreIndex (line 15) | class SimpleMockScoreIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 19) | def get_model(self):
  class SimpleMockUUIDModelIndex (line 23) | class SimpleMockUUIDModelIndex(indexes.SearchIndex, indexes.Indexable):

FILE: test_haystack/simple_tests/test_simple_backend.py
  class SimpleSearchBackendTestCase (line 15) | class SimpleSearchBackendTestCase(TestCase):
    method setUp (line 18) | def setUp(self):
    method test_update (line 27) | def test_update(self):
    method test_remove (line 30) | def test_remove(self):
    method test_clear (line 33) | def test_clear(self):
    method test_search (line 36) | def test_search(self):
    method test_filter_models (line 196) | def test_filter_models(self):
    method test_more_like_this (line 201) | def test_more_like_this(self):
    method test_score_field_collision (line 208) | def test_score_field_collision(self):
  class LiveSimpleSearchQuerySetTestCase (line 220) | class LiveSimpleSearchQuerySetTestCase(TestCase):
    method setUp (line 223) | def setUp(self):
    method tearDown (line 236) | def tearDown(self):
    method test_general_queries (line 241) | def test_general_queries(self):
    method test_general_queries_unicode (line 249) | def test_general_queries_unicode(self):
    method test_more_like_this (line 252) | def test_more_like_this(self):
    method test_values_queries (line 257) | def test_values_queries(self):

FILE: test_haystack/simple_tests/test_simple_query.py
  class SimpleSearchQueryTestCase (line 8) | class SimpleSearchQueryTestCase(TestCase):
    method setUp (line 9) | def setUp(self):
    method test_build_query_all (line 13) | def test_build_query_all(self):
    method test_build_query_single_word (line 16) | def test_build_query_single_word(self):
    method test_build_query_multiple_word (line 20) | def test_build_query_multiple_word(self):
    method test_set_result_class (line 25) | def test_set_result_class(self):

FILE: test_haystack/solr_tests/__init__.py
  function setup (line 8) | def setup():

FILE: test_haystack/solr_tests/test_admin.py
  class SearchModelAdminTestCase (line 15) | class SearchModelAdminTestCase(TestCase):
    method setUp (line 18) | def setUp(self):
    method tearDown (line 39) | def tearDown(self):
    method test_usage (line 44) | def test_usage(self):

FILE: test_haystack/solr_tests/test_inputs.py
  class SolrInputTestCase (line 6) | class SolrInputTestCase(TestCase):
    method setUp (line 7) | def setUp(self):
    method test_raw_init (line 11) | def test_raw_init(self):
    method test_raw_prepare (line 22) | def test_raw_prepare(self):
    method test_clean_init (line 26) | def test_clean_init(self):
    method test_clean_prepare (line 31) | def test_clean_prepare(self):
    method test_exact_init (line 35) | def test_exact_init(self):
    method test_exact_prepare (line 40) | def test_exact_prepare(self):
    method test_not_init (line 47) | def test_not_init(self):
    method test_not_prepare (line 52) | def test_not_prepare(self):
    method test_autoquery_init (line 56) | def test_autoquery_init(self):
    method test_autoquery_prepare (line 61) | def test_autoquery_prepare(self):
    method test_altparser_init (line 67) | def test_altparser_init(self):
    method test_altparser_prepare (line 80) | def test_altparser_prepare(self):

FILE: test_haystack/solr_tests/test_solr_backend.py
  function clear_solr_index (line 26) | def clear_solr_index():
  class SolrMockSearchIndex (line 33) | class SolrMockSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 38) | def get_model(self):
  class SolrMockSearchIndexWithSkipDocument (line 42) | class SolrMockSearchIndexWithSkipDocument(SolrMockSearchIndex):
    method prepare_text (line 43) | def prepare_text(self, obj):
  class SolrMockOverriddenFieldNameSearchIndex (line 49) | class SolrMockOverriddenFieldNameSearchIndex(indexes.SearchIndex, indexe...
    method prepare_today (line 57) | def prepare_today(self, obj):
    method get_model (line 60) | def get_model(self):
  class SolrMaintainTypeMockSearchIndex (line 64) | class SolrMaintainTypeMockSearchIndex(indexes.SearchIndex, indexes.Index...
    method prepare_month (line 69) | def prepare_month(self, obj):
    method get_model (line 72) | def get_model(self):
  class SolrMockModelSearchIndex (line 76) | class SolrMockModelSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 81) | def get_model(self):
  class SolrAnotherMockModelSearchIndex (line 85) | class SolrAnotherMockModelSearchIndex(indexes.SearchIndex, indexes.Index...
    method get_model (line 90) | def get_model(self):
    method prepare_text (line 93) | def prepare_text(self, obj):
  class SolrBoostMockSearchIndex (line 97) | class SolrBoostMockSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 107) | def get_model(self):
  class SolrRoundTripSearchIndex (line 111) | class SolrRoundTripSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 123) | def get_model(self):
    method prepare (line 126) | def prepare(self, obj):
  class SolrComplexFacetsMockSearchIndex (line 145) | class SolrComplexFacetsMockSearchIndex(indexes.SearchIndex, indexes.Inde...
    method get_model (line 156) | def get_model(self):
  class SolrAutocompleteMockModelSearchIndex (line 160) | class SolrAutocompleteMockModelSearchIndex(indexes.SearchIndex, indexes....
    method get_model (line 167) | def get_model(self):
  class SolrSpatialSearchIndex (line 171) | class SolrSpatialSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method prepare_location (line 175) | def prepare_location(self, obj):
    method get_model (line 178) | def get_model(self):
  class SolrQuotingMockSearchIndex (line 182) | class SolrQuotingMockSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 185) | def get_model(self):
    method prepare_text (line 188) | def prepare_text(self, obj):
  class SolrSearchBackendTestCase (line 192) | class SolrSearchBackendTestCase(TestCase):
    method setUp (line 193) | def setUp(self):
    method tearDown (line 221) | def tearDown(self):
    method test_non_silent (line 225) | def test_non_silent(self):
    method test_update (line 254) | def test_update(self):
    method test_update_with_SkipDocument_raised (line 295) | def test_update_with_SkipDocument_raised(self):
    method test_remove (line 307) | def test_remove(self):
    method test_clear (line 340) | def test_clear(self):
    method test_alternate_index_fieldname (line 362) | def test_alternate_index_fieldname(self):
    method test_search (line 386) | def test_search(self):
    method test_spelling (line 540) | def test_spelling(self):
    method test_spatial_search_parameters (line 550) | def test_spatial_search_parameters(self):
    method test_altparser_query (line 566) | def test_altparser_query(self):
    method test_raw_query (line 602) | def test_raw_query(self):
    method test_altparser_quoting (line 613) | def test_altparser_quoting(self):
    method test_more_like_this (line 625) | def test_more_like_this(self):
    method test_build_schema (line 640) | def test_build_schema(self):
    method test_verify_type (line 797) | def test_verify_type(self):
  class CaptureHandler (line 813) | class CaptureHandler(std_logging.Handler):
    method emit (line 816) | def emit(self, record):
  class FailedSolrSearchBackendTestCase (line 822) | class FailedSolrSearchBackendTestCase(TestCase):
    method test_all_cases (line 823) | def test_all_cases(self, mock_send_request, mock_log):
  class LiveSolrSearchQueryTestCase (line 860) | class LiveSolrSearchQueryTestCase(TestCase):
    method setUp (line 863) | def setUp(self):
    method tearDown (line 881) | def tearDown(self):
    method test_get_spelling (line 885) | def test_get_spelling(self):
    method test_log_query (line 896) | def test_log_query(self):
  class LiveSolrSearchQuerySetTestCase (line 930) | class LiveSolrSearchQuerySetTestCase(TestCase):
    method setUpClass (line 936) | def setUpClass(cls):
    method tearDownClass (line 941) | def tearDownClass(cls):
    method setUp (line 945) | def setUp(self):
    method tearDown (line 969) | def tearDown(self):
    method test_load_all (line 974) | def test_load_all(self):
    method test_iter (line 986) | def test_iter(self):
    method test_slice (line 994) | def test_slice(self):
    method test_values_list_slice (line 1010) | def test_values_list_slice(self):
    method test_count (line 1031) | def test_count(self):
    method test_manual_iter (line 1042) | def test_manual_iter(self):
    method test_fill_cache (line 1051) | def test_fill_cache(self):
    method test_cache_is_full (line 1068) | def test_cache_is_full(self):
    method test___and__ (line 1078) | def test___and__(self):
    method test___or__ (line 1101) | def test___or__(self):
    method test_auto_query (line 1124) | def test_auto_query(self):
    method test_query__in (line 1142) | def test_query__in(self):
    method test_query__in_empty_list (line 1147) | def test_query__in_empty_list(self):
    method test_regression_proper_start_offsets (line 1155) | def test_regression_proper_start_offsets(self):
    method test_regression_raw_search_breaks_slicing (line 1173) | def test_regression_raw_search_breaks_slicing(self):
    method test_related_load_all (line 1186) | def test_related_load_all(self):
    method test_related_load_all_queryset (line 1200) | def test_related_load_all_queryset(self):
    method test_related_iter (line 1219) | def test_related_iter(self):
    method test_related_slice (line 1227) | def test_related_slice(self):
    method test_related_manual_iter (line 1249) | def test_related_manual_iter(self):
    method test_related_fill_cache (line 1257) | def test_related_fill_cache(self):
    method test_related_cache_is_full (line 1274) | def test_related_cache_is_full(self):
    method test_quotes_regression (line 1284) | def test_quotes_regression(self):
    method test_query_generation (line 1334) | def test_query_generation(self):
    method test_result_class (line 1342) | def test_result_class(self):
  class LiveSolrMoreLikeThisTestCase (line 1356) | class LiveSolrMoreLikeThisTestCase(TestCase):
    method setUp (line 1359) | def setUp(self):
    method tearDown (line 1377) | def tearDown(self):
    method test_more_like_this (line 1382) | def test_more_like_this(self):
    method test_more_like_this_defer (line 1427) | def test_more_like_this_defer(self):
    method test_more_like_this_custom_result_class (line 1435) | def test_more_like_this_custom_result_class(self):
  class LiveSolrAutocompleteTestCase (line 1443) | class LiveSolrAutocompleteTestCase(TestCase):
    method setUp (line 1446) | def setUp(self):
    method tearDown (line 1463) | def tearDown(self):
    method test_autocomplete (line 1468) | def test_autocomplete(self):
  class LiveSolrRoundTripTestCase (line 1505) | class LiveSolrRoundTripTestCase(TestCase):
    method setUp (line 1506) | def setUp(self):
    method tearDown (line 1527) | def tearDown(self):
    method test_round_trip (line 1532) | def test_round_trip(self):
  class LiveSolrPickleTestCase (line 1553) | class LiveSolrPickleTestCase(TestCase):
    method setUp (line 1556) | def setUp(self):
    method tearDown (line 1575) | def tearDown(self):
    method test_pickling (line 1580) | def test_pickling(self):
  class SolrBoostBackendTestCase (line 1593) | class SolrBoostBackendTestCase(TestCase):
    method setUp (line 1594) | def setUp(self):
    method tearDown (line 1625) | def tearDown(self):
    method test_boost (line 1629) | def test_boost(self):
  class LiveSolrContentExtractionTestCase (line 1652) | class LiveSolrContentExtractionTestCase(TestCase):
    method setUp (line 1653) | def setUp(self):
    method test_content_extraction (line 1658) | def test_content_extraction(self):

FILE: test_haystack/solr_tests/test_solr_management_commands.py
  class SolrMockSearchIndex (line 20) | class SolrMockSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 25) | def get_model(self):
    method get_updated_field (line 28) | def get_updated_field(self):
  class SolrMockTagSearchIndex (line 32) | class SolrMockTagSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 35) | def get_model(self):
  class SolrMockSecretKeySearchIndex (line 39) | class SolrMockSecretKeySearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 42) | def get_model(self):
  class ManagementCommandTestCase (line 46) | class ManagementCommandTestCase(TestCase):
    method setUp (line 49) | def setUp(self):
    method tearDown (line 60) | def tearDown(self):
    method verify_indexed_documents (line 64) | def verify_indexed_documents(self):
    method test_basic_commands (line 78) | def test_basic_commands(self):
    method test_remove (line 100) | def test_remove(self):
    method test_age (line 127) | def test_age(self):
    method test_age_with_time_zones (line 144) | def test_age_with_time_zones(self):
    method test_dates (line 161) | def test_dates(self):
    method test_multiprocessing (line 191) | def test_multiprocessing(self):
    method test_build_schema_wrong_backend (line 204) | def test_build_schema_wrong_backend(self):
    method test_build_schema (line 216) | def test_build_schema(self):
  class AppModelManagementCommandTestCase (line 287) | class AppModelManagementCommandTestCase(TestCase):
    method setUp (line 290) | def setUp(self):
    method tearDown (line 302) | def tearDown(self):
    method test_app_model_variations (line 306) | def test_app_model_variations(self):

FILE: test_haystack/solr_tests/test_solr_query.py
  class SolrSearchQueryTestCase (line 13) | class SolrSearchQueryTestCase(TestCase):
    method setUp (line 16) | def setUp(self):
    method test_build_query_all (line 20) | def test_build_query_all(self):
    method test_build_query_single_word (line 23) | def test_build_query_single_word(self):
    method test_build_query_boolean (line 27) | def test_build_query_boolean(self):
    method test_build_query_datetime (line 31) | def test_build_query_datetime(self):
    method test_build_query_multiple_words_and (line 35) | def test_build_query_multiple_words_and(self):
    method test_build_query_multiple_words_not (line 40) | def test_build_query_multiple_words_not(self):
    method test_build_query_multiple_words_or (line 45) | def test_build_query_multiple_words_or(self):
    method test_build_query_multiple_words_mixed (line 50) | def test_build_query_multiple_words_mixed(self):
    method test_build_query_phrase (line 58) | def test_build_query_phrase(self):
    method test_build_query_boost (line 67) | def test_build_query_boost(self):
    method test_correct_exact (line 72) | def test_correct_exact(self):
    method test_build_query_multiple_filter_types (line 76) | def test_build_query_multiple_filter_types(self):
    method test_build_complex_altparser_query (line 89) | def test_build_complex_altparser_query(self):
    method test_build_query_multiple_filter_types_with_datetimes (line 106) | def test_build_query_multiple_filter_types_with_datetimes(self):
    method test_build_query_in_filter_multiple_words (line 119) | def test_build_query_in_filter_multiple_words(self):
    method test_build_query_in_filter_datetime (line 127) | def test_build_query_in_filter_datetime(self):
    method test_build_query_in_with_set (line 134) | def test_build_query_in_with_set(self):
    method test_build_query_with_contains (line 150) | def test_build_query_with_contains(self):
    method test_build_query_with_endswith (line 155) | def test_build_query_with_endswith(self):
    method test_build_query_wildcard_filter_types (line 160) | def test_build_query_wildcard_filter_types(self):
    method test_build_query_fuzzy_filter_types (line 165) | def test_build_query_fuzzy_filter_types(self):
    method test_clean (line 170) | def test_clean(self):
    method test_build_query_with_models (line 184) | def test_build_query_with_models(self):
    method test_set_result_class (line 192) | def test_set_result_class(self):
    method test_in_filter_values_list (line 207) | def test_in_filter_values_list(self):
    method test_narrow_sq (line 212) | def test_narrow_sq(self):
    method test_query__in (line 218) | def test_query__in(self):
    method test_query__in_empty_list (line 222) | def test_query__in_empty_list(self):

FILE: test_haystack/solr_tests/test_templatetags.py
  class MoreLikeThisTagTestCase (line 11) | class MoreLikeThisTagTestCase(TestCase):
    method render (line 14) | def render(self, template, context):
    method test_more_like_this_without_limit (line 20) | def test_more_like_this_without_limit(self, mock_sqs):
    method test_more_like_this_with_limit (line 32) | def test_more_like_this_with_limit(self, mock_sqs):
    method test_more_like_this_for_model (line 54) | def test_more_like_this_for_model(self, mock_sqs):

FILE: test_haystack/spatial/__init__.py
  function setup (line 4) | def setup():

FILE: test_haystack/spatial/models.py
  class Checkin (line 6) | class Checkin(models.Model):
    class Meta (line 21) | class Meta:
    method get_location (line 25) | def get_location(self):

FILE: test_haystack/spatial/search_indexes.py
  class CheckinSearchIndex (line 6) | class CheckinSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 15) | def get_model(self):
    method prepare_text (line 18) | def prepare_text(self, obj):

FILE: test_haystack/spatial/test_spatial.py
  class SpatialUtilitiesTestCase (line 18) | class SpatialUtilitiesTestCase(TestCase):
    method test_ensure_geometry (line 19) | def test_ensure_geometry(self):
    method test_ensure_point (line 29) | def test_ensure_point(self):
    method test_ensure_wgs84 (line 42) | def test_ensure_wgs84(self):
    method test_ensure_distance (line 67) | def test_ensure_distance(self):
    method test_generate_bounding_box (line 73) | def test_generate_bounding_box(self):
    method test_generate_bounding_box_crossing_line_date (line 86) | def test_generate_bounding_box_crossing_line_date(self):
  class SpatialSolrTestCase (line 100) | class SpatialSolrTestCase(TestCase):
    method setUp (line 104) | def setUp(self):
    method tearDown (line 119) | def tearDown(self):
    method test_indexing (line 123) | def test_indexing(self):
    method test_within (line 143) | def test_within(self):
    method test_dwithin (line 156) | def test_dwithin(self):
    method test_distance_added (line 168) | def test_distance_added(self):
    method test_order_by_distance (line 191) | def test_order_by_distance(self):
    method test_complex (line 232) | def test_complex(self):

FILE: test_haystack/test_altered_internal_names.py
  class MockModelSearchIndex (line 12) | class MockModelSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 17) | def get_model(self):
  class AlteredInternalNamesTestCase (line 21) | class AlteredInternalNamesTestCase(TestCase):
    method setUp (line 22) | def setUp(self):
    method tearDown (line 35) | def tearDown(self):
    method test_altered_names (line 42) | def test_altered_names(self):
    method test_solr_schema (line 52) | def test_solr_schema(self):

FILE: test_haystack/test_app_loading.py
  class AppLoadingTests (line 9) | class AppLoadingTests(TestCase):
    method test_load_apps (line 10) | def test_load_apps(self):
    method test_get_app_modules (line 22) | def test_get_app_modules(self):
    method test_get_models_all (line 29) | def test_get_models_all(self):
    method test_get_models_specific (line 33) | def test_get_models_specific(self):
    method test_hierarchal_app_get_models (line 40) | def test_hierarchal_app_get_models(self):
    method test_hierarchal_app_specific_model (line 53) | def test_hierarchal_app_specific_model(self):
  class AppWithoutModelsTests (line 64) | class AppWithoutModelsTests(TestCase):
    method test_simple_view (line 67) | def test_simple_view(self):

FILE: test_haystack/test_app_using_appconfig/apps.py
  class SimpleTestAppConfig (line 4) | class SimpleTestAppConfig(AppConfig):

FILE: test_haystack/test_app_using_appconfig/migrations/0001_initial.py
  class Migration (line 4) | class Migration(migrations.Migration):

FILE: test_haystack/test_app_using_appconfig/models.py
  class MicroBlogPost (line 4) | class MicroBlogPost(Model):

FILE: test_haystack/test_app_using_appconfig/search_indexes.py
  class MicroBlogSearchIndex (line 6) | class MicroBlogSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 9) | def get_model(self):

FILE: test_haystack/test_app_using_appconfig/tests.py
  class AppConfigTests (line 6) | class AppConfigTests(TestCase):
    method test_index_collection (line 7) | def test_index_collection(self):

FILE: test_haystack/test_app_with_hierarchy/contrib/django/hierarchal_app_django/models.py
  class HierarchalAppModel (line 4) | class HierarchalAppModel(Model):
  class HierarchalAppSecondModel (line 8) | class HierarchalAppSecondModel(Model):

FILE: test_haystack/test_app_without_models/views.py
  function simple_view (line 4) | def simple_view(request):

FILE: test_haystack/test_backends.py
  class LoadBackendTestCase (line 9) | class LoadBackendTestCase(TestCase):
    method test_load_solr (line 10) | def test_load_solr(self):
    method test_load_whoosh (line 22) | def test_load_whoosh(self):
    method test_load_elasticsearch (line 34) | def test_load_elasticsearch(self):
    method test_load_simple (line 48) | def test_load_simple(self):
    method test_load_nonexistent (line 52) | def test_load_nonexistent(self):

FILE: test_haystack/test_discovery.py
  class ManualDiscoveryTestCase (line 10) | class ManualDiscoveryTestCase(TestCase):
    method test_discovery (line 11) | def test_discovery(self):
  class AutomaticDiscoveryTestCase (line 29) | class AutomaticDiscoveryTestCase(TestCase):
    method test_discovery (line 30) | def test_discovery(self):

FILE: test_haystack/test_fields.py
  class SearchFieldTestCase (line 19) | class SearchFieldTestCase(TestCase):
    method test_get_iterable_objects_with_none (line 20) | def test_get_iterable_objects_with_none(self):
    method test_get_iterable_objects_with_single_non_iterable_object (line 23) | def test_get_iterable_objects_with_single_non_iterable_object(self):
    method test_get_iterable_objects_with_list_stays_the_same (line 29) | def test_get_iterable_objects_with_list_stays_the_same(self):
    method test_get_iterable_objects_with_django_manytomany_rel (line 34) | def test_get_iterable_objects_with_django_manytomany_rel(self):
    method test_get_iterable_objects_with_django_onetomany_rel (line 46) | def test_get_iterable_objects_with_django_onetomany_rel(self):
    method test_resolve_attributes_lookup_with_field_that_points_to_none (line 56) | def test_resolve_attributes_lookup_with_field_that_points_to_none(self):
    method test_resolve_attributes_lookup_with_field_that_points_to_none_but_is_allowed_to_be_null (line 69) | def test_resolve_attributes_lookup_with_field_that_points_to_none_but_...
    method test_resolve_attributes_lookup_with_field_that_points_to_none_but_has_default (line 81) | def test_resolve_attributes_lookup_with_field_that_points_to_none_but_...
    method test_resolve_attributes_lookup_with_deep_relationship (line 94) | def test_resolve_attributes_lookup_with_deep_relationship(self):
    method test_resolve_attributes_lookup_with_deep_relationship_through_m2m (line 106) | def test_resolve_attributes_lookup_with_deep_relationship_through_m2m(...
    method test_prepare_with_null_django_onetomany_rel (line 133) | def test_prepare_with_null_django_onetomany_rel(self):
  class CharFieldTestCase (line 142) | class CharFieldTestCase(TestCase):
    method test_init (line 143) | def test_init(self):
    method test_prepare (line 149) | def test_prepare(self):
  class NgramFieldTestCase (line 209) | class NgramFieldTestCase(TestCase):
    method test_init (line 210) | def test_init(self):
    method test_prepare (line 218) | def test_prepare(self):
  class EdgeNgramFieldTestCase (line 268) | class EdgeNgramFieldTestCase(TestCase):
    method test_init (line 269) | def test_init(self):
    method test_prepare (line 277) | def test_prepare(self):
  class IntegerFieldTestCase (line 327) | class IntegerFieldTestCase(TestCase):
    method test_init (line 328) | def test_init(self):
    method test_prepare (line 334) | def test_prepare(self):
  class FloatFieldTestCase (line 363) | class FloatFieldTestCase(TestCase):
    method test_init (line 364) | def test_init(self):
    method test_prepare (line 370) | def test_prepare(self):
  class DecimalFieldTestCase (line 390) | class DecimalFieldTestCase(TestCase):
    method test_init (line 391) | def test_init(self):
    method test_prepare (line 397) | def test_prepare(self):
  class BooleanFieldTestCase (line 417) | class BooleanFieldTestCase(TestCase):
    method test_init (line 418) | def test_init(self):
    method test_prepare (line 424) | def test_prepare(self):
  class DateFieldTestCase (line 444) | class DateFieldTestCase(TestCase):
    method test_init (line 445) | def test_init(self):
    method test_convert (line 451) | def test_convert(self):
    method test_prepare (line 455) | def test_prepare(self):
    method test_prepare_from_string (line 468) | def test_prepare_from_string(self):
  class DateTimeFieldTestCase (line 476) | class DateTimeFieldTestCase(TestCase):
    method test_init (line 477) | def test_init(self):
    method test_convert (line 483) | def test_convert(self):
    method test_prepare (line 491) | def test_prepare(self):
    method test_prepare_from_string (line 506) | def test_prepare_from_string(self):
  class MultiValueFieldTestCase (line 516) | class MultiValueFieldTestCase(TestCase):
    method test_init (line 517) | def test_init(self):
    method test_prepare (line 525) | def test_prepare(self):
    method test_convert_with_single_string (line 544) | def test_convert_with_single_string(self):
    method test_convert_with_single_int (line 549) | def test_convert_with_single_int(self):
    method test_convert_with_list_of_strings (line 554) | def test_convert_with_list_of_strings(self):
    method test_convert_with_list_of_ints (line 561) | def test_convert_with_list_of_ints(self):
  class CharFieldWithTemplateTestCase (line 567) | class CharFieldWithTemplateTestCase(TestCase):
    method test_init (line 568) | def test_init(self):
    method test_prepare (line 586) | def test_prepare(self):
  class FacetFieldTestCase (line 620) | class FacetFieldTestCase(TestCase):
    method test_init (line 621) | def test_init(self):
  class FacetCharFieldTestCase (line 636) | class FacetCharFieldTestCase(TestCase):
    method test_init (line 637) | def test_init(self):
    method test_prepare (line 648) | def test_prepare(self):
  class FacetIntegerFieldTestCase (line 656) | class FacetIntegerFieldTestCase(TestCase):
    method test_init (line 657) | def test_init(self):
    method test_prepare (line 668) | def test_prepare(self):
  class FacetFloatFieldTestCase (line 677) | class FacetFloatFieldTestCase(TestCase):
    method test_init (line 678) | def test_init(self):
    method test_prepare (line 689) | def test_prepare(self):
  class FacetBooleanFieldTestCase (line 698) | class FacetBooleanFieldTestCase(TestCase):
    method test_init (line 699) | def test_init(self):
    method test_prepare (line 710) | def test_prepare(self):
  class FacetDateFieldTestCase (line 719) | class FacetDateFieldTestCase(TestCase):
    method test_init (line 720) | def test_init(self):
    method test_prepare (line 731) | def test_prepare(self):
  class FacetDateTimeFieldTestCase (line 740) | class FacetDateTimeFieldTestCase(TestCase):
    method test_init (line 741) | def test_init(self):
    method test_prepare (line 752) | def test_prepare(self):
  class FacetMultiValueFieldTestCase (line 763) | class FacetMultiValueFieldTestCase(TestCase):
    method test_init (line 764) | def test_init(self):
    method test_prepare (line 775) | def test_prepare(self):

FILE: test_haystack/test_forms.py
  class SearchFormTestCase (line 14) | class SearchFormTestCase(TestCase):
    method setUp (line 15) | def setUp(self):
    method tearDown (line 33) | def tearDown(self):
    method test_unbound (line 37) | def test_unbound(self):
  class ModelSearchFormTestCase (line 48) | class ModelSearchFormTestCase(TestCase):
    method setUp (line 49) | def setUp(self):
    method tearDown (line 66) | def tearDown(self):
    method test_models_regression_1 (line 70) | def test_models_regression_1(self):
    method test_model_choices (line 90) | def test_model_choices(self):
    method test_model_choices_unicode (line 97) | def test_model_choices_unicode(self):
  class FacetedSearchFormTestCase (line 107) | class FacetedSearchFormTestCase(TestCase):
    method setUp (line 108) | def setUp(self):
    method tearDown (line 125) | def tearDown(self):
    method test_init_with_selected_facets (line 129) | def test_init_with_selected_facets(self):
    method test_search (line 156) | def test_search(self):

FILE: test_haystack/test_generic_views.py
  class GenericSearchViewsTestCase (line 8) | class GenericSearchViewsTestCase(TestCase):
    method setUp (line 11) | def setUp(self):
    method test_get_form_kwargs (line 16) | def test_get_form_kwargs(self):
    method test_search_view_response (line 27) | def test_search_view_response(self):
    method test_search_view_form_valid (line 38) | def test_search_view_form_valid(self):
    method test_search_view_form_invalid (line 50) | def test_search_view_form_invalid(self):
    method get_request (line 62) | def get_request(self, url, method="get", data=None, **kwargs):

FILE: test_haystack/test_indexes.py
  class BadSearchIndex1 (line 21) | class BadSearchIndex1(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 25) | def get_model(self):
  class BadSearchIndex2 (line 29) | class BadSearchIndex2(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 35) | def get_model(self):
  class GoodMockSearchIndex (line 39) | class GoodMockSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 45) | def get_model(self):
  class AltGoodMockSearchIndex (line 50) | class AltGoodMockSearchIndex(GoodMockSearchIndex, indexes.Indexable):
    method get_model (line 53) | def get_model(self):
  class GoodCustomMockSearchIndex (line 57) | class GoodCustomMockSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method prepare (line 64) | def prepare(self, obj):
    method prepare_author (line 69) | def prepare_author(self, obj):
    method load_all_queryset (line 72) | def load_all_queryset(self):
    method get_model (line 75) | def get_model(self):
    method index_queryset (line 78) | def index_queryset(self, using=None):
    method read_queryset (line 81) | def read_queryset(self, using=None):
    method build_queryset (line 84) | def build_queryset(self, start_date=None, end_date=None):
  class GoodNullableMockSearchIndex (line 88) | class GoodNullableMockSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 92) | def get_model(self):
  class GoodOverriddenFieldNameMockSearchIndex (line 96) | class GoodOverriddenFieldNameMockSearchIndex(indexes.SearchIndex, indexe...
    method get_model (line 103) | def get_model(self):
  class GoodFacetedMockSearchIndex (line 107) | class GoodFacetedMockSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 114) | def get_model(self):
    method prepare_author (line 117) | def prepare_author(self, obj):
    method prepare_pub_date_exact (line 120) | def prepare_pub_date_exact(self, obj):
  class MROFieldsSearchIndexA (line 124) | class MROFieldsSearchIndexA(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 127) | def get_model(self):
  class MROFieldsSearchIndexB (line 131) | class MROFieldsSearchIndexB(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 134) | def get_model(self):
  class MROFieldsSearchChild (line 138) | class MROFieldsSearchChild(MROFieldsSearchIndexA, MROFieldsSearchIndexB):
  class ModelWithManyToManyFieldAndAttributeLookupSearchIndex (line 142) | class ModelWithManyToManyFieldAndAttributeLookupSearchIndex(
    method get_model (line 148) | def get_model(self):
  class SearchIndexTestCase (line 152) | class SearchIndexTestCase(TestCase):
    method setUp (line 155) | def setUp(self):
    method tearDown (line 199) | def tearDown(self):
    method test_no_contentfield_present (line 203) | def test_no_contentfield_present(self):
    method test_too_many_contentfields_present (line 206) | def test_too_many_contentfields_present(self):
    method test_contentfield_present (line 209) | def test_contentfield_present(self):
    method test_proper_fields (line 215) | def test_proper_fields(self):
    method test_index_queryset (line 246) | def test_index_queryset(self):
    method test_read_queryset (line 249) | def test_read_queryset(self):
    method test_build_queryset (line 252) | def test_build_queryset(self):
    method test_prepare (line 283) | def test_prepare(self):
    method test_custom_prepare (line 295) | def test_custom_prepare(self):
    method test_thread_safety (line 337) | def test_thread_safety(self):
    method test_custom_prepare_author (line 385) | def test_custom_prepare_author(self):
    method test_custom_model_attr (line 429) | def test_custom_model_attr(self):
    method test_custom_index_fieldname (line 472) | def test_custom_index_fieldname(self):
    method test_get_content_field (line 487) | def test_get_content_field(self):
    method test_update (line 490) | def test_update(self):
    method test_update_object (line 497) | def test_update_object(self):
    method test_remove_object (line 513) | def test_remove_object(self):
    method test_clear (line 553) | def test_clear(self):
    method test_reindex (line 560) | def test_reindex(self):
    method test_inheritance (line 568) | def test_inheritance(self):
    method test_proper_field_resolution (line 586) | def test_proper_field_resolution(self):
    method test_load_all_queryset (line 600) | def test_load_all_queryset(self):
    method test_nullable (line 603) | def test_nullable(self):
    method test_custom_facet_fields (line 622) | def test_custom_facet_fields(self):
  class BasicModelSearchIndex (line 663) | class BasicModelSearchIndex(indexes.ModelSearchIndex, indexes.Indexable):
    class Meta (line 664) | class Meta:
  class FieldsModelSearchIndex (line 668) | class FieldsModelSearchIndex(indexes.ModelSearchIndex, indexes.Indexable):
    class Meta (line 669) | class Meta:
  class ExcludesModelSearchIndex (line 674) | class ExcludesModelSearchIndex(indexes.ModelSearchIndex, indexes.Indexab...
    class Meta (line 675) | class Meta:
  class FieldsWithOverrideModelSearchIndex (line 680) | class FieldsWithOverrideModelSearchIndex(indexes.ModelSearchIndex, index...
    class Meta (line 683) | class Meta:
    method get_index_fieldname (line 687) | def get_index_fieldname(self, f):
  class YetAnotherBasicModelSearchIndex (line 694) | class YetAnotherBasicModelSearchIndex(indexes.ModelSearchIndex, indexes....
    class Meta (line 697) | class Meta:
  class PolymorphicModelSearchIndex (line 701) | class PolymorphicModelSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 708) | def get_model(self):
    method prepare (line 711) | def prepare(self, obj):
    method index_queryset (line 717) | def index_queryset(self, using=None):
  class GhettoAFifthMockModelSearchIndex (line 721) | class GhettoAFifthMockModelSearchIndex(indexes.SearchIndex, indexes.Inde...
    method get_model (line 724) | def get_model(self):
    method index_queryset (line 727) | def index_queryset(self, using=None):
    method read_queryset (line 731) | def read_queryset(self, using=None):
  class ReadQuerySetTestSearchIndex (line 735) | class ReadQuerySetTestSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 738) | def get_model(self):
    method read_queryset (line 741) | def read_queryset(self, using=None):
  class TextReadQuerySetTestSearchIndex (line 745) | class TextReadQuerySetTestSearchIndex(indexes.SearchIndex, indexes.Index...
    method get_model (line 748) | def get_model(self):
    method read_queryset (line 751) | def read_queryset(self, using=None):
  class ModelWithManyToManyFieldModelSearchIndex (line 755) | class ModelWithManyToManyFieldModelSearchIndex(indexes.ModelSearchIndex):
    method get_model (line 756) | def get_model(self):
  class ModelSearchIndexTestCase (line 760) | class ModelSearchIndexTestCase(TestCase):
    method setUp (line 761) | def setUp(self):
    method test_basic (line 771) | def test_basic(self):
    method test_fields (line 790) | def test_fields(self):
    method test_excludes (line 799) | def test_excludes(self):
    method test_fields_with_override (line 807) | def test_fields_with_override(self):
    method test_overriding_field_name_with_get_index_fieldname (line 816) | def test_overriding_field_name_with_get_index_fieldname(self):
    method test_float_integer_fields (line 820) | def test_float_integer_fields(self):
  class ModelWithManyToManyFieldAndAttributeLookupSearchIndexTestCase (line 856) | class ModelWithManyToManyFieldAndAttributeLookupSearchIndexTestCase(Test...
    method test_full_prepare (line 857) | def test_full_prepare(self):
  class PolymorphicModelTestCase (line 880) | class PolymorphicModelTestCase(TestCase):
    method test_prepare_with_polymorphic (line 881) | def test_prepare_with_polymorphic(self):

FILE: test_haystack/test_inputs.py
  class InputTestCase (line 6) | class InputTestCase(TestCase):
    method setUp (line 7) | def setUp(self):
    method test_raw_init (line 11) | def test_raw_init(self):
    method test_raw_prepare (line 22) | def test_raw_prepare(self):
    method test_clean_init (line 26) | def test_clean_init(self):
    method test_clean_prepare (line 31) | def test_clean_prepare(self):
    method test_exact_init (line 35) | def test_exact_init(self):
    method test_exact_prepare (line 40) | def test_exact_prepare(self):
    method test_not_init (line 48) | def test_not_init(self):
    method test_not_prepare (line 53) | def test_not_prepare(self):
    method test_autoquery_init (line 57) | def test_autoquery_init(self):
    method test_autoquery_prepare (line 62) | def test_autoquery_prepare(self):
    method test_altparser_init (line 68) | def test_altparser_init(self):
    method test_altparser_prepare (line 81) | def test_altparser_prepare(self):

FILE: test_haystack/test_loading.py
  class ConnectionHandlerTestCase (line 18) | class ConnectionHandlerTestCase(TestCase):
    method test_init (line 19) | def test_init(self):
    method test_get_item (line 42) | def test_get_item(self):
    method test_get_unified_index (line 79) | def test_get_unified_index(self):
  class ConnectionRouterTestCase (line 93) | class ConnectionRouterTestCase(TestCase):
    method test_init (line 95) | def test_init(self):
    method test_router_override1 (line 104) | def test_router_override1(self):
    method test_router_override2 (line 112) | def test_router_override2(self):
    method test_router_override3 (line 125) | def test_router_override3(self):
    method test_actions1 (line 136) | def test_actions1(self):
    method test_actions2 (line 148) | def test_actions2(self):
    method test_actions3 (line 160) | def test_actions3(self):
    method test_actions4 (line 177) | def test_actions4(self):
  class MockNotAModel (line 184) | class MockNotAModel(object):
  class FakeSearchIndex (line 188) | class FakeSearchIndex(indexes.BasicSearchIndex, indexes.Indexable):
    method update_object (line 189) | def update_object(self, instance, **kwargs):
    method remove_object (line 195) | def remove_object(self, instance, **kwargs):
    method get_model (line 201) | def get_model(self):
  class InvalidSearchIndex (line 205) | class InvalidSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 208) | def get_model(self):
  class BasicMockModelSearchIndex (line 212) | class BasicMockModelSearchIndex(indexes.BasicSearchIndex, indexes.Indexa...
    method get_model (line 213) | def get_model(self):
  class BasicAnotherMockModelSearchIndex (line 217) | class BasicAnotherMockModelSearchIndex(indexes.BasicSearchIndex, indexes...
    method get_model (line 218) | def get_model(self):
  class ValidSearchIndex (line 222) | class ValidSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 227) | def get_model(self):
  class AlternateValidSearchIndex (line 231) | class AlternateValidSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 236) | def get_model(self):
  class ExplicitFacetSearchIndex (line 240) | class ExplicitFacetSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 247) | def get_model(self):
  class MultiValueValidSearchIndex (line 251) | class MultiValueValidSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 256) | def get_model(self):
  class UnifiedIndexTestCase (line 260) | class UnifiedIndexTestCase(TestCase):
    method setUp (line 261) | def setUp(self):
    method test_get_index (line 266) | def test_get_index(self):
    method test_get_indexed_models (line 278) | def test_get_indexed_models(self):
    method test_get_indexes (line 286) | def test_get_indexes(self):
    method test_all_searchfields (line 297) | def test_all_searchfields(self):
    method test_get_index_fieldname (line 366) | def test_get_index_fieldname(self):
    method test_basic_get_facet_field_name (line 388) | def test_basic_get_facet_field_name(self):
    method test_more_advanced_get_facet_field_name (line 407) | def test_more_advanced_get_facet_field_name(self):

FILE: test_haystack/test_management_commands.py
  class CoreManagementCommandsTestCase (line 10) | class CoreManagementCommandsTestCase(TestCase):
    method test_update_index_default_using (line 12) | def test_update_index_default_using(self, m):
    method test_update_index_using (line 19) | def test_update_index_using(self, m):
    method test_clear_index_default_using (line 30) | def test_clear_index_default_using(self, m):
    method test_clear_index_using (line 38) | def test_clear_index_using(self, m):
    method test_rebuild_index_default_using (line 53) | def test_rebuild_index_default_using(self, m1, m2):
    method test_rebuild_index_using (line 65) | def test_rebuild_index_using(self, m1, m2):
    method test_rebuild_index (line 74) | def test_rebuild_index(self, mock_handle_clear, mock_handle_update):
    method test_rebuild_index_nocommit (line 82) | def test_rebuild_index_nocommit(self, *mocks):
    method test_rebuild_index_nocommit (line 95) | def test_rebuild_index_nocommit(self, update_mock, clear_mock):

FILE: test_haystack/test_managers.py
  class CustomManager (line 21) | class CustomManager(SearchIndexManager):
    method filter (line 22) | def filter(self, *args, **kwargs):
  class CustomMockModelIndexWithObjectsManager (line 26) | class CustomMockModelIndexWithObjectsManager(BasicMockModelSearchIndex):
  class CustomMockModelIndexWithAnotherManager (line 30) | class CustomMockModelIndexWithAnotherManager(BasicMockModelSearchIndex):
  class ManagerTestCase (line 34) | class ManagerTestCase(TestCase):
    method setUp (line 37) | def setUp(self):
    method test_queryset (line 50) | def test_queryset(self):
    method test_none (line 53) | def test_none(self):
    method test_filter (line 58) | def test_filter(self):
    method test_exclude (line 63) | def test_exclude(self):
    method test_filter_and (line 68) | def test_filter_and(self):
    method test_filter_or (line 73) | def test_filter_or(self):
    method test_order_by (line 78) | def test_order_by(self):
    method test_order_by_distance (line 83) | def test_order_by_distance(self):
    method test_highlight (line 100) | def test_highlight(self):
    method test_boost (line 104) | def test_boost(self):
    method test_facets (line 109) | def test_facets(self):
    method test_within (line 114) | def test_within(self):
    method test_dwithin (line 130) | def test_dwithin(self):
    method test_distance (line 145) | def test_distance(self):
    method test_date_facets (line 158) | def test_date_facets(self):
    method test_query_facets (line 168) | def test_query_facets(self):
    method test_narrow (line 173) | def test_narrow(self):
    method test_raw_search (line 178) | def test_raw_search(self):
    method test_load_all (line 181) | def test_load_all(self):
    method test_auto_query (line 188) | def test_auto_query(self):
    method test_autocomplete (line 205) | def test_autocomplete(self):
    method test_count (line 209) | def test_count(self):
    method test_best_match (line 213) | def test_best_match(self):
    method test_latest (line 218) | def test_latest(self):
    method test_more_like_this (line 223) | def test_more_like_this(self):
    method test_facet_counts (line 229) | def test_facet_counts(self):
    method spelling_suggestion (line 232) | def spelling_suggestion(self):
    method test_values (line 238) | def test_values(self):
    method test_valueslist (line 242) | def test_valueslist(self):
  class CustomManagerTestCase (line 247) | class CustomManagerTestCase(TestCase):
    method setUp (line 250) | def setUp(self):
    method test_filter_object_manager (line 256) | def test_filter_object_manager(self):
    method test_filter_another_manager (line 261) | def test_filter_another_manager(self):

FILE: test_haystack/test_models.py
  class CaptureHandler (line 16) | class CaptureHandler(std_logging.Handler):
    method emit (line 19) | def emit(self, record):
  class SearchResultTestCase (line 23) | class SearchResultTestCase(TestCase):
    method setUp (line 26) | def setUp(self):
    method test_init (line 49) | def test_init(self):
    method test_get_additional_fields (line 77) | def test_get_additional_fields(self):
    method test_unicode (line 92) | def test_unicode(self):
    method test_content_type (line 105) | def test_content_type(self):
    method test_stored_fields (line 110) | def test_stored_fields(self):
    method test_missing_object (line 147) | def test_missing_object(self):
    method test_read_queryset (line 177) | def test_read_queryset(self):
    method test_pickling (line 197) | def test_pickling(self):

FILE: test_haystack/test_query.py
  class SQTestCase (line 40) | class SQTestCase(TestCase):
    method test_split_expression (line 41) | def test_split_expression(self):
    method test_repr (line 61) | def test_repr(self):
    method test_simple_nesting (line 69) | def test_simple_nesting(self):
  class BaseSearchQueryTestCase (line 95) | class BaseSearchQueryTestCase(TestCase):
    method setUp (line 98) | def setUp(self):
    method test_get_count (line 102) | def test_get_count(self):
    method test_build_query (line 106) | def test_build_query(self):
    method test_add_filter (line 110) | def test_add_filter(self):
    method test_add_order_by (line 141) | def test_add_order_by(self):
    method test_clear_order_by (line 147) | def test_clear_order_by(self):
    method test_add_model (line 154) | def test_add_model(self):
    method test_set_limits (line 165) | def test_set_limits(self):
    method test_clear_limits (line 173) | def test_clear_limits(self):
    method test_add_boost (line 182) | def test_add_boost(self):
    method test_add_highlight (line 188) | def test_add_highlight(self):
    method test_more_like_this (line 194) | def test_more_like_this(self):
    method test_add_field_facet (line 208) | def test_add_field_facet(self):
    method test_add_date_facet (line 215) | def test_add_date_facet(self):
    method test_add_query_facet (line 258) | def test_add_query_facet(self):
    method test_add_stats (line 270) | def test_add_stats(self):
    method test_add_narrow_query (line 277) | def test_add_narrow_query(self):
    method test_set_result_class (line 284) | def test_set_result_class(self):
    method test_run (line 299) | def test_run(self):
    method test_clone (line 320) | def test_clone(self):
    method test_log_query (line 355) | def test_log_query(self):
  class CharPKMockModelSearchIndex (line 394) | class CharPKMockModelSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 397) | def get_model(self):
  class SimpleMockUUIDModelIndex (line 401) | class SimpleMockUUIDModelIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 404) | def get_model(self):
  class SearchQuerySetTestCase (line 409) | class SearchQuerySetTestCase(TestCase):
    method setUp (line 412) | def setUp(self):
    method tearDown (line 434) | def tearDown(self):
    method test_len (line 439) | def test_len(self):
    method test_repr (line 442) | def test_repr(self):
    method test_iter (line 451) | def test_iter(self):
    method test_slice (line 459) | def test_slice(self):
    method test_manual_iter (line 475) | def test_manual_iter(self):
    method test_cache_is_full (line 548) | def test_cache_is_full(self):
    method test_all (line 558) | def test_all(self):
    method test_filter (line 562) | def test_filter(self):
    method test_exclude (line 567) | def test_exclude(self):
    method test_order_by (line 572) | def test_order_by(self):
    method test_models (line 577) | def test_models(self):
    method test_result_class (line 606) | def test_result_class(self):
    method test_boost (line 621) | def test_boost(self):
    method test_highlight (line 626) | def test_highlight(self):
    method test_spelling_override (line 631) | def test_spelling_override(self):
    method test_spelling_suggestions (line 638) | def test_spelling_suggestions(self):
    method test_raw_search (line 645) | def test_raw_search(self):
    method test_load_all (line 654) | def test_load_all(self):
    method test_load_all_read_queryset (line 689) | def test_load_all_read_queryset(self):
    method test_auto_query (line 726) | def test_auto_query(self):
    method test_count (line 782) | def test_count(self):
    method test_facet_counts (line 785) | def test_facet_counts(self):
    method test_best_match (line 788) | def test_best_match(self):
    method test_latest (line 791) | def test_latest(self):
    method test_more_like_this (line 794) | def test_more_like_this(self):
    method test_facets (line 800) | def test_facets(self):
    method test_date_facets (line 809) | def test_date_facets(self):
    method test_query_facets (line 847) | def test_query_facets(self):
    method test_stats (line 867) | def test_stats(self):
    method test_narrow (line 880) | def test_narrow(self):
    method test_clone (line 885) | def test_clone(self):
    method test_using (line 896) | def test_using(self):
    method test_chaining (line 901) | def test_chaining(self):
    method test_none (line 911) | def test_none(self):
    method test___and__ (line 916) | def test___and__(self):
    method test___or__ (line 924) | def test___or__(self):
    method test_and_or (line 932) | def test_and_or(self):
    method test_or_and (line 949) | def test_or_and(self):
  class ValuesQuerySetTestCase (line 967) | class ValuesQuerySetTestCase(SearchQuerySetTestCase):
    method test_values_sqs (line 968) | def test_values_sqs(self):
    method test_valueslist_sqs (line 976) | def test_valueslist_sqs(self):
  class EmptySearchQuerySetTestCase (line 1000) | class EmptySearchQuerySetTestCase(TestCase):
    method setUp (line 1001) | def setUp(self):
    method test_get_count (line 1005) | def test_get_count(self):
    method test_filter (line 1009) | def test_filter(self):
    method test_exclude (line 1014) | def test_exclude(self):
    method test_slice (line 1019) | def test_slice(self):
    method test_dictionary_lookup (line 1031) | def test_dictionary_lookup(self):
  class PickleSearchQuerySetTestCase (line 1040) | class PickleSearchQuerySetTestCase(TestCase):
    method setUp (line 1043) | def setUp(self):
    method tearDown (line 1063) | def tearDown(self):
    method test_pickling (line 1068) | def test_pickling(self):

FILE: test_haystack/test_templatetags.py
  class BorkHighlighter (line 9) | class BorkHighlighter(Highlighter):
    method render_html (line 10) | def render_html(self, highlight_locations=None, start_offset=None, end...
  class TemplateTagTestCase (line 19) | class TemplateTagTestCase(TestCase):
    method render (line 20) | def render(self, template, context):
  class HighlightTestCase (line 27) | class HighlightTestCase(TemplateTagTestCase):
    method setUp (line 28) | def setUp(self):
    method test_simple (line 52) | def test_simple(self):
    method test_custom (line 81) | def test_custom(self):

FILE: test_haystack/test_utils.py
  class GetIdentifierTestCase (line 14) | class GetIdentifierTestCase(TestCase):
    method test_get_facet_field_name (line 15) | def test_get_facet_field_name(self):
  class GetFacetFieldNameTestCase (line 23) | class GetFacetFieldNameTestCase(TestCase):
    method test_get_identifier (line 26) | def test_get_identifier(self):
    method test_haystack_identifier_method (line 36) | def test_haystack_identifier_method(self):
    method test_haystack_identifier_method_bad_path (line 53) | def test_haystack_identifier_method_bad_path(self):
    method test_haystack_identifier_method_bad_module (line 57) | def test_haystack_identifier_method_bad_module(self):
  class HighlighterTestCase (line 61) | class HighlighterTestCase(TestCase):
    method setUp (line 62) | def setUp(self):
    method test_find_highlightable_words (line 70) | def test_find_highlightable_words(self):
    method test_find_window (line 90) | def test_find_window(self):
    method test_render_html (line 171) | def test_render_html(self):
    method test_highlight (line 254) | def test_highlight(self):
  class LoggingFacadeTestCase (line 312) | class LoggingFacadeTestCase(TestCase):
    method test_everything_noops_if_settings_are_off (line 313) | def test_everything_noops_if_settings_are_off(self):
    method test_uses_provided_logger_if_logging_is_on (line 318) | def test_uses_provided_logger_if_logging_is_on(self):
    method test_uses_provided_logger_by_default (line 326) | def test_uses_provided_logger_by_default(self):

FILE: test_haystack/test_views.py
  class InitialedSearchForm (line 18) | class InitialedSearchForm(SearchForm):
  class BasicMockModelSearchIndex (line 22) | class BasicMockModelSearchIndex(indexes.BasicSearchIndex, indexes.Indexa...
    method get_model (line 23) | def get_model(self):
  class BasicAnotherMockModelSearchIndex (line 27) | class BasicAnotherMockModelSearchIndex(indexes.BasicSearchIndex, indexes...
    method get_model (line 28) | def get_model(self):
  class SearchViewTestCase (line 32) | class SearchViewTestCase(TestCase):
    method setUp (line 35) | def setUp(self):
    method tearDown (line 51) | def tearDown(self):
    method test_search_no_query (line 55) | def test_search_no_query(self):
    method test_search_query (line 59) | def test_search_query(self):
    method test_invalid_page (line 70) | def test_invalid_page(self):
    method test_empty_results (line 76) | def test_empty_results(self):
    method test_initial_data (line 82) | def test_initial_data(self):
    method test_pagination (line 92) | def test_pagination(self):
    method test_thread_safety (line 107) | def test_thread_safety(self):
    method test_spelling (line 144) | def test_spelling(self):
  class ResultsPerPageTestCase (line 175) | class ResultsPerPageTestCase(TestCase):
    method setUp (line 178) | def setUp(self):
    method tearDown (line 194) | def tearDown(self):
    method test_custom_results_per_page (line 198) | def test_custom_results_per_page(self):
  class FacetedSearchViewTestCase (line 210) | class FacetedSearchViewTestCase(TestCase):
    method setUp (line 211) | def setUp(self):
    method tearDown (line 227) | def tearDown(self):
    method test_search_no_query (line 231) | def test_search_no_query(self):
    method test_empty_results (line 236) | def test_empty_results(self):
    method test_default_form (line 243) | def test_default_form(self):
    method test_list_selected_facets (line 250) | def test_list_selected_facets(self):
  class BasicSearchViewTestCase (line 266) | class BasicSearchViewTestCase(TestCase):
    method setUp (line 269) | def setUp(self):
    method tearDown (line 285) | def tearDown(self):
    method test_search_no_query (line 289) | def test_search_no_query(self):
    method test_search_query (line 293) | def test_search_query(self):
    method test_invalid_page (line 304) | def test_invalid_page(self):

FILE: test_haystack/utils.py
  function check_solr (line 6) | def check_solr(using="solr"):

FILE: test_haystack/whoosh_tests/test_forms.py
  class SpellingSuggestionTestCase (line 12) | class SpellingSuggestionTestCase(LiveWhooshRoundTripTestCase):
    method setUp (line 15) | def setUp(self):
    method tearDown (line 23) | def tearDown(self):
    method test_form_suggestion (line 29) | def test_form_suggestion(self):
    method test_view_suggestion (line 33) | def test_view_suggestion(self):

FILE: test_haystack/whoosh_tests/test_inputs.py
  class WhooshInputTestCase (line 6) | class WhooshInputTestCase(TestCase):
    method setUp (line 7) | def setUp(self):
    method test_raw_init (line 11) | def test_raw_init(self):
    method test_raw_prepare (line 22) | def test_raw_prepare(self):
    method test_clean_init (line 26) | def test_clean_init(self):
    method test_clean_prepare (line 31) | def test_clean_prepare(self):
    method test_exact_init (line 35) | def test_exact_init(self):
    method test_exact_prepare (line 40) | def test_exact_prepare(self):
    method test_not_init (line 44) | def test_not_init(self):
    method test_not_prepare (line 49) | def test_not_prepare(self):
    method test_autoquery_init (line 53) | def test_autoquery_init(self):
    method test_autoquery_prepare (line 58) | def test_autoquery_prepare(self):
    method test_altparser_init (line 64) | def test_altparser_init(self):
    method test_altparser_prepare (line 77) | def test_altparser_prepare(self):

FILE: test_haystack/whoosh_tests/test_whoosh_backend.py
  class WhooshMockSearchIndex (line 26) | class WhooshMockSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 35) | def get_model(self):
  class WhooshMockSearchIndexWithSkipDocument (line 39) | class WhooshMockSearchIndexWithSkipDocument(WhooshMockSearchIndex):
    method prepare_text (line 40) | def prepare_text(self, obj):
  class WhooshAnotherMockSearchIndex (line 46) | class WhooshAnotherMockSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 51) | def get_model(self):
    method prepare_text (line 54) | def prepare_text(self, obj):
  class AllTypesWhooshMockSearchIndex (line 58) | class AllTypesWhooshMockSearchIndex(indexes.SearchIndex, indexes.Indexab...
    method get_model (line 66) | def get_model(self):
  class WhooshMaintainTypeMockSearchIndex (line 70) | class WhooshMaintainTypeMockSearchIndex(indexes.SearchIndex, indexes.Ind...
    method get_model (line 75) | def get_model(self):
    method prepare_text (line 78) | def prepare_text(self, obj):
    method prepare_month (line 81) | def prepare_month(self, obj):
  class WhooshBoostMockSearchIndex (line 85) | class WhooshBoostMockSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 95) | def get_model(self):
    method prepare (line 98) | def prepare(self, obj):
  class WhooshAutocompleteMockModelSearchIndex (line 107) | class WhooshAutocompleteMockModelSearchIndex(indexes.SearchIndex, indexe...
    method get_model (line 114) | def get_model(self):
  class WhooshSearchBackendTestCase (line 118) | class WhooshSearchBackendTestCase(WhooshTestCase):
    method setUp (line 121) | def setUp(self):
    method tearDown (line 140) | def tearDown(self):
    method whoosh_search (line 144) | def whoosh_search(self, query):
    method test_non_silent (line 149) | def test_non_silent(self):
    method test_update (line 180) | def test_update(self):
    method test_update_with_SkipDocument_raised (line 190) | def test_update_with_SkipDocument_raised(self):
    method test_remove (line 201) | def test_remove(self):
    method test_clear (line 208) | def test_clear(self):
    method test_search (line 231) | def test_search(self):
    method test_highlight (line 353) | def test_highlight(self):
    method test_search_all_models (line 365) | def test_search_all_models(self):
    method test_more_like_this (line 376) | def test_more_like_this(self):
    method test_delete_index (line 389) | def test_delete_index(self):
    method test_order_by (line 396) | def test_order_by(self):
    method test__from_python (line 553) | def test__from_python(self):
    method test__to_python (line 576) | def test__to_python(self):
    method test_range_queries (line 593) | def test_range_queries(self):
    method test_date_queries (line 601) | def test_date_queries(self):
    method test_escaped_characters_queries (line 610) | def test_escaped_characters_queries(self):
    method test_build_schema (line 616) | def test_build_schema(self):
    method test_verify_type (line 643) | def test_verify_type(self):
    method test_writable (line 688) | def test_writable(self):
    method test_slicing (line 703) | def test_slicing(self):
    method test_scoring (line 723) | def test_scoring(self):
    method test_analyzed_fields (line 760) | def test_analyzed_fields(self):
  class WhooshBoostBackendTestCase (line 766) | class WhooshBoostBackendTestCase(WhooshTestCase):
    method setUp (line 767) | def setUp(self):
    method tearDown (line 797) | def tearDown(self):
    method test_boost (line 802) | def test_boost(self):
  class LiveWhooshSearchQueryTestCase (line 819) | class LiveWhooshSearchQueryTestCase(WhooshTestCase):
    method setUp (line 820) | def setUp(self):
    method tearDown (line 848) | def tearDown(self):
    method test_get_spelling (line 852) | def test_get_spelling(self):
    method test_log_query (line 858) | def test_log_query(self):
  class LiveWhooshSearchQuerySetTestCase (line 896) | class LiveWhooshSearchQuerySetTestCase(WhooshTestCase):
    method setUp (line 897) | def setUp(self):
    method tearDown (line 925) | def tearDown(self):
    method test_various_searchquerysets (line 929) | def test_various_searchquerysets(self):
    method test_all_regression (line 982) | def test_all_regression(self):
    method test_regression_space_query (line 998) | def test_regression_space_query(self):
    method test_iter (line 1007) | def test_iter(self):
    method test_slice (line 1017) | def test_slice(self):
    method test_values_slicing (line 1032) | def test_values_slicing(self):
    method test_manual_iter (line 1055) | def test_manual_iter(self):
    method test_fill_cache (line 1065) | def test_fill_cache(self):
    method test_cache_is_full (line 1084) | def test_cache_is_full(self):
    method test_count (line 1095) | def test_count(self):
    method test_query_generation (line 1114) | def test_query_generation(self):
    method test_result_class (line 1122) | def test_result_class(self):
  class LiveWhooshMultiSearchQuerySetTestCase (line 1138) | class LiveWhooshMultiSearchQuerySetTestCase(WhooshTestCase):
    method setUp (line 1141) | def setUp(self):
    method tearDown (line 1163) | def tearDown(self):
    method test_searchquerysets_with_models (line 1167) | def test_searchquerysets_with_models(self):
  class LiveWhooshMoreLikeThisTestCase (line 1181) | class LiveWhooshMoreLikeThisTestCase(WhooshTestCase):
    method setUp (line 1184) | def setUp(self):
    method tearDown (line 1206) | def tearDown(self):
    method test_more_like_this (line 1213) | def test_more_like_this(self):
  class LiveWhooshAutocompleteTestCase (line 1340) | class LiveWhooshAutocompleteTestCase(WhooshTestCase):
    method setUp (line 1343) | def setUp(self):
    method tearDown (line 1365) | def tearDown(self):
    method test_autocomplete (line 1369) | def test_autocomplete(self):
    method test_edgengram_regression (line 1382) | def test_edgengram_regression(self):
    method test_extra_whitespace (line 1386) | def test_extra_whitespace(self):
  class WhooshRoundTripSearchIndex (line 1391) | class WhooshRoundTripSearchIndex(indexes.SearchIndex, indexes.Indexable):
    method get_model (line 1405) | def get_model(self):
    method prepare (line 1408) | def prepare(self, obj):
  class LiveWhooshRoundTripTestCase (line 1429) | class LiveWhooshRoundTripTestCase(WhooshTestCase):
    method setUp (line 1430) | def setUp(self):
    method tearDown (line 1456) | def tearDown(self):
    method test_round_trip (line 1459) | def test_round_trip(self):
  class LiveWhooshRamStorageTestCase (line 1486) | class LiveWhooshRamStorageTestCase(TestCase):
    method setUp (line 1487) | def setUp(self):
    method tearDown (line 1520) | def tearDown(self):
    method test_ram_storage (line 1527) | def test_ram_storage(self):

FILE: test_haystack/whoosh_tests/test_whoosh_query.py
  class WhooshSearchQueryTestCase (line 12) | class WhooshSearchQueryTestCase(WhooshTestCase):
    method setUp (line 13) | def setUp(self):
    method test_build_query_all (line 18) | def test_build_query_all(self):
    method test_build_query_single_word (line 21) | def test_build_query_single_word(self):
    method test_build_query_multiple_words_and (line 25) | def test_build_query_multiple_words_and(self):
    method test_build_query_multiple_words_not (line 30) | def test_build_query_multiple_words_not(self):
    method test_build_query_multiple_words_or (line 35) | def test_build_query_multiple_words_or(self):
    method test_build_query_multiple_words_mixed (line 39) | def test_build_query_multiple_words_mixed(self):
    method test_build_query_phrase (line 46) | def test_build_query_phrase(self):
    method test_build_query_boost (line 55) | def test_build_query_boost(self):
    method test_correct_exact (line 60) | def test_correct_exact(self):
    method test_build_query_multiple_filter_types (line 64) | def test_build_query_multiple_filter_types(self):
    method test_build_query_in_filter_multiple_words (line 77) | def test_build_query_in_filter_multiple_words(self):
    method test_build_query_in_filter_datetime (line 85) | def test_build_query_in_filter_datetime(self):
    method test_build_query_in_with_set (line 90) | def test_build_query_in_with_set(self):
    method test_build_query_wildcard_filter_types (line 106) | def test_build_query_wildcard_filter_types(self):
    method test_build_query_fuzzy_filter_types (line 111) | def test_build_query_fuzzy_filter_types(self):
    method test_build_query_with_contains (line 116) | def test_build_query_with_contains(self):
    method test_build_query_with_endswith (line 121) | def test_build_query_with_endswith(self):
    method test_clean (line 126) | def test_clean(self):
    method test_build_query_with_models (line 140) | def test_build_query_with_models(self):
    method test_build_query_with_datetime (line 148) | def test_build_query_with_datetime(self):
    method test_build_query_with_sequence_and_filter_not_in (line 152) | def test_build_query_with_sequence_and_filter_not_in(self):
    method test_set_result_class (line 156) | def test_set_result_class(self):
    method test_in_filter_values_list (line 171) | def test_in_filter_values_list(self):
    method test_narrow_sq (line 176) | def test_narrow_sq(self):

FILE: test_haystack/whoosh_tests/testcases.py
  class WhooshTestCase (line 8) | class WhooshTestCase(TestCase):
    method setUpClass (line 12) | def setUpClass(cls):
    method tearDownClass (line 34) | def tearDownClass(cls):
Condensed preview — 223 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,838K chars).
[
  {
    "path": ".editorconfig",
    "chars": 506,
    "preview": "# See http://editorconfig.org for format details and\n# http://editorconfig.org/#download for editor / IDE integration\n\nr"
  },
  {
    "path": ".gitchangelog.rc",
    "chars": 6234,
    "preview": "##\n## Format\n##\n##   ACTION: [AUDIENCE:] COMMIT_MSG [!TAG ...]\n##\n## Description\n##\n##   ACTION is one of 'chg', 'fix', "
  },
  {
    "path": ".github/issue_template.md",
    "chars": 311,
    "preview": "* [ ] Tested with the latest Haystack release\n* [ ] Tested with the current Haystack master branch\n\n## Expected behaviou"
  },
  {
    "path": ".github/pull_request_template.md",
    "chars": 535,
    "preview": "# Hey, thanks for contributing to Haystack. Please review [the contributor guidelines](https://django-haystack.readthedo"
  },
  {
    "path": ".github/workflows/black+isort.yml",
    "chars": 389,
    "preview": "name: black+isort\n\non: [pull_request, push]\n\njobs:\n  check:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/ch"
  },
  {
    "path": ".github/workflows/codeql-analysis.yml",
    "chars": 571,
    "preview": "name: \"CodeQL\"\n\non:\n  push:\n    branches: [master, ]\n  pull_request:\n    # The branches below must be a subset of the br"
  },
  {
    "path": ".github/workflows/docs.yml",
    "chars": 349,
    "preview": "name: Build docs\n\non: [pull_request, push]\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/che"
  },
  {
    "path": ".github/workflows/flake8.yml",
    "chars": 441,
    "preview": "name: flake8\n\non: [pull_request, push]\n\njobs:\n  check:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkou"
  },
  {
    "path": ".github/workflows/test.yml",
    "chars": 1392,
    "preview": "name: Test\n\non: [pull_request, push]\n\njobs:\n  test:\n\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        djan"
  },
  {
    "path": ".gitignore",
    "chars": 196,
    "preview": ".settings\n*.pyc\n.DS_Store\n_build\n.*.sw[po]\n*.egg-info\ndist\nbuild\nMANIFEST\n.tox\nenv\nenv3\n*.egg\n.eggs\n.coverage\n.idea\n\n# B"
  },
  {
    "path": "AUTHORS",
    "chars": 8049,
    "preview": "Primary Authors:\n\n    * Daniel Lindsley\n    * Matt Croydon (some documentation, sanity checks and the sweet name)\n    * "
  },
  {
    "path": "CONTRIBUTING.md",
    "chars": 4111,
    "preview": "# Contributing\n\nHaystack is open-source and, as such, grows (or shrinks) & improves in part\ndue to the community. Below "
  },
  {
    "path": "LICENSE",
    "chars": 1607,
    "preview": "Copyright (c) 2009-2013, Daniel Lindsley.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with "
  },
  {
    "path": "MANIFEST.in",
    "chars": 126,
    "preview": "recursive-include docs *\nrecursive-include haystack/templates *.xml *.html\ninclude AUTHORS\ninclude LICENSE\ninclude READM"
  },
  {
    "path": "README.rst",
    "chars": 2566,
    "preview": ".. image:: https://github.com/django-haystack/django-haystack/actions/workflows/test.yml/badge.svg\n      :target: https:"
  },
  {
    "path": "docs/Makefile",
    "chars": 2492,
    "preview": "# Makefile for Sphinx documentation\n#\n\n# You can set these variables from the command line.\nSPHINXOPTS    =\nSPHINXBUILD "
  },
  {
    "path": "docs/_static/.gitignore",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "docs/_templates/.gitignore",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "docs/admin.rst",
    "chars": 1323,
    "preview": ".. _ref-admin:\n\n===================\nDjango Admin Search\n===================\n\nHaystack comes with a base class to support"
  },
  {
    "path": "docs/architecture_overview.rst",
    "chars": 1704,
    "preview": ".. _ref-architecture-overview:\n\n=====================\nArchitecture Overview\n=====================\n\n``SearchQuerySet``\n--"
  },
  {
    "path": "docs/autocomplete.rst",
    "chars": 7500,
    "preview": ".. _ref-autocomplete:\n\n============\nAutocomplete\n============\n\nAutocomplete is becoming increasingly common as an add-on"
  },
  {
    "path": "docs/backend_support.rst",
    "chars": 4196,
    "preview": ".. _ref-backend-support:\n\n===============\nBackend Support\n===============\n\n\nSupported Backends\n==================\n\n* Sol"
  },
  {
    "path": "docs/best_practices.rst",
    "chars": 11360,
    "preview": ".. _ref-best-practices:\n\n==============\nBest Practices\n==============\n\nWhat follows are some general recommendations on "
  },
  {
    "path": "docs/boost.rst",
    "chars": 3767,
    "preview": ".. _ref-boost:\n\n=====\nBoost\n=====\n\n\nScoring is a critical component of good search. Normal full-text searches\nautomatica"
  },
  {
    "path": "docs/changelog.rst",
    "chars": 186568,
    "preview": "Changelog\n=========\n\n\n%%version%% (unreleased)\n------------------------\n- Docs: don't tell people how to install Python "
  },
  {
    "path": "docs/conf.py",
    "chars": 6665,
    "preview": "#\n# Haystack documentation build configuration file, created by\n# sphinx-quickstart on Wed Apr 15 08:50:46 2009.\n#\n# Thi"
  },
  {
    "path": "docs/contributing.rst",
    "chars": 5418,
    "preview": "============\nContributing\n============\n\nHaystack is open-source and, as such, grows (or shrinks) & improves in part\ndue "
  },
  {
    "path": "docs/creating_new_backends.rst",
    "chars": 820,
    "preview": ".. _ref-creating-new-backends:\n\n=====================\nCreating New Backends\n=====================\n\nThe process should be"
  },
  {
    "path": "docs/debugging.rst",
    "chars": 4763,
    "preview": ".. ref-debugging:\n\n==================\nDebugging Haystack\n==================\n\nThere are some common problems people run i"
  },
  {
    "path": "docs/faceting.rst",
    "chars": 11434,
    "preview": ".. _ref-faceting:\n\n========\nFaceting\n========\n\nWhat Is Faceting?\n-----------------\n\nFaceting is a way to provide users w"
  },
  {
    "path": "docs/faq.rst",
    "chars": 4884,
    "preview": ".. _ref-frequently-asked-questions:\n\n==============================\n(In)Frequently Asked Questions\n====================="
  },
  {
    "path": "docs/glossary.rst",
    "chars": 3239,
    "preview": ".. _ref-glossary:\n\n========\nGlossary\n========\n\nSearch is a domain full of its own jargon and definitions. As this may be"
  },
  {
    "path": "docs/haystack_theme/layout.html",
    "chars": 630,
    "preview": "{% extends \"basic/layout.html\" %}\n\n{%- block extrahead %}\n    <link rel=\"stylesheet\" href=\"http://haystacksearch.org/css"
  },
  {
    "path": "docs/haystack_theme/static/documentation.css",
    "chars": 1325,
    "preview": "a, a:link, a:hover { background-color: transparent !important; color: #CAECFF; outline-color: transparent !important; te"
  },
  {
    "path": "docs/haystack_theme/theme.conf",
    "chars": 23,
    "preview": "[theme]\ninherit = basic"
  },
  {
    "path": "docs/highlighting.rst",
    "chars": 3184,
    "preview": ".. _ref-highlighting:\n\n============\nHighlighting\n============\n\nHaystack supports two different methods of highlighting. "
  },
  {
    "path": "docs/index.rst",
    "chars": 2812,
    "preview": "Welcome to Haystack!\n====================\n\nHaystack provides modular search for Django. It features a unified, familiar\n"
  },
  {
    "path": "docs/inputtypes.rst",
    "chars": 5170,
    "preview": ".. _ref-inputtypes:\n\n===========\nInput Types\n===========\n\nInput types allow you to specify more advanced query behavior."
  },
  {
    "path": "docs/installing_search_engines.rst",
    "chars": 8060,
    "preview": ".. _ref-installing-search-engines:\n\n=========================\nInstalling Search Engines\n=========================\n\nSolr\n"
  },
  {
    "path": "docs/management_commands.rst",
    "chars": 10024,
    "preview": ".. _ref-management-commands:\n\n===================\nManagement Commands\n===================\n\nHaystack comes with several m"
  },
  {
    "path": "docs/migration_from_1_to_2.rst",
    "chars": 10121,
    "preview": ".. _ref-migration_from_1_to_2:\n\n===========================================\nMigrating From Haystack 1.X to Haystack 2.X\n"
  },
  {
    "path": "docs/multiple_index.rst",
    "chars": 7330,
    "preview": ".. _ref-multiple_index:\n\n================\nMultiple Indexes\n================\n\nMuch like Django's `multiple database suppo"
  },
  {
    "path": "docs/other_apps.rst",
    "chars": 3154,
    "preview": ".. _ref-other_apps:\n\n=============================\nHaystack-Related Applications\n=============================\n\nSub Apps"
  },
  {
    "path": "docs/python3.rst",
    "chars": 1609,
    "preview": ".. _ref-python3:\n\n================\nPython 3 Support\n================\n\nAs of Haystack v2.1.0, it has been ported to suppo"
  },
  {
    "path": "docs/rich_content_extraction.rst",
    "chars": 2640,
    "preview": ".. _ref-rich_content_extraction:\n\n=======================\nRich Content Extraction\n=======================\n\nFor some proj"
  },
  {
    "path": "docs/running_tests.rst",
    "chars": 2379,
    "preview": ".. _ref-running-tests:\n\n=============\nRunning Tests\n=============\n\nEverything\n==========\n\nThe simplest way to get up and"
  },
  {
    "path": "docs/searchbackend_api.rst",
    "chars": 3853,
    "preview": ".. _ref-searchbackend-api:\n\n=====================\n``SearchBackend`` API\n=====================\n\n.. class:: SearchBackend("
  },
  {
    "path": "docs/searchfield_api.rst",
    "chars": 7427,
    "preview": ".. _ref-searchfield-api:\n\n===================\n``SearchField`` API\n===================\n\n.. class:: SearchField\n\nThe ``Sea"
  },
  {
    "path": "docs/searchindex_api.rst",
    "chars": 22381,
    "preview": ".. _ref-searchindex-api:\n\n===================\n``SearchIndex`` API\n===================\n\n.. class:: SearchIndex()\n\nThe ``S"
  },
  {
    "path": "docs/searchquery_api.rst",
    "chars": 8861,
    "preview": ".. _ref-searchquery-api:\n\n===================\n``SearchQuery`` API\n===================\n\n.. class:: SearchQuery(using=DEFA"
  },
  {
    "path": "docs/searchqueryset_api.rst",
    "chars": 31840,
    "preview": ".. _ref-searchqueryset-api:\n\n======================\n``SearchQuerySet`` API\n======================\n\n.. class:: SearchQuer"
  },
  {
    "path": "docs/searchresult_api.rst",
    "chars": 1889,
    "preview": ".. _ref-searchresult-api:\n\n====================\n``SearchResult`` API\n====================\n\n.. class:: SearchResult(app_l"
  },
  {
    "path": "docs/settings.rst",
    "chars": 8250,
    "preview": ".. _ref-settings:\n\n=================\nHaystack Settings\n=================\n\nAs a way to extend/change the default behavior"
  },
  {
    "path": "docs/signal_processors.rst",
    "chars": 4822,
    "preview": ".. _ref-signal_processors:\n\n=================\nSignal Processors\n=================\n\nKeeping data in sync between the (aut"
  },
  {
    "path": "docs/spatial.rst",
    "chars": 14261,
    "preview": ".. _ref-spatial:\n\n==============\nSpatial Search\n==============\n\nSpatial search (also called geospatial search) allows yo"
  },
  {
    "path": "docs/templatetags.rst",
    "chars": 2103,
    "preview": ".. _ref-templatetags:\n\n=============\nTemplate Tags\n=============\n\nHaystack comes with a couple common template tags to m"
  },
  {
    "path": "docs/toc.rst",
    "chars": 736,
    "preview": "Table Of Contents\n=================\n\n.. toctree::\n   :maxdepth: 2\n\n   index\n   tutorial\n   glossary\n   views_and_forms\n "
  },
  {
    "path": "docs/tutorial.rst",
    "chars": 14778,
    "preview": ".. _ref-tutorial:\n\n=============================\nGetting Started with Haystack\n=============================\n\nSearch is "
  },
  {
    "path": "docs/utils.rst",
    "chars": 343,
    "preview": ".. _ref-utils:\n\n=========\nUtilities\n=========\n\nIncluded here are some of the general use bits included with Haystack.\n\n\n"
  },
  {
    "path": "docs/views_and_forms.rst",
    "chars": 15568,
    "preview": ".. _ref-views-and_forms:\n\n=============\nViews & Forms\n=============\n\n.. note::\n\n    As of version 2.4 the views in ``hay"
  },
  {
    "path": "docs/who_uses.rst",
    "chars": 5179,
    "preview": ".. _ref-who-uses:\n\nSites Using Haystack\n====================\n\nThe following sites are a partial list of people using Hay"
  },
  {
    "path": "example_project/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "example_project/bare_bones_app/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "example_project/bare_bones_app/models.py",
    "chars": 506,
    "preview": "import datetime\n\nfrom django.db import models\n\n\nclass Cat(models.Model):\n    name = models.CharField(max_length=255)\n   "
  },
  {
    "path": "example_project/bare_bones_app/search_indexes.py",
    "chars": 394,
    "preview": "from bare_bones_app.models import Cat\n\nfrom haystack import indexes\n\n\n# For the most basic usage, you can use a subclass"
  },
  {
    "path": "example_project/regular_app/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "example_project/regular_app/models.py",
    "chars": 1230,
    "preview": "import datetime\n\nfrom django.db import models\n\nBREED_CHOICES = [\n    (\"collie\", \"Collie\"),\n    (\"labrador\", \"Labrador\"),"
  },
  {
    "path": "example_project/regular_app/search_indexes.py",
    "chars": 1234,
    "preview": "from regular_app.models import Dog\n\nfrom haystack import indexes\n\n\n# More typical usage involves creating a subclassed `"
  },
  {
    "path": "example_project/settings.py",
    "chars": 1295,
    "preview": "import os\n\nfrom django.conf import settings\n\nSECRET_KEY = \"CHANGE ME\"\n\n# All the normal settings apply. What's included "
  },
  {
    "path": "example_project/templates/search/indexes/bare_bones_app/cat_text.txt",
    "chars": 34,
    "preview": "{{ object.name }}\n{{ object.bio }}"
  },
  {
    "path": "example_project/templates/search/indexes/regular_app/dog_text.txt",
    "chars": 124,
    "preview": "{{ object.full_name }}\n{{ object.breed }}\n{{ object.bio }}\n\n{% for toy in object.toys.all %}\n    {{ toy.name }}\n{% endfo"
  },
  {
    "path": "haystack/__init__.py",
    "chars": 2585,
    "preview": "from django.conf import settings\nfrom django.core.exceptions import ImproperlyConfigured\nfrom pkg_resources import Distr"
  },
  {
    "path": "haystack/admin.py",
    "chars": 6198,
    "preview": "from django.contrib.admin.options import ModelAdmin, csrf_protect_m\nfrom django.contrib.admin.views.main import SEARCH_V"
  },
  {
    "path": "haystack/apps.py",
    "chars": 963,
    "preview": "import logging\n\nfrom django.apps import AppConfig\nfrom django.conf import settings\n\nfrom haystack import connection_rout"
  },
  {
    "path": "haystack/backends/__init__.py",
    "chars": 36654,
    "preview": "import copy\nfrom copy import deepcopy\nfrom time import time\n\nfrom django.conf import settings\nfrom django.db.models impo"
  },
  {
    "path": "haystack/backends/elasticsearch2_backend.py",
    "chars": 13860,
    "preview": "import datetime\nimport warnings\n\nfrom django.conf import settings\n\nfrom haystack.backends import BaseEngine\nfrom haystac"
  },
  {
    "path": "haystack/backends/elasticsearch5_backend.py",
    "chars": 17420,
    "preview": "import datetime\nimport warnings\n\nfrom django.conf import settings\n\nimport haystack\nfrom haystack.backends import BaseEng"
  },
  {
    "path": "haystack/backends/elasticsearch_backend.py",
    "chars": 38970,
    "preview": "import re\nimport warnings\nfrom datetime import datetime, timedelta\n\nfrom django.conf import settings\nfrom django.core.ex"
  },
  {
    "path": "haystack/backends/simple_backend.py",
    "chars": 3927,
    "preview": "\"\"\"\nA very basic, ORM-based backend for simple search during tests.\n\"\"\"\nfrom functools import reduce\nfrom warnings impor"
  },
  {
    "path": "haystack/backends/solr_backend.py",
    "chars": 34912,
    "preview": "import warnings\n\nfrom django.conf import settings\nfrom django.core.exceptions import ImproperlyConfigured\n\nimport haysta"
  },
  {
    "path": "haystack/backends/whoosh_backend.py",
    "chars": 36127,
    "preview": "import json\nimport os\nimport re\nimport shutil\nimport threading\nimport warnings\n\nfrom django.conf import settings\nfrom dj"
  },
  {
    "path": "haystack/constants.py",
    "chars": 1601,
    "preview": "from django.conf import settings\n\nDEFAULT_ALIAS = \"default\"\n\n# Reserved field names\nID = getattr(settings, \"HAYSTACK_ID_"
  },
  {
    "path": "haystack/exceptions.py",
    "chars": 1138,
    "preview": "class HaystackError(Exception):\n    \"\"\"A generic exception for all others to extend.\"\"\"\n\n    pass\n\n\nclass SearchBackendE"
  },
  {
    "path": "haystack/fields.py",
    "chars": 16078,
    "preview": "import re\nfrom inspect import ismethod\n\nfrom django.template import loader\nfrom django.utils import datetime_safe\nfrom w"
  },
  {
    "path": "haystack/forms.py",
    "chars": 3996,
    "preview": "from django import forms\nfrom django.utils.encoding import smart_text\nfrom django.utils.text import capfirst\nfrom django"
  },
  {
    "path": "haystack/generic_views.py",
    "chars": 3876,
    "preview": "from django.conf import settings\nfrom django.core.paginator import Paginator\nfrom django.views.generic import FormView\nf"
  },
  {
    "path": "haystack/indexes.py",
    "chars": 18461,
    "preview": "import copy\nimport threading\nimport warnings\n\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.utils."
  },
  {
    "path": "haystack/inputs.py",
    "chars": 4460,
    "preview": "import re\nimport warnings\n\nfrom django.utils.encoding import force_str\n\n\nclass BaseInput(object):\n    \"\"\"\n    The base i"
  },
  {
    "path": "haystack/management/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "haystack/management/commands/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "haystack/management/commands/build_solr_schema.py",
    "chars": 7234,
    "preview": "import os\n\nimport requests\nfrom django.conf import settings\nfrom django.core.exceptions import ImproperlyConfigured\nfrom"
  },
  {
    "path": "haystack/management/commands/clear_index.py",
    "chars": 2265,
    "preview": "from django.core.management.base import BaseCommand\n\nfrom haystack import connections\n\n\nclass Command(BaseCommand):\n    "
  },
  {
    "path": "haystack/management/commands/haystack_info.py",
    "chars": 766,
    "preview": "from django.core.management.base import BaseCommand\n\nfrom haystack import connections\nfrom haystack.constants import DEF"
  },
  {
    "path": "haystack/management/commands/rebuild_index.py",
    "chars": 2177,
    "preview": "from django.core.management import call_command\nfrom django.core.management.base import BaseCommand\n\nfrom .update_index "
  },
  {
    "path": "haystack/management/commands/update_index.py",
    "chars": 16131,
    "preview": "import logging\nimport multiprocessing\nimport os\nimport time\nfrom datetime import timedelta\n\nfrom django.core.management."
  },
  {
    "path": "haystack/manager.py",
    "chars": 3577,
    "preview": "from haystack.query import EmptySearchQuerySet, SearchQuerySet\n\n\nclass SearchIndexManager(object):\n    def __init__(self"
  },
  {
    "path": "haystack/models.py",
    "chars": 8819,
    "preview": "# \"Hey, Django! Look at me, I'm an app! For Serious!\"\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django."
  },
  {
    "path": "haystack/panels.py",
    "chars": 2823,
    "preview": "from debug_toolbar.panels import DebugPanel\nfrom django.template.loader import render_to_string\nfrom django.utils.transl"
  },
  {
    "path": "haystack/query.py",
    "chars": 26134,
    "preview": "import operator\nimport warnings\nfrom functools import reduce\n\nfrom haystack import connection_router, connections\nfrom h"
  },
  {
    "path": "haystack/routers.py",
    "chars": 280,
    "preview": "from haystack.constants import DEFAULT_ALIAS\n\n\nclass BaseRouter(object):\n    # Reserved for future extension.\n    pass\n\n"
  },
  {
    "path": "haystack/signals.py",
    "chars": 3062,
    "preview": "from django.db import models\n\nfrom haystack.exceptions import NotHandled\n\n\nclass BaseSignalProcessor(object):\n    \"\"\"\n  "
  },
  {
    "path": "haystack/templates/panels/haystack.html",
    "chars": 1353,
    "preview": "{% load i18n %}\n<table>\n    <thead>\n        <tr>\n            <th style=\"width: 50%\">{% trans 'Query' %}</th>\n           "
  },
  {
    "path": "haystack/templates/search_configuration/schema.xml",
    "chars": 58455,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<!--\n Licensed to the Apache Software Foundation (ASF) under one or more\n contri"
  },
  {
    "path": "haystack/templates/search_configuration/solrconfig.xml",
    "chars": 57423,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<!--\n Licensed to the Apache Software Foundation (ASF) under one or more\n contri"
  },
  {
    "path": "haystack/templatetags/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "haystack/templatetags/highlight.py",
    "chars": 4320,
    "preview": "from django import template\nfrom django.conf import settings\nfrom django.core.exceptions import ImproperlyConfigured\n\nfr"
  },
  {
    "path": "haystack/templatetags/more_like_this.py",
    "chars": 3438,
    "preview": "import logging\n\nfrom django import template\n\nfrom haystack.query import SearchQuerySet\nfrom haystack.utils.app_loading i"
  },
  {
    "path": "haystack/urls.py",
    "chars": 132,
    "preview": "from django.urls import path\n\nfrom haystack.views import SearchView\n\nurlpatterns = [path(\"\", SearchView(), name=\"haystac"
  },
  {
    "path": "haystack/utils/__init__.py",
    "chars": 2454,
    "preview": "import importlib\nimport re\n\nfrom django.conf import settings\n\nfrom haystack.constants import DJANGO_CT, DJANGO_ID, ID\n\nI"
  },
  {
    "path": "haystack/utils/app_loading.py",
    "chars": 1030,
    "preview": "from django.apps import apps\nfrom django.core.exceptions import ImproperlyConfigured\n\n__all__ = [\"haystack_get_models\", "
  },
  {
    "path": "haystack/utils/geo.py",
    "chars": 2036,
    "preview": "from haystack.constants import WGS_84_SRID\nfrom haystack.exceptions import SpatialError\n\n\ndef ensure_geometry(geom):\n   "
  },
  {
    "path": "haystack/utils/highlighting.py",
    "chars": 5653,
    "preview": "from django.utils.html import strip_tags\n\n\nclass Highlighter(object):\n    css_class = \"highlighted\"\n    html_tag = \"span"
  },
  {
    "path": "haystack/utils/loading.py",
    "chars": 12842,
    "preview": "import copy\nimport inspect\nimport threading\nimport warnings\nfrom collections import OrderedDict\n\nfrom django.conf import"
  },
  {
    "path": "haystack/utils/log.py",
    "chars": 476,
    "preview": "import logging\n\nfrom django.conf import settings\n\n\ndef getLogger(name):\n    real_logger = logging.getLogger(name)\n    re"
  },
  {
    "path": "haystack/views.py",
    "chars": 6933,
    "preview": "from django.conf import settings\nfrom django.core.paginator import InvalidPage, Paginator\nfrom django.http import Http40"
  },
  {
    "path": "pyproject.toml",
    "chars": 131,
    "preview": "[tool.black]\nline_length=88\n\n[tool.isort]\nknown_first_party = [\"haystack\", \"test_haystack\"]\nprofile = \"black\"\nmulti_line"
  },
  {
    "path": "setup.cfg",
    "chars": 151,
    "preview": "[pep8]\nline_length=88\nexclude=docs\n\n[flake8]\nline_length=88\nexclude=docs,tests\nignore=E203, E501, W503, D\n\n[options]\nset"
  },
  {
    "path": "setup.py",
    "chars": 1881,
    "preview": "#!/usr/bin/env python\nfrom setuptools import setup\n\ntry:\n    from setuptools import setup\nexcept ImportError:\n    from e"
  },
  {
    "path": "test_haystack/__init__.py",
    "chars": 489,
    "preview": "import os\n\ntest_runner = None\nold_config = None\n\nos.environ[\"DJANGO_SETTINGS_MODULE\"] = \"test_haystack.settings\"\n\n\nimpor"
  },
  {
    "path": "test_haystack/core/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "test_haystack/core/admin.py",
    "chars": 307,
    "preview": "from django.contrib import admin\n\nfrom haystack.admin import SearchModelAdmin\n\nfrom .models import MockModel\n\n\nclass Moc"
  },
  {
    "path": "test_haystack/core/custom_identifier.py",
    "chars": 350,
    "preview": "import hashlib\n\n\ndef get_identifier_method(key):\n    \"\"\"\n    Custom get_identifier method used for testing the\n    setti"
  },
  {
    "path": "test_haystack/core/fixtures/base_data.json",
    "chars": 1504,
    "preview": "[\n  {\n    \"pk\": 1,\n    \"model\": \"core.mocktag\",\n    \"fields\": {\n      \"name\": \"primary\"\n    }\n  },\n  {\n    \"pk\": 2,\n    "
  },
  {
    "path": "test_haystack/core/fixtures/bulk_data.json",
    "chars": 13755,
    "preview": "[\n  {\n    \"pk\": 1,\n    \"model\": \"core.mocktag\",\n    \"fields\": {\n      \"name\": \"search_test\"\n    }\n  },\n  {\n    \"pk\": 1,\n"
  },
  {
    "path": "test_haystack/core/models.py",
    "chars": 2732,
    "preview": "# A couple models for Haystack to test with.\nimport datetime\nimport uuid\n\nfrom django.db import models\n\n\nclass MockTag(m"
  },
  {
    "path": "test_haystack/core/templates/404.html",
    "chars": 25,
    "preview": "{% extends 'base.html' %}"
  },
  {
    "path": "test_haystack/core/templates/base.html",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "test_haystack/core/templates/search/indexes/bar.txt",
    "chars": 5,
    "preview": "BAR!\n"
  },
  {
    "path": "test_haystack/core/templates/search/indexes/core/mockmodel_content.txt",
    "chars": 24,
    "preview": "Indexed!\n{{ object.pk }}"
  },
  {
    "path": "test_haystack/core/templates/search/indexes/core/mockmodel_extra.txt",
    "chars": 23,
    "preview": "Stored!\n{{ object.pk }}"
  },
  {
    "path": "test_haystack/core/templates/search/indexes/core/mockmodel_template.txt",
    "chars": 24,
    "preview": "Indexed!\n{{ object.pk }}"
  },
  {
    "path": "test_haystack/core/templates/search/indexes/core/mockmodel_text.txt",
    "chars": 24,
    "preview": "Indexed!\n{{ object.pk }}"
  },
  {
    "path": "test_haystack/core/templates/search/indexes/foo.txt",
    "chars": 5,
    "preview": "FOO!\n"
  },
  {
    "path": "test_haystack/core/templates/search/search.html",
    "chars": 25,
    "preview": "{% extends 'base.html' %}"
  },
  {
    "path": "test_haystack/core/templates/test_suggestion.html",
    "chars": 28,
    "preview": "Suggestion: {{ suggestion }}"
  },
  {
    "path": "test_haystack/core/urls.py",
    "chars": 813,
    "preview": "from django.contrib import admin\nfrom django.urls import include, path\n\nfrom haystack.forms import FacetedSearchForm\nfro"
  },
  {
    "path": "test_haystack/discovery/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "test_haystack/discovery/models.py",
    "chars": 338,
    "preview": "from django.db import models\n\n\nclass Foo(models.Model):\n    title = models.CharField(max_length=255)\n    body = models.T"
  },
  {
    "path": "test_haystack/discovery/search_indexes.py",
    "chars": 394,
    "preview": "from haystack import indexes\nfrom test_haystack.discovery.models import Bar, Foo\n\n\nclass FooIndex(indexes.SearchIndex, i"
  },
  {
    "path": "test_haystack/discovery/templates/search/indexes/bar_text.txt",
    "chars": 36,
    "preview": "{{ object.title }}\n{{ object.body }}"
  },
  {
    "path": "test_haystack/elasticsearch2_tests/__init__.py",
    "chars": 942,
    "preview": "import unittest\nimport warnings\n\nfrom django.conf import settings\n\nfrom haystack.utils import log as logging\n\nwarnings.s"
  },
  {
    "path": "test_haystack/elasticsearch2_tests/test_backend.py",
    "chars": 65626,
    "preview": "import datetime\nimport logging as std_logging\nimport operator\nimport pickle\nimport unittest\nfrom decimal import Decimal\n"
  },
  {
    "path": "test_haystack/elasticsearch2_tests/test_inputs.py",
    "chars": 3508,
    "preview": "from django.test import TestCase\n\nfrom haystack import connections, inputs\n\n\nclass Elasticsearch2InputTestCase(TestCase)"
  },
  {
    "path": "test_haystack/elasticsearch2_tests/test_query.py",
    "chars": 9974,
    "preview": "import datetime\n\nimport elasticsearch\nfrom django.contrib.gis.measure import D\nfrom django.test import TestCase\n\nfrom ha"
  },
  {
    "path": "test_haystack/elasticsearch5_tests/__init__.py",
    "chars": 942,
    "preview": "import unittest\nimport warnings\n\nfrom django.conf import settings\n\nfrom haystack.utils import log as logging\n\nwarnings.s"
  },
  {
    "path": "test_haystack/elasticsearch5_tests/test_backend.py",
    "chars": 65627,
    "preview": "import datetime\nimport logging as std_logging\nimport operator\nimport pickle\nimport unittest\nfrom decimal import Decimal\n"
  },
  {
    "path": "test_haystack/elasticsearch5_tests/test_inputs.py",
    "chars": 3508,
    "preview": "from django.test import TestCase\n\nfrom haystack import connections, inputs\n\n\nclass Elasticsearch5InputTestCase(TestCase)"
  },
  {
    "path": "test_haystack/elasticsearch5_tests/test_query.py",
    "chars": 8382,
    "preview": "import datetime\n\nfrom django.contrib.gis.measure import D\nfrom django.test import TestCase\n\nfrom haystack import connect"
  },
  {
    "path": "test_haystack/elasticsearch_tests/__init__.py",
    "chars": 1130,
    "preview": "import unittest\nimport warnings\n\nfrom django.conf import settings\n\nfrom haystack.utils import log as logging\n\nwarnings.s"
  },
  {
    "path": "test_haystack/elasticsearch_tests/test_elasticsearch_backend.py",
    "chars": 68822,
    "preview": "import datetime\nimport logging as std_logging\nimport operator\nimport pickle\nimport unittest\nfrom contextlib import conte"
  },
  {
    "path": "test_haystack/elasticsearch_tests/test_elasticsearch_query.py",
    "chars": 10963,
    "preview": "import datetime\n\nimport elasticsearch\nfrom django.contrib.gis.measure import D\nfrom django.test import TestCase\n\nfrom ha"
  },
  {
    "path": "test_haystack/elasticsearch_tests/test_inputs.py",
    "chars": 3507,
    "preview": "from django.test import TestCase\n\nfrom haystack import connections, inputs\n\n\nclass ElasticsearchInputTestCase(TestCase):"
  },
  {
    "path": "test_haystack/mocks.py",
    "chars": 5356,
    "preview": "from django.apps import apps\n\nfrom haystack.backends import BaseEngine, BaseSearchBackend, BaseSearchQuery, log_query\nfr"
  },
  {
    "path": "test_haystack/multipleindex/__init__.py",
    "chars": 539,
    "preview": "from django.apps import apps\n\nimport haystack\nfrom haystack.signals import RealtimeSignalProcessor\n\nfrom ..utils import "
  },
  {
    "path": "test_haystack/multipleindex/models.py",
    "chars": 338,
    "preview": "from django.db import models\n\n\nclass Foo(models.Model):\n    title = models.CharField(max_length=255)\n    body = models.T"
  },
  {
    "path": "test_haystack/multipleindex/routers.py",
    "chars": 225,
    "preview": "from haystack.routers import BaseRouter\n\n\nclass MultipleIndexRouter(BaseRouter):\n    def for_write(self, instance=None, "
  },
  {
    "path": "test_haystack/multipleindex/search_indexes.py",
    "chars": 808,
    "preview": "from haystack import indexes\nfrom haystack.indexes import Indexable, SearchIndex\n\nfrom .models import Bar, Foo\n\n\n# To te"
  },
  {
    "path": "test_haystack/multipleindex/tests.py",
    "chars": 12215,
    "preview": "from django.db import models\n\nfrom haystack import connections\nfrom haystack.exceptions import NotHandled\nfrom haystack."
  },
  {
    "path": "test_haystack/results_per_page_urls.py",
    "chars": 360,
    "preview": "from django.conf.urls import url\n\nfrom haystack.views import SearchView\n\n\nclass CustomPerPage(SearchView):\n    results_p"
  },
  {
    "path": "test_haystack/run_tests.py",
    "chars": 561,
    "preview": "#!/usr/bin/env python\nimport sys\nfrom os.path import abspath, dirname\n\nimport nose\n\n\ndef run_all(argv=None):\n    sys.exi"
  },
  {
    "path": "test_haystack/settings.py",
    "chars": 3837,
    "preview": "import os\nfrom tempfile import mkdtemp\n\nSECRET_KEY = \"Please do not spew DeprecationWarnings\"\n\n# Haystack settings for r"
  },
  {
    "path": "test_haystack/simple_tests/__init__.py",
    "chars": 58,
    "preview": "import warnings\n\nwarnings.simplefilter(\"ignore\", Warning)\n"
  },
  {
    "path": "test_haystack/simple_tests/search_indexes.py",
    "chars": 764,
    "preview": "from haystack import indexes\n\nfrom ..core.models import MockModel, ScoreMockModel\n\n\nclass SimpleMockSearchIndex(indexes."
  },
  {
    "path": "test_haystack/simple_tests/test_simple_backend.py",
    "chars": 8664,
    "preview": "from datetime import date\n\nfrom django.test import TestCase\nfrom django.test.utils import override_settings\n\nfrom haysta"
  },
  {
    "path": "test_haystack/simple_tests/test_simple_query.py",
    "chars": 1229,
    "preview": "from django.test import TestCase\n\nfrom haystack import connections\nfrom haystack.models import SearchResult\nfrom haystac"
  },
  {
    "path": "test_haystack/solr_tests/__init__.py",
    "chars": 122,
    "preview": "import warnings\n\nwarnings.simplefilter(\"ignore\", Warning)\n\nfrom ..utils import check_solr\n\n\ndef setup():\n    check_solr("
  },
  {
    "path": "test_haystack/solr_tests/server/.gitignore",
    "chars": 11,
    "preview": "solr-*.tgz\n"
  },
  {
    "path": "test_haystack/solr_tests/server/confdir/schema.xml",
    "chars": 60187,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<!--\n Licensed to the Apache Software Foundation (ASF) under one or more\n contri"
  },
  {
    "path": "test_haystack/solr_tests/server/confdir/solrconfig.xml",
    "chars": 57364,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<!--\n Licensed to the Apache Software Foundation (ASF) under one or more\n contri"
  },
  {
    "path": "test_haystack/solr_tests/server/get-solr-download-url.py",
    "chars": 1684,
    "preview": "#!/usr/bin/env python\nimport sys\nfrom itertools import chain\nfrom urllib.parse import urljoin\n\nimport requests\n\nif len(s"
  },
  {
    "path": "test_haystack/solr_tests/server/start-solr-test-server.sh",
    "chars": 2125,
    "preview": "#!/bin/bash\n\nset -e\n\nSOLR_VERSION=6.6.4\nSOLR_DIR=solr\n\n\nSOLR_PORT=9001\n\ncd $(dirname $0)\n\nexport TEST_ROOT=$(pwd)\n\nexpor"
  },
  {
    "path": "test_haystack/solr_tests/server/wait-for-solr",
    "chars": 1022,
    "preview": "#!/usr/bin/env python\n\"\"\"Simple throttle to wait for Solr to start on busy test servers\"\"\"\nimport sys\nimport time\n\nimpor"
  },
  {
    "path": "test_haystack/solr_tests/test_admin.py",
    "chars": 2721,
    "preview": "from django.conf import settings\nfrom django.contrib.auth.models import User\nfrom django.test import TestCase\nfrom djang"
  },
  {
    "path": "test_haystack/solr_tests/test_inputs.py",
    "chars": 3738,
    "preview": "from django.test import TestCase\n\nfrom haystack import connections, inputs\n\n\nclass SolrInputTestCase(TestCase):\n    def "
  },
  {
    "path": "test_haystack/solr_tests/test_solr_backend.py",
    "chars": 61127,
    "preview": "import datetime\nimport logging as std_logging\nimport os\nimport pickle\nimport unittest\nfrom decimal import Decimal\nfrom u"
  },
  {
    "path": "test_haystack/solr_tests/test_solr_management_commands.py",
    "chars": 12751,
    "preview": "import datetime\nimport os\nfrom io import StringIO\nfrom tempfile import mkdtemp\nfrom unittest.mock import patch\n\nimport p"
  },
  {
    "path": "test_haystack/solr_tests/test_solr_query.py",
    "chars": 9820,
    "preview": "import datetime\n\nfrom django.test import TestCase\n\nfrom haystack import connections\nfrom haystack.inputs import AltParse"
  },
  {
    "path": "test_haystack/solr_tests/test_templatetags.py",
    "chars": 2489,
    "preview": "import unittest\nfrom unittest.mock import call, patch\n\nfrom django.template import Context, Template\nfrom django.test im"
  },
  {
    "path": "test_haystack/spatial/__init__.py",
    "chars": 63,
    "preview": "from ..utils import check_solr\n\n\ndef setup():\n    check_solr()\n"
  },
  {
    "path": "test_haystack/spatial/fixtures/sample_spatial_data.json",
    "chars": 3179,
    "preview": "[\n    {\n        \"pk\": 1,\n        \"model\": \"spatial.checkin\",\n        \"fields\": {\n            \"username\": \"daniel\",\n     "
  },
  {
    "path": "test_haystack/spatial/models.py",
    "chars": 986,
    "preview": "import datetime\n\nfrom django.db import models\n\n\nclass Checkin(models.Model):\n    username = models.CharField(max_length="
  },
  {
    "path": "test_haystack/spatial/search_indexes.py",
    "chars": 736,
    "preview": "from haystack import indexes\n\nfrom .models import Checkin\n\n\nclass CheckinSearchIndex(indexes.SearchIndex, indexes.Indexa"
  },
  {
    "path": "test_haystack/spatial/test_spatial.py",
    "chars": 11273,
    "preview": "from django.contrib.gis.measure import D\nfrom django.test import TestCase\n\nfrom haystack import connections\nfrom haystac"
  },
  {
    "path": "test_haystack/test_altered_internal_names.py",
    "chars": 3503,
    "preview": "from django.conf import settings\nfrom django.test import TestCase\n\nfrom haystack import connection_router, connections, "
  },
  {
    "path": "test_haystack/test_app_loading.py",
    "chars": 2356,
    "preview": "from types import GeneratorType, ModuleType\n\nfrom django.test import TestCase\nfrom django.urls import reverse\n\nfrom hays"
  },
  {
    "path": "test_haystack/test_app_using_appconfig/__init__.py",
    "chars": 73,
    "preview": "default_app_config = \"test_app_using_appconfig.apps.SimpleTestAppConfig\"\n"
  },
  {
    "path": "test_haystack/test_app_using_appconfig/apps.py",
    "chars": 179,
    "preview": "from django.apps import AppConfig\n\n\nclass SimpleTestAppConfig(AppConfig):\n    name = \"test_haystack.test_app_using_appco"
  },
  {
    "path": "test_haystack/test_app_using_appconfig/migrations/0001_initial.py",
    "chars": 655,
    "preview": "from django.db import migrations, models\n\n\nclass Migration(migrations.Migration):\n\n    dependencies = []\n\n    operations"
  },
  {
    "path": "test_haystack/test_app_using_appconfig/migrations/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "test_haystack/test_app_using_appconfig/models.py",
    "chars": 113,
    "preview": "from django.db.models import CharField, Model\n\n\nclass MicroBlogPost(Model):\n    text = CharField(max_length=140)\n"
  },
  {
    "path": "test_haystack/test_app_using_appconfig/search_indexes.py",
    "chars": 272,
    "preview": "from haystack import indexes\n\nfrom .models import MicroBlogPost\n\n\nclass MicroBlogSearchIndex(indexes.SearchIndex, indexe"
  },
  {
    "path": "test_haystack/test_app_using_appconfig/tests.py",
    "chars": 346,
    "preview": "from django.test import TestCase\n\nfrom .models import MicroBlogPost\n\n\nclass AppConfigTests(TestCase):\n    def test_index"
  },
  {
    "path": "test_haystack/test_app_with_hierarchy/__init__.py",
    "chars": 78,
    "preview": "\"\"\"Test app with multiple hierarchy levels above the actual models.py file\"\"\"\n"
  },
  {
    "path": "test_haystack/test_app_with_hierarchy/contrib/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "test_haystack/test_app_with_hierarchy/contrib/django/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "test_haystack/test_app_with_hierarchy/contrib/django/hierarchal_app_django/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "test_haystack/test_app_with_hierarchy/contrib/django/hierarchal_app_django/models.py",
    "chars": 214,
    "preview": "from django.db.models import BooleanField, CharField, Model\n\n\nclass HierarchalAppModel(Model):\n    enabled = BooleanFiel"
  },
  {
    "path": "test_haystack/test_app_without_models/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "test_haystack/test_app_without_models/urls.py",
    "chars": 131,
    "preview": "from django.urls import path\n\nfrom .views import simple_view\n\nurlpatterns = [path(\"simple-view\", simple_view, name=\"simp"
  },
  {
    "path": "test_haystack/test_app_without_models/views.py",
    "chars": 95,
    "preview": "from django.http import HttpResponse\n\n\ndef simple_view(request):\n    return HttpResponse(\"OK\")\n"
  }
]

// ... and 23 more files (download for full content)

About this extraction

This page contains the full source code of the toastdriven/django-haystack GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 223 files (1.7 MB), approximately 408.2k tokens, and a symbol index with 2095 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!