Re: Full text index not being used

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Alex <alex(at)liivid(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Full text index not being used
Date: 2009-02-01 20:39:06
Message-ID: 4986086A.4050607@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> I tried to create an index including all of the fields I query on to
> see if that would work, but I get an error the the index row is too
> large:
>
> => create index master_index on source_listings(geo_lat, geo_lon,
> price, bedrooms, region, city, listing_type, to_tsvector('english',
> full_listing), post_time);
It's not a fulltext index - btree doesn't support @@ operation. Read
carefully: http://www.postgresql.org/docs/8.3/static/textsearch.html ,
and about full text indexes:
http://www.postgresql.org/docs/8.3/static/textsearch-tables.html ,
http://www.postgresql.org/docs/8.3/static/textsearch-indexes.html

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Smith 2009-02-01 20:43:18 Re: Pet Peeves
Previous Message Greg Smith 2009-02-01 20:29:06 Re: Pet Peeves?