Questions tagged [Haystack] (15)

1
answer

Not working faceted search check box, whoosh + haystack?

Good afternoon. Did a bunch of whoosh+haystack, not working faceted search check box. In the file search_indexes.py prescribed:from haystack import indexes from product.models import Blog class BlogIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.EdgeNgramField(document=True, use_template=True, template_name=...
coralie.Johns asked March 17th 20 at 09:08
3
answers

How to install haystack for Django?

Hello. Please tell me, for a second day I suffer... Trying to set the haystack for Django. Here's what I did. 1. Downloaded haystack.(unpacked the archive) 2. Took folder haystack and added it with all its contents in arneguy the project folder. 3. In the file setting.py added INSTALLED_APPS = ( 'haystack', ) After that, t...
reynold.Kihn asked October 7th 19 at 12:20
1
answer

Haystack + Solr: where to get the template for the new kernel?

100 times starting a new project with Haystack/Solr, stand in front of a stupid question: how to create multricore mode, the new core Solr is ready for use with django-haystack? And every time I can't find the answer... In the end we have to do something like this: — Copy-example example/multicore/core0 in the example/mult...
weston72 asked September 27th 19 at 00:58
1
answer

Haystack: why is autocomplete not cut off too much?

One to one example from documentation. Only use NgramField.content_auto = indexes.NgramField(model_attr='content') At first all is well, if the test on the three characters 'old', you will find the following: 'goldfish', 'cuckold' and 'older'. But if you drive 4 characters, then everything begins to work weird, for example...
Giovanny_Treutel asked September 26th 19 at 14:50
2
answers

How to make django (django-oscar) and python3?

Who about what, and I always like about django-oscar. Although to a large extent simply about django. I decided to try python3. django-oscar support, django support. OS: elementary OS "Luna" (build on Ubuntu 12.04) python: python3.2 Set in the simplest way:pip install django-oscar Ie, nothing extra, only what django-oscar h...
Emerald_Eichmann asked September 19th 19 at 23:48
1
answer

As for the query SearchQuerySet haystack to use a queryset?

How to do the following:queryset = Table.objects.filter(table_field = field) SearchQuerySet().filter(table_field = queryset)
Alice.Bode74 asked September 16th 19 at 22:12
1
answer

How to set search for words using django-haystack and elasticsearch?

1.9.2 use django, django-haystack 2.5.0, elasticsearch 2.2.0 Search works, but, for example, "comparison" is sought and "comapriso" anymore. View is the default. template: {{ object.title }} {{ object.author }} {{ object.description }} {{ object.city }} {{ object.requirements }} {{ object.is_remote }} {{ object.salary }} ht...
Rosetta_Hamm asked September 11th 19 at 14:55
1
answer

How to index only those model\row where some_field=some_value?

I am using django-oscar + Solr + haystack.*===============================================================================================================* | id | partner_sku|price_currency|price_excl_tax|num_in_stock|date_created|date_updated|partner_id|product_id| |"10451"|"S0010436" | "USD"| 74.00 | 20 |'some_date' |'som...
Tito.Hintz asked August 23rd 19 at 18:03
0
answer

How to interact with Django-Haystack directly from the code?

search_index.py:class VacancyIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.NgramField(document=True, use_template=True) title = indexes.NgramField(model_attr='title') def get_model(self): return Vacancy def index_queryset(self, using=None): """Used when the entire index for model is updated.""" retu...
gino.Ullrich asked July 31st 19 at 10:04
2
answers

Django-haystack is not supported in django 1.9?

Good afternoon. Decided to try full-text search. Did everything according to instructions haystack. Use the whoosh.class NewsIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) title = indexes.CharField(model_attr='title') article = indexes.CharField(model_attr='artci...
frit asked July 30th 19 at 16:57