S
S
s1dney2014-09-15 11:46:38
Flask
s1dney, 2014-09-15 11:46:38

How to implement a full-fledged substring search in a flask application?

I screwed Flask-WhooshAlchemy with crutches, but it works rather strangely, sometimes the result is completely sudden (it searches in one line, but not in the other), I looked at the github page, but it hasn’t actually been developed in any way for a couple of years.
I haven’t looked into the code yet, and I don’t want to, I want it ready.
Advise working options.

PS. You don't need to search much, don't advise Lucene/Sphinx.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
s1dney, 2014-09-17
@s1dney

Unfortunately, at the moment, apart from whoosh-sqlalchemy, there are no options for frivolous search in flask. I had to modify it a little with a file to a satisfactory state.
But even so, it does not quite meet the basic search requirements: no pagination, no sorting of the result, and flexibility in the search (for example, you cannot search in joins). It would be better to immediately install pure whoosh and write a wrapper for it, based on current goals.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question