Re: phrase search - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Re: phrase search
Date
Msg-id 48480836.6000306@sigaev.ru
Whole thread Raw
In response to Re: phrase search  (Sushant Sinha <sushant354@gmail.com>)
Responses Re: phrase search  (Sushant Sinha <sushant354@gmail.com>)
List pgsql-hackers
> I can add index support and support for arbitrary distance between
> lexeme. 
> It appears to me that supporting arbitrary boolean expression will be
> complicated. Can we pull out something from TSQuery?

I don't very like an idea to have separated interface for phrase search. Your 
patch may be a module and used by people who really wants to have a phrase search.

Introducing new operator in tsquery allows to use already existing 
infrastructure of tsquery such as concatenations (&&, ||, !!), rewrite subsystem 
etc.  But new operation/types specially designed for phrase search makes needing 
to make that work again.

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
  WWW: http://www.sigaev.ru/
 


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Overhauling GUCS
Next
From: Tom Lane
Date:
Subject: Re: Overhauling GUCS