pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: bosamia.karan@gmail.com
Subject: BUG #18580: The pg_similarity appears to be wrong
Date: Mon, 12 Aug 2024 09:58:07 +0000
Message-ID: <18580-11fe381a9adde140@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18580
Logged by:          Karan Bosamia
Email address:      bosamia.karan@gmail.com
PostgreSQL version: 14.10
Operating system:   Ubuntu
Description:        

SELECT *
FROM (
  SELECT 
    *, 
    similarity(provision_clean_description, 'Policies The General Partner
shall promptly notify the Investor of any proposed changes in the Funds
leverage policies including adjustments to leverage ratios') AS sim_tim
  FROM provision_database
) pd
  WHERE sim_tim <= 1 and sim_tim > 0.7 and firm_id=18;

This both sentences giving similarity score as 1 despite the fact that the
sentence 1. has Policies as the starting word(do not include the starting
hyphen in the sentences):
- Policies The General Partner shall promptly notify the Investor of any
proposed changes in the Funds leverage policies including adjustments to
leverage ratios
- The General Partner shall promptly notify the Investor of any proposed
changes in the Funds leverage policies including adjustments to leverage
ratios



view thread (2+ messages)  latest in thread

Message-ID: <18580-11fe381a9adde140@postgresql.org>
Permalink:  ../18580-11fe381a9adde140@postgresql.org/
Also on:    postgresql.org/message-id/18580-11fe381a9adde140@postgresql.org

 · 

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-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, bosamia.karan@gmail.com
  Subject: Re: BUG #18580: The pg_similarity appears to be wrong
  In-Reply-To: <18580-11fe381a9adde140@postgresql.org>

* 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