S
S
skorpix2015-07-14 17:03:04
Django
skorpix, 2015-07-14 17:03:04

How to do full text search with synonyms in django?

Good day to all!
I need to set up a search engine on the site. Requirements:

  • full text
  • morphological
  • search by synonyms

The first two requirements, as I understand it, are handled by sphinx. But something I heard that it was bent and is no longer supported. I used to use haystacksearch + whoosh, but there is no morphology and search by synonyms.
Let me explain what I mean by synonym search. Let's say there are goods mug, cup, bowl, bowl, etc. If the user searches for "mug", then the result should contain both cups and bowls. In principle, according to synonyms, this is not such a prerequisite, it can be neglected, but I can even find out for myself, at least for myself, how this can approximately be done, for self-development. What can you advise, what are ready-made batteries?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
U
un1t, 2015-07-14
@skorpix

Sphinx is not dead, I don't know where you heard it, the author speaks at all conferences and recently announced what will be in the 3rd version. Synonyms are supported, but you have to create a dictionary of synonyms with your hands.
Sphinx fits, Elasticsearch fits, and even Postgres' built-in fits.

I
Igor Lyutoev, 2015-07-14
@loader777

I use haystack + Solr for full-text search. Just the other day I wrote a recipe - djbook.ru/examples/68/. The link is not the easiest for a beginner.
It will not be difficult to add a search there taking into account synonyms (a line or two in the config files).
Many advise elasticsearch - I want to try it in a new project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question