W
W
wbb2013-07-11 17:05:00
PostgreSQL
wbb, 2013-07-11 17:05:00

How to do a quick full text search?

For a project, some analogue of stackoverflow.com, only on mobile topics - http://www.uagadget.com , it is required to implement a full-text search for questions and answers.

Server capacities are currently not great, as is often the case with all startups. Therefore, I want to ask you, what is the best full-text search engine to use? It is necessary that the search be fast and not very demanding on resources (in particular, on RAM). Search by native PostgreSQL tools, I think, can be quite "cargo".

What are your opinions?

Answer the question

In order to leave comments, you need to log in

7 answer(s)
A
Antalhen, 2013-07-11
@wbb

Consider Sphinx as an option . Fast index building, fast search.
More: habrahabr.ru/hub/sphinx/posts/
And also a comparison of full-text search engines .

H
hell, 2013-07-12
@hell

Generally speaking, PostgreSQL's built-in full-text search is quite fast. That is, brakes under the boundary conditions of searching for 1,000,000 documents (the volume of each is from 1,000 to 300,000 characters, the average document size is 2,000 characters) are generally not observed. In any case, on a dedicated server (in this particular case, Hetzner is used with 24Gb of memory, of which PostgreSQL eats about a quarter, the PostgreSQL version is 9.2 - the results were slightly different on earlier versions.)
I would recommend trying to test your current configuration for performance with different engines. And, in the case of using postgres, do not use highlighting results.

W
WieFix, 2013-07-11
@WieFix

Sphinx, Lucene?

P
pav, 2013-07-11
@pav

Look towards Solr. Regarding system requirements and calculation of resources, you can read here and here + calculation in excel

M
Maximus43, 2013-07-11
@Maximus43

I have a PostgreSQL + Sphinx bundle on my project. Everything works great, it does not eat a lot of resources.

R
Renat Ibragimov, 2013-07-12
@MpaK999

Put a search form from Yandex or Google.

M
Michael, 2013-07-12
@mtyurin

www.depesz.com/2010/10/17/why-im-not-fan-of-tsearch-2/
yet another good test

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question