{"id":34038828,"url":"https://github.com/tehamalab/django-haystack-es","last_synced_at":"2026-04-07T17:31:25.051Z","repository":{"id":57420342,"uuid":"98612784","full_name":"tehamalab/django-haystack-es","owner":"tehamalab","description":"Django Haystack Es","archived":false,"fork":false,"pushed_at":"2022-12-26T20:29:35.000Z","size":41,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-02T18:24:47.834Z","etag":null,"topics":["django","elasticsearch","haystack","python"],"latest_commit_sha":null,"homepage":"https://github.com/tehamalab/django-haystack-es","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tehamalab.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-28T05:43:56.000Z","updated_at":"2022-01-18T16:34:13.000Z","dependencies_parsed_at":"2023-01-31T01:15:15.212Z","dependency_job_id":null,"html_url":"https://github.com/tehamalab/django-haystack-es","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/tehamalab/django-haystack-es","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tehamalab%2Fdjango-haystack-es","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tehamalab%2Fdjango-haystack-es/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tehamalab%2Fdjango-haystack-es/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tehamalab%2Fdjango-haystack-es/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tehamalab","download_url":"https://codeload.github.com/tehamalab/django-haystack-es/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tehamalab%2Fdjango-haystack-es/sbom","scorecard":{"id":872673,"data":{"date":"2025-08-11","repo":{"name":"github.com/tehamalab/django-haystack-es","commit":"476a87ad0da6bf6000145477d9ede6b9e254133d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-43017 / GHSA-qwmp-2cf2-g9g6","Warn: Project is vulnerable to: PYSEC-2022-238 / GHSA-h3qr-fjhm-jphw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T04:45:44.430Z","repository_id":57420342,"created_at":"2025-08-24T04:45:44.430Z","updated_at":"2025-08-24T04:45:44.430Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31522221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","elasticsearch","haystack","python"],"created_at":"2025-12-13T21:07:33.174Z","updated_at":"2026-04-07T17:31:25.040Z","avatar_url":"https://github.com/tehamalab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=============================\nDjango Haystack ES\n=============================\n\n.. image:: https://badge.fury.io/py/django-haystack-es.svg\n    :target: https://badge.fury.io/py/django-haystack-es\n\n.. image:: https://travis-ci.org/tehamalab/django-haystack-es.svg?branch=master\n    :target: https://travis-ci.org/tehamalab/django-haystack-es\n\n.. image:: https://codecov.io/gh/tehamalab/django-haystack-es/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/tehamalab/django-haystack-es\n\nDjango Haystack backend for Elasticsearch 5.\n\n\nQuickstart\n----------\n\nInstall Django Haystack ES::\n\n    pip install django-haystack-es\n\nAdd ``haystack_es.backends.ElasticsearchSearchEngine`` to your ``HAYSTACK_CONNECTIONS`` engine in ``settings.py``\n\nExample\n\n.. code-block:: python\n\n    HAYSTACK_CONNECTIONS = {\n        'default': {\n            'ENGINE': 'haystack_es.backends.Elasticsearch5SearchEngine',\n            # ...\n        }\n    }\n\nDefine your indexes using ``haystack_es.indexes`` instead of ``haystack.indexes``.\n\nExample\n\n.. code-block:: python\n\n    # myapp/search_indexes.py\n\n    from haystack_es import indexes\n    from myapp.models import MyModel\n\n\n    class MyModelIndex(indexes.SearchIndex, indexes.Indexable):\n        text = indexes.CharField(document=True, use_template=True)\n        # ...\n\nIf you have `celery-haystack \u003chttp://celery-haystack.readthedocs.org/\u003e`_ installed you can use\n``haystack_es.indexes.CelerySearchIndex`` for defining your SearchIndex utilizing celery-haystack\n\nIf you want to utilize additional SearchQuerySet methods use ``haystack_es.query.SearchQuerySet``\ninstead of ``haystack.query.SearchQuerySet``.\n\nExample\n\n.. code-block:: python\n\n    from haystack_es.query import SearchQuerySet\n\n    sqs = SearchQuerySet().filter(content='some query')\n    sqs.boost_fields({'field_name': 2, 'some_field': 1.5, 'another_field': 1})\n    sqs.facet('some_field')\n    # ...\n\n\nDifferences compared to the default django-haystack Elasticsearch backend\n---------------------------------------------------------------------------\n\n* Intended for Elasticsearch \u003e= 5\n* Allows query-time fields boosting.\n* Allows query-time\n  `negative boost \u003chttps://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-boosting-query.html\u003e`_ \n* Provides additional SearchFields; ``DictField``, ``NestedField`` and ``GeometryField``\n* Tries to use Elasticsearch\n  `filter context \u003chttps://www.elastic.co/guide/en/elasticsearch/reference/current/query-filter-context.html\u003e`_\n  instead of query string for filtering results.\n* Uses `multi-fields \u003chttps://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html\u003e`_\n  for creating shadow fields which are useful for performing operations like\n  faceting and exact matches which need non-analyzed values.\n\nQuery-time fields boosting\n----------------------------\n\n::\n\n    from haystack_es.query import SearchQuerySet\n    SearchQuerySet().boost_fields(boost_fields)\n\n\nExample ``SearchQuerySet().boost_fields({'field_name': 2, 'another_field': 1})``\n\n\nNegative boosting\n------------------\n\n::\n\n    from haystack_es.query import SearchQuerySet\n    SearchQuerySet().boost_negative(query, negative_boost)\n\n\nexample\n``SearchQuerySet().boost_negative({'match': {'category.raw': 'awful type'}}, negative_boost)``\n\n\nRunning Tests\n-------------\n\nDoes the code actually work?\n\n::\n\n    source \u003cYOURVIRTUALENV\u003e/bin/activate\n    (myenv) $ pip install tox\n    (myenv) $ tox\n\nCredits\n-------\n\nInspired by\n\n* `haystack-elasticsearch5`: https://github.com/Alkalit/haystack-elasticsearch5\n\nTools used in rendering this package:\n\n*  Cookiecutter_\n*  `cookiecutter-djangopackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftehamalab%2Fdjango-haystack-es","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftehamalab%2Fdjango-haystack-es","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftehamalab%2Fdjango-haystack-es/lists"}