--- /dev/null
+Subproject commit 97475f2813a36e402296d5f2389fe10cd4cd1e0b
--- /dev/null
+This file is placed here by pip to indicate the source was put
+here by pip.
+
+Once this package is successfully installed this source code will be
+deleted (unless you remove this file).
# -*- coding: utf-8 -*-
-from django import forms
from telemeta.models import *
-from haystack.inputs import AutoQuery, Exact, Clean
from haystack.forms import *
from haystack.query import SearchQuerySet
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url, include
from telemeta.views.haystack_search import *
-from haystack.query import SearchQuerySet
-from haystack.views import SearchView
from haystack.forms import *
-from telemeta.forms.haystack_form import HaySearchFormItem, HaySearchFormCollection
urlpatterns = patterns('',
url(r'^$', HaystackSearch(form_class=HaySearchFormItem), name='haystack_search'),
- url(r'^(?P<type>[A-Za-z0-9._-]+)/$', HaystackSearch(), name='haystack_search_type'),
+ url(r'^quick/(?P<type>[A-Za-z0-9._-]+)/$', HaystackSearch(), name='haystack_search_type'),
)
class MediaItemIndex(indexes.SearchIndex, indexes.Indexable):
- text = indexes.NgramField(document=True, use_template=True)
- #rec_date = indexes.DateTimeField(use_template=True, null=True)
+ text = indexes.CharField(document=True, use_template=True)
+ item_acces = indexes.CharField(model_attr= 'collection__public_access' , faceted=True)
+ item_status = indexes.CharField(model_attr= 'collection__document_status' , faceted=True)
def get_model(self):
return MediaItem
+++ /dev/null
-# -*- coding: utf-8 -*-