Re: [SQL] Full text search ordering question

2008-11-25 Thread John Lister
Thanks for the reply and apologies, it was my first post. I'm running on PG 8.3.3 (ubuntu), i haven't tried gin as that doesn't support multi-column. I haven't used 8.4 as it is still in development? a sample query is as follows select node_id from breadcrumbs where textsearchable @@ to_tsque

Re: [SQL] Full text search ordering question

2008-11-25 Thread Oleg Bartunov
John, it's a good tradition to include query and their EXPLAIN ANALYZE. Pg version is also useful. Did you try GIN index ? In 8.4 you can use gin index on (views,tsvector) Oleg On Tue, 25 Nov 2008, John Lister wrote: Hi, is it possible to order the results of a full text search using another

[SQL] Full text search ordering question

2008-11-25 Thread John Lister
Hi, is it possible to order the results of a full text search using another field? for example with the following table: CREATE TABLE breadcrumbs ( node_id integer NOT NULL, breadcrumb character varying, textsearchable tsvector, views integer, CONSTRAINT pk_breadcrumbs PRIMARY KEY (node_id