Re: Why not keeping positions in GIN?

From: "Guillaume Smet" <guillaume(dot)smet(at)gmail(dot)com>
To: "Hitoshi Harada" <hitoshi_harada(at)forcia(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Why not keeping positions in GIN?
Date: 2007-05-25 07:36:38
Message-ID: 1d4e0c10705250036t38d22f27qbeeb6b9f80965a2f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 5/25/07, Hitoshi Harada <hitoshi_harada(at)forcia(dot)com> wrote:
> It's not only about Japanese. When you search "phrase" for text in English,
> the same logic above will be needed. I don't research about tsearch2 but is
> there any problem?? Also, in some case int-array inverted index needs the
> entry positions as well, I guess. Obtaining positions with posting lists is
> "general" enough for GIN, isn't it?
>
> Is there any future plan around it?

We talked of this with Oleg and Teodor when I worked on GIN for
pg_trgm. I know there is a long term plan to solve this issue (and
especially improve ranking in full text search).

I'm not sure the position is general enough. What I'd like to have is
the ability to add metadata. For example, in the case of pg_trgm, I'd
like to have the length of the original string as it's a strong factor
in similarity calculation. Currently, we get a lot of results which
are rechecked after the first index pass: it's not very efficient.

--
Guillaume

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas ADI SD 2007-05-25 08:16:59 Re: like/ilike improvements
Previous Message mark 2007-05-25 05:20:16 Re: like/ilike improvements