Search Postgresql Archives

tsearch synonym dictionary problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a tsearch query that does not returns results and I can not see
why. The actual data is:
   7695 s hwy 89
And in my synonym dictionary I have:
   south   s
   highway hwy
So I am expecting to get a row from the query criteria:
   7695 South Highway 89
But I don't. I do get the row with any of the following:
   7695 S Highway 89
   7695 Highway 89


Here's a little more detail. Checking my dictionary:

tc_lands=#  SELECT * FROM ts_debug('english', 'south');
   alias   |   description   | token |        dictionaries        |
dictionary | lexemes
-----------+-----------------+-------+----------------------------+-------------+---------
 asciiword | Word, all ASCII | south | {gis_synonym,english_stem} |
gis_synonym | {s}

tc_lands=#  SELECT * FROM ts_debug('english', 'highway');
   alias   |   description   |  token  |        dictionaries        |
dictionary  | lexemes
-----------+-----------------+---------+----------------------------+-------------+---------
 asciiword | Word, all ASCII | highway | {gis_synonym,english_stem} |
gis_synonym | {hwy}


And the actual query:

SELECT *
FROM parcel_attrib
WHERE txtsrch @@ to_tsquery('7695&south&Highway&89')

Any pointers as to what I am doing wrong would be greatly appreciated.

Regards,
--
Richard Greenwood
richard.greenwood@xxxxxxxxx
www.greenwoodmap.com

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux