pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Puneet Mishra <puneetm@tradeindia.com>
To: pgsql-sql@postgresql.org
Subject: Order preservation of search phrases in postgresql FTS/OpenFTS
Date: Wed, 18 Jul 2012 12:18:13 +0530 (IST)
Message-ID: <6455362.707251342594093871.JavaMail.root@zmbox01.trade-india-local.com> (raw)
In-Reply-To: <2581995.698861342593306050.JavaMail.root@zmbox01.trade-india-local.com>

Dear List , 


Is there anyway to penalize (severly) the ranking of those documents where the 
vector items do not appear in the same order as the items of to_tsquery ie 
the initial search terms. 

For example if a keyword "Red Wine" is searched then it should only match "Red Wine" or "Red Grape Wine" or, 
but should not match "Wine Red color" or "Wine ..... .... .. .. Red" etc. 

Currently it penalizes but not as severely as we would want it to. 

Also any pointers to the places (in source code) where things can be tweaked 
shall be greatly appreciated. 

Regards, 

Puneet Mishra 

Message-ID: <6455362.707251342594093871.JavaMail.root@zmbox01.trade-india-local.com>
Permalink:  ../6455362.707251342594093871.JavaMail.root@zmbox01.trade-india-local.com/
Also on:    postgresql.org/message-id/6455362.707251342594093871.JavaMail.root@zmbox01.trade-india-local.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: puneetm@tradeindia.com
  Subject: Re: Order preservation of search phrases in postgresql FTS/OpenFTS
  In-Reply-To: <6455362.707251342594093871.JavaMail.root@zmbox01.trade-india-local.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox