From: Oleg Bartunov <oleg@sai.msu.su>
To: Bruce Young <hbrucey@yahoo.com>
Cc: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: Re: contrib/tsearch - word order
Date: Mon, 23 Jun 2003 12:31:21 +0400 (MSD)
Message-ID: <Pine.GSO.4.56.0306231227520.2602@ra.sai.msu.su> (raw)
In-Reply-To: <20030623042717.16188.qmail@web10405.mail.yahoo.com>
References: <20030623042717.16188.qmail@web10405.mail.yahoo.com>
On Sun, 22 Jun 2003, Bruce Young wrote:
> I am playing around with contrib/tsearch, but now i am not sure how to
> implement it.
> When i insert words into a txindx column, they are not in the same order after
that's right.
> a select.
> Question is... is there a way to select text in the order it was inserted or
> do i have to insert a
> duplicate into a varchar/text column so i can display from the text column
> upon search on the
> txtindx column.
> thanks
You have to use original text anyway ( in separate column or in filesystem)
because txtidx column (tsvector in tsearch v2) not save words order but
also does some preprocessing (stemming, skipping stop words, morphology).
>
> - bruce
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: oleg@sai.msu.su, hbrucey@yahoo.com
Subject: Re: contrib/tsearch - word order
In-Reply-To: <Pine.GSO.4.56.0306231227520.2602@ra.sai.msu.su>
References: <20030623042717.16188.qmail@web10405.mail.yahoo.com> <Pine.GSO.4.56.0306231227520.2602@ra.sai.msu.su>
* 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