Questions tagged [whoosh]

Whoosh is a fast, featureful, full-text indexing and searching library implemented in pure Python.

Fast, pure-Python, full text indexing, search and spell checking library. Whoosh on the Python Package Index

Whoosh Documentation

373 questions
7
votes
1 answer

Haystack search on a many to many field is not working

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.SearchIndex, indexes.Indexable): text =…
camara90100
  • 852
  • 2
  • 10
  • 18
7
votes
3 answers

Django-haystack: rebuild_index fails (haystack.exceptions.SearchFieldError) after adding `content_auto` line needed for autocomplete

I'm trying to implement yielding results for a searching only a part of a word (which is called autocomplete according to the Haystack docs if I'm not mistaken). Example: Search "gol" Result "goldfish" What have I tried? I did as asked in step 1 of…
Bentley4
  • 10,678
  • 25
  • 83
  • 134
6
votes
2 answers

Django haystack, How to search for a ManyToMany related field?

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(SearchIndex): text = CharField(document=True,…
Félix
  • 579
  • 4
  • 21
6
votes
2 answers

Django Haystack autocompletion on two (multiple) fields

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.TextField() We built our post index like this for…
geros
  • 97
  • 9
6
votes
1 answer

text searching with whoosh

I am tyring to test Whoosh for text searching and right now a simple contrived example is not working for me. I assume I am missing something here. In the following code I would expect it give a single search result but I get 0 hits. import…
Abhi
  • 6,075
  • 10
  • 41
  • 55
6
votes
2 answers

Django haystack, priority for some fields in search

I have a model like this: class MyModel(models.Model): desc1 = models.TextField(blank=True, default="") desc2 = models.TextField(blank=True, default="") I want to search string on fields of this model. Assume these instances of MyModel: 1:…
Pooria Kaviani
  • 748
  • 1
  • 8
  • 17
5
votes
1 answer

taggit and haystack+whoosh

I have a puzzle, my haystack+whoosh works just fine:) I can search through f.e. name of the content. BUT I want to add "taggit" to my core-model and search through tags then I have NO results:// and I don't know why. More precisely I know that…
nykon
  • 605
  • 2
  • 9
  • 19
5
votes
2 answers

MongoDB and Whoosh. Do I need both?

I am working on the project that uses MongoDB and Whoosh. I wonder if the Whoosh is necessary if I can use MongoDB search. I am sure Whoosh was setup in the system for good, but I am not sure I understand right its purpose. Please give me some idea…
Sergei Basharov
  • 51,276
  • 73
  • 200
  • 335
5
votes
1 answer

Searching and indexing hyphenated words with Whoosh

I am using Whoosh to index and search a large number of documents, and many of the things I need to search on are hyphenated. Whoosh seems to treat hyphens as a special character of some kind, but for the life of me I can't figure out it's behavior.…
Jeremy Watson
  • 248
  • 1
  • 5
5
votes
2 answers

Django-Haystack + Whoosh - Are misspelling suggestions possible?

I'm using Whoosh and Django-Haystack. I would like to make use of query suggestions for when users mistype words. e.g. Maybe you meant "unicorn" Is it necessary to use another search engine? Or can I successfully achieve this with Whoosh?
RadiantHex
  • 24,907
  • 47
  • 148
  • 244
5
votes
1 answer

How to get all "index data" using whoosh

I use whoosh for full text search , and I want to know: how to get all 'index data' that has been added. This is my main.py: import cgi,os from google.appengine.ext import webapp from google.appengine.ext.webapp import template from…
zjm1126
  • 63,397
  • 81
  • 173
  • 221
5
votes
0 answers

EmptyIndexError - Index 'MAIN' does not exist in

I am testing out Whoosh on a project by following their quickstart guide: http://whoosh.readthedocs.org/en/latest/quickstart.html The only difference is, my project is running off of Google App Engine, so instead of: ix = create_in("indexdir",…
CoffeeJack
  • 123
  • 5
5
votes
2 answers

Character folding for a Django haystack and whoosh

I have a django based app with haystack and whoosh search engine. I want to provide an accent and special character independent search so that I can find indexed data with special characters also by using words without special chars: Indexed…
paweloque
  • 18,466
  • 26
  • 80
  • 136
5
votes
1 answer

How to use n-grams in whoosh

I'm trying to use n-grams to get "autocomplete-style" searches using Whoosh. Unfortunately I'm a little confused. I have made an index like this: if not os.path.exists("index"): os.mkdir("index") ix = create_in("index", schema) ix =…
Alex S
  • 4,726
  • 7
  • 39
  • 67
5
votes
1 answer

Django Haystack random errors using Whoosh

I am using django-haystack and Whoosh on my Ubuntu server and finding that certain search queries just raise an error page, and I have no idea why this is happening... I am using the following ones Whoosh==2.4.0 django-haystack==1.2.7 And I also…
ApPeL
  • 4,801
  • 9
  • 47
  • 84
1
2
3
24 25