On 03/11/10 08:41, sureronald wrote:
> Hi all,
> 
> I am using Whoosh version 1.2.5 to allow for full text search on my
> models. I was using this guideline from here
> http://www.arnebrodowski.de/blog/add-full-text-search-to-your-django-project-with-whoosh.html

Note that django-haystack [1] has a whoosh backend, though there's
obviously nothing really stopping you using whoosh directly, haystack
makes things (even) easier if you have an "ordinary" django app with a
bunch of model instances you want to index for search.

Right at this moment, though, released haystack 1.0.x will only work
with rather older whoosh owing to api changes in whoosh between 0.x and
1.x [2], so you have to do something like easy_install -U whoosh==0.3.18
to use an old version of whoosh.

As [2] says, haystack 1.1 isn't quite out yet, but it should work with
more recent whoosh (untested).

> but I keep getting the error 'module' object has no attribute
> 'FileStorage' Has this attribute has been deprecated?
> I checked and confirmed that the attribute FileStorage is actually 
>  not there but there's one with the name Storage. Is this it's
replacement?

No, that's just the abstract base class for storage backends, you
probably want "from whoosh.filedb.filestore import FileStorage"

The blog post you're following, much like haystack, was presumably
written against older whoosh, refer to the whoosh documentation.

[1] http://haystacksearch.org/

[2] https://github.com/toastdriven/django-haystack/issues/issue/241

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to