How to implement full-text search in Django?

36 views
Skip to first unread message

Etienne Robillard

unread,
Dec 16, 2017, 9:46:23 AM12/16/17
to django...@googlegroups.com
Hi all,

I would like some input on implementing a full-text search engine for my
website and blog.

I really don't want to use Google search API or a external webservice to
index my documents.

Also, my blog is powered by ZODB while my main website uses Durus.

Ideally, i would like to use Redis server to index my documents and
Ajax/jQuery to make a search using JSON.

I have considered Elasticsearch, but it requires Java, and I don't
really like this.

Is there any other alternatives for indexing non-relational database
objects such as ZODB ?

What do you think?


Etienne


--
Etienne Robillard
tka...@yandex.com
https://www.isotopesoftware.ca/

Egor Smolyakov

unread,
Dec 16, 2017, 11:07:24 AM12/16/17
to django...@googlegroups.com
Check out this library https://github.com/django-haystack/django-haystack

It supports a wide range of backends.
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/02c550ee-57c9-a7b6-128b-343693c98cbe%40yandex.com.
> For more options, visit https://groups.google.com/d/optout.
>


--
Kind Regards, Egor Smolyakov.

Etienne Robillard

unread,
Dec 16, 2017, 12:12:41 PM12/16/17
to Egor Smolyakov, django...@googlegroups.com
Thanks Egor. Django-haystack looks quite flexible and well-designed.

My current plan is to use redisearch plugin for Redis:
http://redisearch.io/

I'm thinking that I could write a script to import into redis a list of
URLs by fetching a RSS file as input and then use redisearch to perform
a full-text search query and return a JSON stream.

My goal is to not duplicate data between redis and zodb...

What do you think?

Etienne


Reply all
Reply to author
Forward
0 new messages