Note: This question originally applied to Xapian, but due to cross-platform issues and poor understanding of Xapian I (our team) chose Solr instead.
I'm looking for snippets, tricks, tips, links, and anything to watch out for (gotchas). My technology stack includes:
MySQL 5.1 (Not really pertinent)
Red Hat and Windows configurations w...
This questions is about Django Haystack, with Whoosh backend.
I would like to use spelling suggestion in my search. The problem is that it is suggesting TOO much.
Say I have two models:
Apples and Oranges.
If I have somethine like this:
result = SearchQuerySet().models(Apples).filter(
content=escaped_value).spelling_suggestion(esc...
I'm trying to setup haystack with whoosh backend. When i try to gen the index [or any index command for that matter] i receive:
TypeError: Item in ``from list'' not a string
if i completely remove my search_indexes.py i get the same error [so i'm guessing it can't find that file at all]
what might cause this error? it's set to autodi...
Hi,
I a string that is coming from my database table say $needle.
If te needle is not in my array, then I want to add it to my array.
If it IS in my array then so long as it is in only twice, then I still
want to add it to my array (so three times will be the maximum)
In order to check to see is if $needle is in my $haystack array, do...
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'...
I have a simple config of haystack/solr on my django app:
from the models.py of this app:
class device(models.Model):
...
hostname = models.CharField(max_length=45, help_text="The hostname for this device")
...
from the search_sites.py of this app:
class devIndex(indexes.SearchIndex):
'''Haystack class to allow for i...
I'm implementing a search system onto my django project, using django haystack. The problem is that some fields in my models have some french accents, and I would like to find the entries which contents the query with and without accents.
I think the best Idea is to create a SearchIndex with both the fields with the accents, and the sam...
I'm trying to integrate Haystack with Solr. When I try to build the index, I get an error
"Unknown field django_id" from SOLR. What's causing this to happen?
...
I need Haystack to send Solr range queries of the type q=age:[10 TO 15]. It messes up the querystring by tokenizing and adding the default operator AND. In this example, Solr receives the query as age:[10 and TO and 15] and it doesn't work.
...
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...
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 guys!
I am running Python 2.6, the lastest haystack, django 1.2 beta and I have tried both Woosh and Xapian backends.
The problem is that I cannot do a __lt or __gt filter on an integer field - when such is used,there are always none results found...
My model:
# -*- coding: utf-8 -*-
from django.db import models
from django...
Hi all, I'm new to Haystack and to the search world so I didn't know how to ask this question.
What I want to achieve is the following.
Having a search query like: one two
I would like to get returned any content like:
This one
one
two
two one
something one here
Is this possible with Haystack + solr/xapian?
Is also possible to ha...
When rebuilding my indices via ./manage.py rebuild_index I get this error:
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/Library/Python/2.6/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/Library/Python/2.6...
Many languages in Europe are inflectional. This means that one word can be written in multiple forms in text. For example, word 'computer' in polish "komputer" has multiple forms: "komputera", "komputerowi", "komputerem", "komputery" , etc..
How should I use django+haystack+whoosh properly to deal with language inflection?
Whenever I...
I'm running Haystack + Whoosh under a Debian vserver setup with only 128MB for the /tmp directory and am running out of space in it during indexing (the individual Whoosh tmp files are 25MB+). I'd love to increase the tmp folder size, but that's out of my control.
Is there a way to instruct Haystack or Whoosh to use an alternate tmp dir...
I've read the getting started documentation and several other examples on the web.
And this is what my search_indexes.py looks like:
from haystack.indexes import *
from haystack import site
from models import Entry
class EntryIndex(SearchIndex):
text = CharField(document=True)
headline = CharField(model_attr='headline')
sub...