django-haystack Questions

3

Solved

I am trying to add a haystack search to my base.html to include it globally on my site. It errors though when i submit a search I am getting: Django-Haystack: 'NoneType' object has no attribut...
Discarnate asked 18/1, 2016 at 10:27

5

Solved

I'm trying to setup Solr 3.6.0 with Django-haystack Beta 2.0.0. After running ./manage.py build_solr_schema and moving schema.xml to the conf directory, upon visiting http://localhost:8983/solr/ad...
Morganstein asked 8/7, 2012 at 21:37

2

Solved

I am hoping to use Amazon's Elasticsearch server to power a search of longtext fields in a Django database. However, I also don't want to expose this search to those who don't have a log in and don...

2

Solved

I'm using django-haystack for a search page on my site. I'm basically done, but not quite happy with the ordering and not quite sure how haystack decides how to order everything. I know I can over...
Fenderson asked 8/6, 2010 at 17:49

2

Solved

After updating my Django from 1.7 to 1.9, search engine, which is based on Haystack and Solr, stopped working. This is what I get: ./manage.py shell Python 2.7.6 (default, Jun 22 2015, 17:58:13) [...
Nissie asked 16/12, 2015 at 14:16

3

I'm using Haystack for search, and the resulting SearchQuerySet returned contains None elements: >> SearchQuerySet().models(Question, Document, Idea) >> [<SearchResult: idea.idea (p...
Danaedanaher asked 4/5, 2012 at 18:38

3

Solved

In my Django html template, I get my SOLR facet_date result using haystack in the format "2015-01-01T00:00:00Z". How can I parse it in format "01/01/2015" in my template? My template is {{ facet...
Mars asked 1/12, 2015 at 4:18

2

Solved

I have a Django project that uses SOLR for indexing. I'm trying to do a substring search using Haystack's SearchQuerySet class. For example, when a user searches for the term "ear", it should ret...
Oceania asked 18/12, 2013 at 13:9

1

Solved

I'm tryinig to get haystack working with a class-based generic view according to the documentation here. I can get results from a SearchQuerySet in the shell, so the models are being indexed. But I...
Tilt asked 29/9, 2015 at 10:51

2

I've added a MultivaluedField to my index (haystack), I need to search for a ManyToMany related field, but it doesn't work. The engine is WHOOSH. This how my index looks like: class PostIndex(Sear...
Yesterday asked 27/8, 2010 at 6:55

3

Solved

I have some JSON that looks like the following: Let's call that field metadata { "somekey1": "val1", "someotherkey2": "val2", "more_data": { "contains_more": [ { "foo": "val5", "bar": "v...
Larainelarboard asked 20/5, 2015 at 16:48

1

Solved

I have a search index that I have created using Solr. I want to add individual django objects to the search index. To remove objects from the solr database we use remove_object. some = SomFooMo...
Execrative asked 5/6, 2015 at 20:46

2

Solved

I'm using django-haystack (v 2.3.1) with solr (v 5.0.0) and pysolr (v 3.0.0). I've been following the tutorial, and have set up similar myapp/search_indexes.py and search/indexes/myapp/mymodel_text...
Ark asked 31/3, 2015 at 6:2

1

Solved

I'm experiencing a problem with Apache Solr where I'm receiving fields wrapped in lists in JSON responses but they should be singular. Here is an exerpt from schema.xml, two example fields giving m...
Heredity asked 24/5, 2015 at 19:45

5

I needed a simple search tool for my django-powered web site, so I went with Haystack and Solr. I have set everything up correctly and can find the correct search results when I type in the exact p...
Genniegennifer asked 8/12, 2010 at 19:51

1

Solved

The results that are being returned from haystack, using an elasticsearch backend seem erroneous to me. My search index is as follows: from haystack import indexes from .models import IosVideo cl...
Sedation asked 5/3, 2015 at 21:37

1

Solved

The Haystack documentation states that: Additionally, we’re providing use_template=True on the text field. This allows us to use a data template (rather than error-prone concatenation) to build ...
Alisiaalison asked 27/4, 2015 at 6:22

1

I'm trying to index a model in Solr with django-haystack, but it returns me the following error(when using rebuild_index or update_index) : Failed to add documents to Solr: [Reason: Error 404 Not ...
Sisal asked 7/5, 2013 at 5:41

2

Currently using Haystack 2.1 with Tables2(Dev 0.16) to manage queries using Elastisearch. When I attempt a search I get the following error messsage: Expected table or queryset, not 'str'. Details ...
Manes asked 14/3, 2014 at 17:34

3

Solved

This is driving me a bit mad but seems like it should be simple. I'm using Django and Haystack and have a search index including an IntegerField which allows null. This is based on a related model...
Tamper asked 14/11, 2013 at 11:51

2

Using prepare_FOO(self, object) method, I'm trying to index a ForeignKey to get the name attribute of my tags (travel, family, ...) This is my model class Blog(models.Model): title = models.Char...
Akeyla asked 19/11, 2013 at 20:41

4

Solved

I am new to python and django. I had django running properly in my machine, till I installed django-haystack. I directly downloaded django-haystack.zip from github and executed 'python setup.py ins...
Landbert asked 12/11, 2011 at 19:6

4

I have a very generic view/template to display the contents of a queryset of a given model. I use from 12 places with 12 different querysets, now I wanted to integrate the haystack search in there ...
Cambrai asked 30/11, 2012 at 9:47

2

Solved

I use haystack 1.2.6 with Whoosh 2.4 and Django 1.3. Let's say that we have the below model describing an hypothetical post. Post(models.Model): title = models.CharField() body = models.TextFiel...
Dispread asked 4/9, 2012 at 11:29

1

I would like to know, how I could use django-rest-framework to provide a paginated json result from a get request q=thisterm. I understand the haystack end of things using SearchQuerySet.filter(co...
Slash asked 31/8, 2014 at 8:17

© 2022 - 2024 — McMap. All rights reserved.