Tagged Questions
2
votes
2answers
34 views
When to use Haystack/ElasticSearch vs Django's ORM
So I implemented Haystack with ElasticSearch a week ago within our BETA application. One thing I can notice is that getting some data (large amount) back to our users (for example listing all the ...
0
votes
1answer
18 views
haystack with elastic search creating one modelresult table for multiple search_indexes
Recently am trying to shift the search feature on my site from using xapian to elasticsearch. I have in my application two search_indexes and when searching am showing results in side by side in the ...
0
votes
1answer
27 views
Get foreign key object in SearchQuerySet results Haystack
I have the following models:
class EquipmentModel(models.Model):
name = models.CharField(max_length=64, blank=False)
description = models.CharField(max_length=64, blank=True)
manufacturer ...
0
votes
1answer
40 views
Elasticsearch and auto_query
In the database objects are named news and news test
class ItemIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True)
name = ...
0
votes
1answer
159 views
Rebuilding ElasticSearch index using django-haystack rebuild_index command
I am trying to get ElasticSearch / Haystack set up on my local dev environment (vagrant VM running Ubuntu 12.04), and I can't work out the re-indexing process.
ES is running, and I have created a new ...
0
votes
0answers
55 views
Haystack: one searchIndex for multiple models
On the getting started page of Haystack, it describes the possibility of using one SearchIndex for multple models:
You generally create a unique SearchIndex for each type of Model you
wish to ...
1
vote
1answer
123 views
AttributeError: 'module' object has no attribute 'ElasticSearchError' : Using Haystack Elasticsearch
Using Django & Haystack with ElasticSearch.
After installing haystack and ES, and Rebuilding Index
./manage.py rebuild_index
WARNING: This will irreparably remove EVERYTHING from your search ...
0
votes
1answer
135 views
Setting up elasticsearch with Haystack
I used to be using Whoosh as a search backend but now I'm switching to elasticsearch and trying to get things working.
When trying to rebuild the index I get the error:
...
0
votes
1answer
97 views
Implementing an auto-suggest feature (not auto-complete)
I am using django haystack (with ElasticSearch search engine) and wants to implement an auto-suggest feature which is different from auto-complete.
For e.g. consider a small data set (table rows) ...
3
votes
3answers
303 views
Django Haystack/ElasticSearch indexing process aborted
I'm running a setup with django 1.4, Haystack 2 beta, and ElasticSearch .20. My database is postgresql 9.1, which has several million records. When I try to index all of my data with ...
0
votes
1answer
190 views
django-haystack: Predicting facets
I am trying to see if the django-haystack is good for my faceting needs. Currently I want to display number near my facets. Lets say we have a model shown in their docs, but with an extra field for ...
1
vote
1answer
185 views
django-haystack elasticsearch as backend and searchengine
Is it possible without defining another DB as backend use elasticsearch as DB and searchengine In most tutorials another DB backend is indexed by elasticsearch. But I want to use elasticsearch as main ...
0
votes
2answers
76 views
How do you get results for queries that do not exactly match the indexed text with ElasticSearch?
This string is indexed: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
My query is: "Hello world. Lorem ipsum dolor sit ...
0
votes
1answer
94 views
is search query set's __contains filter of any use?
I am running django-haystack v2.0.0 with pyelasticsearch v0.3 in one of my projects. I have a SearchView that renders a listing template and i want to integrate result filtering. The search runs fine, ...
2
votes
2answers
333 views
Django-Haystack elasticsearch prefetch error
i'm new to haystack and elasticsearch, so sorry in advance for a possibly lame question
when trying to ./manage.py rebuild_index, i'm getting the error:
TypeError: request() got an unexpected ...
0
votes
1answer
164 views
Querying ElasticSearch to order empty strings last
I am using Django, Haystack, and ElasticSearch. I want to order my search results so that results where the ordered field value is empty ("") come after results where it is not empty. I cannot find an ...
0
votes
1answer
186 views
Accessing dict elements with leading underscores in Django Templates
I am trying to access elements of a dict with keys that start with the underscore character. For example:
my_dict = {"_source": 'xyz'}
I'm trying to access them in a Django template. Obviously I ...
1
vote
2answers
703 views
IndexMissingException - django haystack with elasticsearch
I am trying to setup haystack search with elasticsearch backend
I am receiving the following error:
./manage.py rebuild_index
...
Failed to clear Elasticsearch index: (404, ...
0
votes
0answers
146 views
Faceted search in Haystack returning strange results
The code below should be fairly self-explanatory; I'm getting too many results back from Haystack, and I have no idea why.
# using Haystack 2.0 beta pyelasticsearch 0.1, and ElasticSearch 0.19.11
...
0
votes
1answer
82 views
How do I query for empty MultiValueField results in Django Haystack
Using Django 1.4.2, Haystack 2.0beta, and ElasticSearch 0.19, how do I query for results which have an empty set [] for a MultiValueField?
0
votes
1answer
181 views
ElasticSearch/Solr - Synonyms for a product site?
I'm trying to setup a synonym database for ElasticSearch. I believe Solr uses the same synonym format.
The web application I'm working on is a Python/Django based electronics product site.
Any ...
0
votes
1answer
89 views
Search - Calculating relevance based on how close keywords are to the far left?
I'm currently using ElasticSearch, Python/Django and Django-Haystack.
I wish to have items rank based on how close keywords are to the far left.
Example
Items are
Jeff is friends with John, ...
1
vote
1answer
219 views
ElasticSearch index used by Haystack is corrupted by an unknown cause
I notice that running rebuild_index from the Python shell causes problems with sorting. Running rebuild_index from Bash does the right thing.
$ bin/manage rebuild_index
WARNING: This will irreparably ...
1
vote
2answers
157 views
Django Haystack - are facets limited to 10?
I'm indexing a list of products and each product has a list of categories. Categories are about 1000.
In the search page I would like to list all the categories which have more than 1 result.
I'm ...
0
votes
0answers
48 views
how to use analyzer “ik" in haystack
As we know, ik analyzer is a plugin of elasticserach. When I use haystack to create indexes, I just need type python manage.py rebuild_index. I dont know if it create indexes through analyzer. If not, ...
2
votes
1answer
125 views
Haystack with mongoengine documents
In a Django project, I have some mongoengine's documents to be indexed in elasticsearch.
For this purpose, I was looking for django-haystack which is simple, well-documented and widely used.
...
0
votes
1answer
254 views
Django-Haystack : How to limit search to objects owned by user?
I have successfully made django-haystack with elasticsearch to work.
In the example below, I can search for any sales item and it would show up in the results.
I have created an Index:
class ...
1
vote
1answer
76 views
what is model based search?
When I reading haystack document, I got Haystack is very Model-based and doesn’t work well outside of that use case.. What is model based search and model based data. Does google or bing search engine ...
5
votes
1answer
214 views
Managing a pool of connections to a hosted Elastic Search provider
I need a way to manage connections to a hosted Elastic Search provider, to speed up search on my website. We are running Django on Heroku, using the Found ElasticSearch add-on, and pyes, which is an ...
1
vote
1answer
230 views
how do i use a boolean field in django-haystack search query
I'm using django-haystack to power search for my application and I have boolean fields i would like to filter my models by. However, when I try doing this, my search query fails.
The search backend ...