X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 38C0A30F410 for ; Mon, 23 Jun 2003 08:31:52 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 10341-04 for ; Mon, 23 Jun 2003 05:31:41 -0300 (ADT) Received: from ra.sai.msu.su (ra.sai.msu.su [158.250.29.2]) by svr1.postgresql.org (Postfix) with ESMTP id 2FB5A30F52C for ; Mon, 23 Jun 2003 05:31:33 -0300 (ADT) Received: from ra (ra [158.250.29.2]) by ra.sai.msu.su (8.9.3/8.9.3) with ESMTP id MAA09306; Mon, 23 Jun 2003 12:31:21 +0400 (MSD) Date: Mon, 23 Jun 2003 12:31:21 +0400 (MSD) From: Oleg Bartunov X-X-Sender: megera@ra.sai.msu.su To: Bruce Young Cc: PostgreSQL Admin Subject: Re: contrib/tsearch - word order In-Reply-To: <20030623042717.16188.qmail@web10405.mail.yahoo.com> Message-ID: References: <20030623042717.16188.qmail@web10405.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200306/281 X-Sequence-Number: 9272 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