phrase search

From: Sushant Sinha <sushant354(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: phrase search
Date: 2008-06-01 02:26:22
Message-ID: 1212287182.5891.53.camel@dragflick
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

I have attached a patch for phrase search with respect to the cvs head.
Basically it takes a a phrase (text) and a TSVector. It checks if the
relative positions of lexeme in the phrase are same as in their
positions in TSVector.

If the configuration for text search is "simple", then this will produce
exact phrase search. Otherwise the stopwords in a phrase will be ignored
and the words in a phrase will only be matched with the stemmed lexeme.

For my application I am using this as a separate shared object. I do not
know how to expose this function from the core. Can someone explain how
to do this?

I saw this discussion on phrase search and I am not sure what other
functionality is required.


Attachment Content-Type Size
phrase_search.patch text/x-patch 5.1 KB


Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Treat 2008-06-01 03:22:23 Re: Feedback on blog post about Replication Feature decision and its impact
Previous Message Joshua D. Drake 2008-06-01 02:24:02 Re: Overhauling GUCS