Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
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.

http://archives.postgresql.org/pgsql-general/2008-02/msg01170.php

-Sushant.

Attachment: phrase_search.patch
Description: text/x-patch (5.1 KB)

Responses

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group