pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: PostgreSQL-documentation <pgsql-docs@postgresql.org>
Subject: Documentation bug in 8.3?
Date: Sat, 12 Jan 2008 16:32:23 -0500 (EST)
Message-ID: <200801122132.m0CLWNF28879@momjian.us> (raw)

Reading through the text search data type docs:

	http://www.postgresql.org/docs/8.3/static/datatype-textsearch.html#DATATYPE-TSVECTOR

it says:

	Optionally, integer position(s) can be attached to any or all of the
	lexemes:
	
	SELECT 'a:1 fat:2 cat:3 sat:4 on:5 a:6 mat:7 and:8 ate:9 a:10 fat:11
	rat:12'::tsvector;
	                                  tsvector
	-------------------------------------------------------------------------------
	
	 'a':1,6,10 'on':5 'and':8 'ate':9 'cat':3 'fat':2,11 'mat':7 'rat':12
	'sat':4
	
	A position normally indicates the source word's location in the
	document. Positional information can be used for proximity ranking.
	Position values can range from 1 to 16383; larger numbers are silently
	clamped to 16383. Duplicate position entries are discarded. 
	                  ----------------------------------------

However in my testing of 8.3 duplicate position entries are not
discarded:

	test=> SELECT 'a:1 b:1'::tsvector;
	  tsvector
	-------------
	 'a':1 'b':1
	(1 row)

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +



view thread (3+ messages)  latest in thread

Message-ID: <200801122132.m0CLWNF28879@momjian.us>
Permalink:  ../200801122132.m0CLWNF28879@momjian.us/
Also on:    postgresql.org/message-id/200801122132.m0CLWNF28879@momjian.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: bruce@momjian.us
  Subject: Re: Documentation bug in 8.3?
  In-Reply-To: <200801122132.m0CLWNF28879@momjian.us>

* 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