From: | Yoann Moreau <yoann(dot)moreau(at)univ-avignon(dot)fr> |
---|---|
To: | Florian Pflug <fgp(at)phlo(dot)org> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Term positions in GIN fulltext index |
Date: | 2011-11-04 14:26:01 |
Message-ID: | 4EB3F5F9.4020909@univ-avignon.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 04/11/11 12:15, Florian Pflug wrote:
> AFAICS, the internal storage layout of tsvector should allow you to extract an
> individual lexem's positions quite efficiently (with time complexity log(N) where
> N is the number of lexems in the tsvector). Doing so will require you to implement
> your function in C though - any solution that works from a tsvector's textual
> representation will obviously have time complexity N.
>
> best regards,
> Florian Pflug
>
I'll do a pl/pgsql function first, I need to test it with other parts of
the project. But I will look for more efficient algorithms for a C
function as soon as possible if we still decide to use the postgresql
fulltext engine.
Regards,
Yoann Moreau
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2011-11-04 14:28:23 | Re: removing =>(text, text) in 9.2 |
Previous Message | Magnus Hagander | 2011-11-04 14:24:46 | Re: Show sequences owned by |