Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: tsearch2: word position


  • From: Markus Schiltknecht <markus(at)bluegap(dot)ch>
  • To: Teodor Sigaev <teodor(at)sigaev(dot)ru>
  • Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
  • Subject: Re: tsearch2: word position
  • Date: Thu, 22 Feb 2007 15:18:47 +0100
  • Message-id: <45DDA647(dot)5000103(at)bluegap(dot)ch>

Hi,

Teodor Sigaev wrote:
I'm fiddling with to_tsvector() and parse() from tsearch2, trying to get the word position from those functions. I'd like to use the tsearch2 parser and stemmer, but I need to know the exact position of the word as well as the original, unstemmed word.

It's not supposed usage... Why do you need that?

Counter question: what's the supposed usage of the word number? Why would anyone be interested in that? You always need to parse the text yourself, to be able to get any use from the word number.

to_tsvector() could as well return the character number or a byte pointer, I could see advantages for both. But the word number makes little sense to me.

Regards

Markus








Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group