[HACKERS] Missing feature in Phrase Search? - Mailing list pgsql-hackers

From Josh Berkus
Subject [HACKERS] Missing feature in Phrase Search?
Date
Msg-id baf2c067-1c13-108e-51bc-05b2b9b62e88@berkus.org
Whole thread Raw
Responses Re: [HACKERS] Missing feature in Phrase Search?  ("Sven R. Kunze" <srkunze@mail.de>)
List pgsql-hackers
Oleg, Teodor, folks:

I was demo'ing phrase search for a meetup yesterday, and the user
feedback I got showed that there's a missing feature with phrase search.Let me explain by example:


'fix <-> error' will match 'fixed error', 'fixing error'
but not 'fixed language error' or 'fixed a small error'

'fix <2> error' will match 'fixed language error',
but not 'fixing error' or 'fixed a small error'

'fix <3> error' will match 'fixed a small error',
but not any of the other strings.


This is because the # in <#> is an exact match.

Seems like we could really use a way for users to indicate that they
want a range of word gaps.  Like, in the example above, users could
search on:

'fix <1:3> error'

... which would search for any phrase where "error" followed "fix" by
between 1 and 3 words.

Not wedded to any particular syntax for that, of course.

-- 
Josh Berkus
Containers & Databases Oh My!



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [HACKERS] Unportable implementation of background worker start
Next
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] Old versions of Test::More