pg_search icon indicating copy to clipboard operation
pg_search copied to clipboard

Phrase Search

Open arcreative opened this issue 4 years ago • 1 comments

Apologies if I missed something, but is there support for phrase searches like "business analyst" in the middle of a search string, like the following:

word1 "word2 word3" word4

Where the results include word1 or word2 anywhere, but only word2 and word3 in proximity? It looks like this is supported with Postgres' term & term or term <-> term search, but it looks like the pg_search query parser splits the queries in a more basic way.

arcreative avatar Sep 14 '19 18:09 arcreative

@nertzy Any possibility the parser could recognize quoted phrases when separating search terms? I don't think we need full lucene or anything, but some of the native functions of PG might be nice. Quite a few people at my company are angry at me at the moment since our search functionality is lacking!

arcreative avatar Oct 27 '20 21:10 arcreative