Can someone show me an example of how to filter fulltext search results with django-haystack using attributes? I went through the tutorial on their website but am still mot sure on how to use haystack.
For instance, let's say I have a
class Product:
class Product(models.Model):
title = models.CharField(max_length=200)
descripti...
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 "chicken" - solr can find this document
But When I search "chick" - it does not find anything..
Is there a way to fix this ?
...
hi,
I've got the Restaurant and Comment models shown below. The Comment model has a ForeignKey to Restaurant. How can I perform a search in some of the Restaurant fields and in the comment field of the Comment model which returns a list of Restaurant instances?
Thanks
class Restaurant(models.Model):
name = models.CharField(max_le...
Hi folk,
I'm using django-haystack at the moment
with apache-solr as the backend.
Problem is I cannot get the app to perform the search functionality I'm looking for
Searching for sub-parts in a word
eg. Searching for "buntu" does not give me "ubuntu"
Searching for similar words
eg. Searching for "ubantu" would give "ubuntu...
I have a haystack search which has the following SearchIndex:
class GrantIndex(indexes.SearchIndex):
"""
This provides the search index for the Grant application.
"""
text = indexes.CharField(document=True, use_template=True)
year = indexes.IntegerField(model_attr='year__year')
date = indexes.DateField(model_att...
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 order:
haystack-searched -> queryset-filtered
or
queryset-filtered -> haystack-searched
Browsing the Django Haystack documentation didn'...
Hi,
I have a problem with django-haystack. According to this tutorial I got this apps:
django-haystack
xapian-haystack
I set everything but i have this error:
django.core.exceptions.ImproperlyConfigured: 'xapian' isn't an available search backend. Available options are: 'dummy', 'solr', 'whoosh'
Why xapian is not available?
Thanks f...
During development I used whoosh as a backend, and now want to switch to
solr. I installed solr, changed the settings, to
HAYSTACK_SEARCH_ENGINE, and HAYSTACK_SOLR_URL.
Now when I try to update or rebuild the index it fails with
Failed to add documents to Solr: [Reason: None]
.
All searches are also wrong with 0 results returned for ...
I use solr+django-haystack
I set settings.HAYSTACK_INCLUDE_SPELLING = True
and rebuild index
I'm trying to get any suggestion using:
SearchQuerySet().auto_query('tryng ani word
her').spelling_suggestion()
But I always get None
What should I do to get at least one working suggestion ? may be I
need add some configuration into solr con...
I'm using django-haystack and a xapian backend with real time indexing (haystack.indexes.RealTimeSearchIndexing) of model data and it works fine on my Ubuntu server. However, it causes django to hang upon data entry when I deployed the app on a RHEL5 server.
Everything is hunky dory if I switch to a standard SearchIndex.
Running ./ma...
I'm using haystack with whoosh as backend for a Django app.
Is there any way to view the content (in a easy to read format) of the indexes generated by whoosh? I'd like to see what data was indexed and how so i can better understand how it works.
...
Hi there,
I think I don't unterstand django-haystack properly:
I have a data model containing several fields, and I would to have two of them searched:
class UserProfile(models.Model):
user = models.ForeignKey(User, unique=True, default=None)
twitter_account = models.CharField(max_length=50, blank=False)
My search index sett...
Hey,
I'm trying django-haystack with Solr and HAYSTACK_INCLUDE_SPELLING = True.
How do you access the spelling suggestions on the template (generated by the default SearchView) ?
Edit: another question: Can the Spelling Suggestion find words from the database ? For example, using the default Note model from the haystack doc, and the d...
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, morelikethis, and faceting, without the extra stuff that haystack doesn't use would go a long way to helping me understand what is needed and what isn't...
Hi there,
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-ride the SearchQuerySet by using order_by but that over-rides it entirely. Let's say I want to force the search to order by in sto...
I'm trying to run a python application on my system. When I try to execute it I get a traceback which ends with something saying I need to install Xapian. So I went ahead an installed xapian-core and xapian-bindings using macports. Then I tried to run the python application again, but got the same traceback. Any ideas about what I should...
I've installed the haystack app and I'm using the solr backend. Search works perfectly although when I try to use the more_like_this template tag, nothing is returned.
I have added <requestHandler name="/mlt" class="solr.MoreLikeThisHandler" /> to solrconfig.xml and I can make queries at http://127.0.0.1:8080/solr/mlt
The template is f...
Hi, I want to export the results I have in a Queryset that I obtain from a haystack search view. In order to do this, I've found the best way is by doing it asyncronally, so I'm using Celery and Rabbitmq to manage the task and there create the file and iterate over all the results and then notify the user via email that the file is ready...
I am currently trying out Haystack for our django based forum site. I was trying to use the simple search engine option but i get an error telling me it is not available. the haystack documentation says it is still an option and I cannot find anything about why it would not be an option anymore. Anyone have an knowledge on this? I am...
I am having some issues with django-haystack template usage. Particularly the highlight tag.
below is the line of code that is having the issue.
<h4><a href='/discuss/{{ thread.id }}/{{ thread.title|slugify }}'>{% highlight thread.title with request.GET.q max_length 40 css_class "highlight_title" html_tag "div" %}</a></h4>
I have tr...