F
F
fantom_ask2020-08-05 15:47:32
Django
fantom_ask, 2020-08-05 15:47:32

How to make an inaccurate name comparison?

I want to display posts by search match level for
example if I have

['машина красная',
'телефон красный',
'самолет коричневый',
'машинка синяя',
'дом желтый',
'ель обыч.']

and I'm looking for .filter(_title__contains = 'car is red') then at the output I should get
['машина красная',
'машинка синяя',
'телефон красный',
'самолет коричневый',
'дом желтый',]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Tikhonov, 2020-08-05
@tumbler

Postgres can do full-text search, for other databases you will have to install a separate search engine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question