├── searchDemo ├── __init__.py ├── migrations │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-35.pyc │ │ ├── 0001_initial.cpython-35.pyc │ │ ├── 0002_product_slug.cpython-35.pyc │ │ └── 0003_product_timestamp.cpython-35.pyc │ ├── 0003_product_timestamp.py │ ├── 0002_product_slug.py │ └── 0001_initial.py ├── __pycache__ │ ├── admin.cpython-35.pyc │ ├── forms.cpython-35.pyc │ ├── models.cpython-35.pyc │ ├── urls.cpython-35.pyc │ ├── views.cpython-35.pyc │ ├── wsgi.cpython-35.pyc │ ├── __init__.cpython-35.pyc │ ├── settings.cpython-35.pyc │ └── search_indexes.cpython-35.pyc ├── admin.py ├── wsgi.py ├── urls.py ├── models.py ├── search_indexes.py ├── views.py ├── forms.py └── settings.py ├── db.sqlite3 ├── templates ├── search │ └── indexes │ │ └── product_text.txt ├── partials │ └── search_form.html ├── base.html ├── layout.html ├── home.html ├── product.html └── search_result.html ├── searchdemo.png ├── product_images ├── 1.jpg ├── 2.jpg ├── 3.jpg ├── 4.jpg ├── 6.jpg ├── no-img.jpg ├── 1_7fIVkXl.jpg ├── 1_AXH5dJ3.jpg ├── 1_B1surJo.jpg ├── 1_vA16Gpz.jpg ├── 2_bk06DHx.jpg ├── 4_EBs9gs9.jpg └── 4_QSI773C.jpg ├── requirements.txt ├── static ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.svg ├── css │ └── autocomplete.css └── js │ ├── our_search_code.js │ ├── jquery.autocomplete.js │ └── bootstrap.js ├── README.md ├── manage.py └── .gitignore /searchDemo/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /searchDemo/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/db.sqlite3 -------------------------------------------------------------------------------- /templates/search/indexes/product_text.txt: -------------------------------------------------------------------------------- 1 | {{object.title}} 2 | {{ object.description|default:"" }} -------------------------------------------------------------------------------- /searchdemo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/searchdemo.png -------------------------------------------------------------------------------- /product_images/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/product_images/1.jpg -------------------------------------------------------------------------------- /product_images/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/product_images/2.jpg -------------------------------------------------------------------------------- /product_images/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/product_images/3.jpg -------------------------------------------------------------------------------- /product_images/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/product_images/4.jpg -------------------------------------------------------------------------------- /product_images/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/product_images/6.jpg -------------------------------------------------------------------------------- /product_images/no-img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/product_images/no-img.jpg -------------------------------------------------------------------------------- /product_images/1_7fIVkXl.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/product_images/1_7fIVkXl.jpg -------------------------------------------------------------------------------- /product_images/1_AXH5dJ3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/product_images/1_AXH5dJ3.jpg -------------------------------------------------------------------------------- /product_images/1_B1surJo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/product_images/1_B1surJo.jpg -------------------------------------------------------------------------------- /product_images/1_vA16Gpz.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/product_images/1_vA16Gpz.jpg -------------------------------------------------------------------------------- /product_images/2_bk06DHx.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/product_images/2_bk06DHx.jpg -------------------------------------------------------------------------------- /product_images/4_EBs9gs9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/product_images/4_EBs9gs9.jpg -------------------------------------------------------------------------------- /product_images/4_QSI773C.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/product_images/4_QSI773C.jpg -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | Django==1.10.5 2 | django-haystack==2.5.1 3 | elasticsearch==5.0.1 4 | olefile==0.44 5 | Pillow==4.0.0 6 | urllib3>=1.23 7 | -------------------------------------------------------------------------------- /searchDemo/__pycache__/admin.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/searchDemo/__pycache__/admin.cpython-35.pyc -------------------------------------------------------------------------------- /searchDemo/__pycache__/forms.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/searchDemo/__pycache__/forms.cpython-35.pyc -------------------------------------------------------------------------------- /searchDemo/__pycache__/models.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/searchDemo/__pycache__/models.cpython-35.pyc -------------------------------------------------------------------------------- /searchDemo/__pycache__/urls.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/searchDemo/__pycache__/urls.cpython-35.pyc -------------------------------------------------------------------------------- /searchDemo/__pycache__/views.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/searchDemo/__pycache__/views.cpython-35.pyc -------------------------------------------------------------------------------- /searchDemo/__pycache__/wsgi.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/searchDemo/__pycache__/wsgi.cpython-35.pyc -------------------------------------------------------------------------------- /searchDemo/__pycache__/__init__.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/searchDemo/__pycache__/__init__.cpython-35.pyc -------------------------------------------------------------------------------- /searchDemo/__pycache__/settings.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/searchDemo/__pycache__/settings.cpython-35.pyc -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/static/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/static/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/static/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /searchDemo/__pycache__/search_indexes.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/searchDemo/__pycache__/search_indexes.cpython-35.pyc -------------------------------------------------------------------------------- /searchDemo/migrations/__pycache__/__init__.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/searchDemo/migrations/__pycache__/__init__.cpython-35.pyc -------------------------------------------------------------------------------- /searchDemo/migrations/__pycache__/0001_initial.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/searchDemo/migrations/__pycache__/0001_initial.cpython-35.pyc -------------------------------------------------------------------------------- /searchDemo/migrations/__pycache__/0002_product_slug.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/searchDemo/migrations/__pycache__/0002_product_slug.cpython-35.pyc -------------------------------------------------------------------------------- /searchDemo/migrations/__pycache__/0003_product_timestamp.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bhaskar-c/django-haystack-elasticsearch/HEAD/searchDemo/migrations/__pycache__/0003_product_timestamp.cpython-35.pyc -------------------------------------------------------------------------------- /searchDemo/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | from .models import Product, Category 4 | 5 | 6 | admin.site.register(Category) 7 | 8 | 9 | 10 | class ProductAdmin(admin.ModelAdmin): 11 | prepopulated_fields = {"slug": ("title",)} 12 | 13 | admin.site.register(Product, ProductAdmin) 14 | 15 | -------------------------------------------------------------------------------- /searchDemo/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for searchDemo project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "searchDemo.settings") 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /templates/partials/search_form.html: -------------------------------------------------------------------------------- 1 | {% load staticfiles %} 2 |