Re: tsearch2: word position - Mailing list pgsql-general

From Markus Schiltknecht
Subject Re: tsearch2: word position
Date
Msg-id 45DDAD31.5000901@bluegap.ch
Whole thread Raw
In response to Re: tsearch2: word position  (Teodor Sigaev <teodor@sigaev.ru>)
Responses Re: tsearch2: word position  (Teodor Sigaev <teodor@sigaev.ru>)
List pgsql-general
Hi,

Teodor Sigaev wrote:
> Word number is used only in ranking functions. If you don't need a
> ranking than you could safely strip positional information.

Huh? I explicitly *want* positional information. But I find the word
number to be less useful than a character number or a simple (byte)
pointer to the position of the word in the string.

Given only the word number, I have to go and parse the string again.

Regards

Markus


pgsql-general by date:

Previous
From: brian
Date:
Subject: Re: Checking for string data that makes sense Re: postgresql vs mysql
Next
From: Martijn van Oosterhout
Date:
Subject: Re: postgresql vs mysql