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
1
vote
1 answer

Whoosh Functionality

I have over 700 small, locally stored text files (no more that 2Kb large). Each file is located in a folder such as: 2012//05//18.txt 2013//09/22.txt 2014//11//29.txt (each file represents a day). The content contains daily "incident"…
Michael Moreno
  • 219
  • 2
  • 9
1
vote
0 answers

Django Haystack Whoosh raising Attribute Error on contenttype object

This is a bit strange as the error is not raising in Xapian. I'm on django-haystack==1.2.7 and Whoosh==2.4.1. Its able to build indexes but when I run a search, its saying AttributeError at /search 'NoneType' object has no attribute…
Iamcool
  • 1,387
  • 2
  • 12
  • 24
1
vote
2 answers

Flask-WhooshAlchemy: Searching for 'not'

I just got through the Flask mega-tutorial's section on implementing full text search with Flask-WhooshAlchemy (http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-x-full-text-search) and I have the posts below: >>>…
mvwi
  • 243
  • 1
  • 2
  • 7
1
vote
0 answers

Whoosh didn't index all documents

I am using django-oscar e-commerce, backed with whoosh implementation for haystack searching. My shop contains of almost 70k items: >>> from catalogue.models import Product >>> Product.objects.all().count() 69084 but apparently the index contains…
1
vote
1 answer

Whoosh NestedChildren search not returning all results

I'm making a search index which must support nested hierarchies of data. For test purposes, I'm making a very simple schema: test_schema = Schema( name_ngrams=NGRAMWORDS(minsize=4, field_boost=1.2), name=TEXT(stored=True), …
1
vote
3 answers

How flask-whooshalchemy index data imported manually?

I'm using flask-whooshalchemy on sqlite, and mannually imported a lot of data, now whoosh can search none of it. I think it's because whoosh haven't indexed any of the data, right? How could I add whoosh index on those data manually?
Kane Blueriver
  • 4,170
  • 4
  • 29
  • 48
1
vote
0 answers

I got import error while commiting to sqlite3 using flask-SQL alchemy

It's strange, I'm just trying to update a value in sqlite3 database using flask-sqlalchemy. anime = Anime.query.get(2) anime.finished=2 db.session.add(anime) db.session.commit() Everything is OK before commiting, then I got a "ImportError: No…
Kane Blueriver
  • 4,170
  • 4
  • 29
  • 48
1
vote
1 answer

Django haystack+whoosh error

I'm trying to make a search in my django app then i used haystack and whoosh but i faced some troubles. first when i tried to rebuild_index or update_index it gives me this error right down below, also second one is when i typed and search it gave…
Zorig
  • 585
  • 1
  • 10
  • 26
1
vote
1 answer

How to index string with underscore in Django with Haystack/Whoosh

I am trying to implement search with Haystack and Whoosh in a Django project. The CharField I am trying to index has data like something_like_this. But it won't show up in the search result if I search for 'something' or 'this. It only works if I…
user1499532
  • 315
  • 1
  • 3
  • 10
1
vote
1 answer

python - Deep imports

I'm working on a project that uses whoosh. I wish to leave the source tree of whoosh in-place and be able to import from higher levels. The location of the actual whoosh module is: project\libs\whoosh\src\whoosh I wish to import as: import…
dilbert
  • 3,008
  • 1
  • 25
  • 34
1
vote
3 answers

Django Haystack indexing is not working for many to many field in model

I am using haystack in our django application for search and search is working very fine. But I am having an issue with reamtime search. For realtime search I am using haystack's default…
Nikhil N
  • 4,507
  • 1
  • 35
  • 53
1
vote
1 answer

Extract text from ms office files with python

I'm looking for a simple way to extract text from excel/word/ppt files. The objective is to index contents in whoosh for search with haystack. There are some packages like xlrd and pandas that work for excel, but they go way beyond what I need, and…
misterte
  • 977
  • 1
  • 11
  • 21
1
vote
1 answer

Django Haystack and Whoosh: no column exception when sorting

I have a userprofile search index, like so: class UserProfileIndex(SearchIndex, Indexable): text = CharField(document=True, use_template=True) last_name = CharField(model_attr='last_name', indexed=True) country =…
Stuart Marsh
  • 241
  • 2
  • 9
1
vote
2 answers

Haystack SearchQuerySet won't filter on a CharField with one character (Whoosh / django-haystack)

I'm using Django 1.5.1 with django-haystack 2.1.0 and the whoosh 2.5.2 backend: models.py: GENDER_CHOICES = ( (u'M', u'Male'), (u'F', u'Female'), ) class Applicant(models.Model): gender = models.CharField(max_length=1,…
Marcel Zanoni
  • 128
  • 1
  • 11
1
vote
1 answer

Haystack SearchIndex model_attr not following relation correctly?

I'm using Django Haystack v2.0.0 and Whoosh v2.4.0. According to Haystack's documentation search indexes can use Django's related field lookup in the model_attr parameter. However, running the following code using manage.py shell command: from…
knbk
  • 52,111
  • 9
  • 124
  • 122