From: | "Erik Rijkers" <er(at)xs4all(dot)nl> |
---|---|
To: | pgsql-docs(at)postgresql(dot)org |
Subject: | prefix search in tsearch |
Date: | 2010-08-31 21:31:02 |
Message-ID: | ac8b2e9843ba8af2c032635f73a854a9.squirrel@webmail.xs4all.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
[docs from cvs HEAD]
I found the text-search documentation a little unclear about 'prefix search'; specifically, the
examples do not show that the so-called 'prefix' is first stemmed, before it is used as prefix.
For instance, the following can be a little surprising:
SELECT to_tsvector( 'postgraduate' ) @@ to_tsquery( 'postgres:*' );
?column?
----------
t
(1 row)
Because prefix search is such an important functionality I think this should be better explained,
which I hope the attached doc-patch does.
(In textsearch.sgml is another mention + example of prefix search, perhaps it should be extended a
little there too - which I'm happy to do as well, but I first wanted to see if you agree that it
is a little too obscure as it stands)
Erik Rijkers
Attachment | Content-Type | Size |
---|---|---|
datatype.sgml.diff | text/x-patch | 815 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Thom Brown | 2010-09-01 08:36:17 | Re: [pgsql-www] Example indenting |
Previous Message | Kevin Grittner | 2010-08-31 20:59:47 | Re: [pgsql-www] Example indenting |