Pure Postgresql search backend for Django Oscar
Project description
Postgresql search handler for Django-Oscar
Careful: This is originally created inside a project not tested in a reusable environment, yet.
This creates a search handler without the need of any search backend. It is designed for the e-commerce framework Oscar.
It is implemented a little bit expensive but uses 4 annotated search vectors: * upc * title * meta_description * meta_title
This way the search can be manipulated through the meta fields. This package is not testet against generic sites, yet. It is running productive in a heavily customized env for many months now. I think it should scale up to 5000 Products with 10 Attributes depending on how the products are loaded. We use it fully lazy with endless scrolling.
To-Do
Dynamic creation of the filter fields
Writing Tests
Features
Don’t need to use some additional search backend like elastic
- Creates filters (facets) for:
Data that is directly attached to the Product model including foreign key choices
AttributeValues of the products
StockRecord entries
Installation
Install using pip:
pip install django-oscar-pg-search
# settings.py
INSTALLED_APPS = [
# ...
'oscar_pg_search.apps.PgSearchConfig',
# ...
]
OSCAR_PRODUCT_SEARCH_HANDLER = 'oscar_pg_search.postgres_search_handler.PostgresSearchHandler'
Settings
If you want to add some fields that are directly attached to the Product model:
# settings.py
OSCAR_ATTACHED_PRODUCT_FIELDS = ['is_public', 'deposit', 'volume', 'weight',]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-oscar-pg-search-0.8.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34dfc9f11476d0a4101ecc33bc86d985bc2db3f8faa1aa6623e65617f101e946 |
|
MD5 | d64f39da09a0a6c1abbbd77491f2eed3 |
|
BLAKE2b-256 | 73c233e57e67e90fffaf1572a4de085e5726cbdf7b6ff228e5cfa897b4dd9ac0 |
Hashes for django_oscar_pg_search-0.8.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5559ca1264cd40a66a07f0f7c4154181dd1cf9d3c2864d33e1921f28f5b5f075 |
|
MD5 | ffdb44a159af65f09f92a9f11125eb27 |
|
BLAKE2b-256 | 36b97b279808700bafa91690a47a3b3d0573bc01867c6422ed2887a46792643b |