django-haystack Questions

3

I am building out a solr instance for django, but the example provided from solr is super verbose, with many things that are not relevant to haystack. A sample with spelling suggestions, moreliketh...
Weatherley asked 20/5, 2010 at 15:17

1

I've been looking through the Haystack documentation on multiple indexes, but I can't figure out exactly how to use them. The main model in this example is Proposal. I want to have two search inde...
Burtburta asked 24/7, 2014 at 22:37

1

Solved

I want to use elastic-search as database in my project which I build on django framework. As I learn, elastic search is used with together a database through haystack where elastic-search is used f...
Switzerland asked 26/5, 2014 at 7:29

4

Solved

In my Django project I am using Celery. I switched over a command from crontab to be a periodic task and it works well but it is just calling a method on a model. Is it possible to update my Haysta...
Klapp asked 5/12, 2010 at 12:28

3

Solved

Is it possible to combine a Django Haystack search with "built-in" QuerySet filter operations, specifically filtering with Q() instances and lookup types not supported by SearchQuerySet? In either ...
Magus asked 29/1, 2010 at 2:1

5

I am pretty stuck right now. I have a Django project that's been working great until I tried to add Haystack/Whoosh for search. I've had this same stack in other projects working fine. Whenever I ...
Naman asked 5/9, 2011 at 20:14

5

I would like to display all results which match selected facets even though a search query has not been inserted. Similar to how some shop applications work e.g. Amazon e.g. Show all products whic...
Jailhouse asked 11/6, 2012 at 10:49

2

Is there a way to make django-haystack's {% highlight %} template tag show the full variable passed in, rather than removing everything before the first match? I'm using it like this: {% highligh...
Protestant asked 1/7, 2010 at 18:48

1

Solved

I've gone over the docs, and I've even created a few search back ends, but I"m still really confused on what these things do in haystack. Is the search back end searching the fields you put in your...
Clairclairaudience asked 6/5, 2014 at 20:56

1

Solved

I'm trying to make a search in my django app then i used haystack and whoosh but i faced some troubles. first when i tried to rebuild_index or update_index it gives me this error right down below, ...
Hexastyle asked 27/3, 2014 at 17:29

3

Im using django-haystack with elasticsearch but there is a problem with indexing. When rebuilding my index python manage.py rebuild_index following error is raised: Traceback (most recent call la...
Lafountain asked 20/4, 2013 at 7:12

3

Solved

I am trying to use django-haystack (been around 2 days now), and I have got the basic Getting Started example working and it looks very impressive. I would now like to try the autocomplete function...
Jeanajeanbaptiste asked 6/2, 2012 at 16:22

0

Using django-haystack and elasticsearch. Full text search is working ok, but I have trouble to implement facets. I've searched tutorial on web but with no success, in other words didn't understand ...
Chengtu asked 9/2, 2014 at 18:13

2

Solved

How do you make an abstract SearchIndex class, similar to how Django lets you make abstract base models? I have several SearchIndexes that I'd like to give the same basic fields (object_id, timest...
Kathie asked 3/6, 2013 at 15:14

1

I am attempting to do a search using Django Haystack and then upon retrieving results I need to pass these results to my Django Rest Framework serializer. The Django Rest Framework serializers.Mod...
Godart asked 15/11, 2013 at 14:24

4

I'm using Haystack and Whoosh with Django Within search_index.py I have this class PageIndex(RealTimeSearchIndex): text = CharField(document=True, use_template=True) creator = CharField(model_a...
Duplicity asked 12/8, 2011 at 14:34

5

Solved

I'm using apache solr search engine for indexing my website database.. I'm using django+http://haystacksearch.org/ So let's say I have document that have word "Chicken" When I search for "chicke...
Calli asked 29/12, 2009 at 12:28

4

Solved

I am using haystack within a project using solr as the backend. I want to be able to perform a contains search, similar to the Django .filter(something__contains="...") The __startswith option doe...
Hooded asked 14/6, 2011 at 0:14

2

I'm currently running haystack with an elasticsearch backend, and now I'm building an autocomplete for cities names. The problem is that SearchQuerySet is giving me different results, which from my...
Outtalk asked 6/12, 2013 at 17:55

1

I need to search substring values in a model field. I have an Index and a SearchQuerySet. This is the Elasticsearch configuration. HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.bac...
Albritton asked 23/10, 2013 at 17:32

2

Is there an easy hook for looking up Haystack results by Django model PK? Something like (this doesn't work) SearchQuerySet().filter(pk=12) The alternative is that I would add an explicit field...
Eskridge asked 16/8, 2013 at 15:28

1

Solved

I've got two models like below. The permission structure allows a Person to see any object that has a Group in common with them, so that if a Person is in Groups 1, 2, and 3, and an Object is share...
Litman asked 18/11, 2013 at 21:50

2

Solved

I'm trying to serialize a HayStack SearchQuerySet: from django.core import serializers serializers.serialize("json", SearchQuerySet().filter(content=request.GET['q'])) but it throws: 'SearchQ...
Calefaction asked 8/12, 2010 at 13:7

1

I'm trying to run a search on a model that has a many to many field, and I want to filter the search using this field. here is my current code: search_indexes.py class ListingInex(indexes.Sear...
Kindred asked 9/10, 2013 at 6:27

2

Solved

Trying to filter a SearchQuerySet by a boolean value doesn't work for me. (I am using the provided "Simple" backend search engine while testing.) I have an index like: class MyIndex(indexes.Searc...
Rentroll asked 7/10, 2013 at 20:46

© 2022 - 2024 — McMap. All rights reserved.