Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > Re: Tsearch
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3527 of 3717
Post > Topic >>

Re: Tsearch

by public@[EMAIL PROTECTED] (Steve Midgley) Jun 12, 2008 at 12:45 PM

At 12:20 PM 6/12/2008, pgsql-sql-owner@[EMAIL PROTECTED]
 wrote:
>Date: Thu, 12 Jun 2008 08:47:44 -0400
>From: PostgreSQL Admin <postgres@[EMAIL PROTECTED]
>
>To: pgsql-sql@[EMAIL PROTECTED]
>Subject: Tsearch
>Message-ID: <48511AF0.30306@[EMAIL PROTECTED]
>
>
>this is a small sample of the data:
>
>                         short_desc
>|                               long_desc 
>
>----------------------------------------------------------+------------------------------------------------------------------------
>  CHICKEN,BROILERS OR FRYERS,LEG,MEAT&SKN,CKD,FRIED,BATTER | Chicken,
>broilers or fryers, leg, meat and skin, cooked, fried, batter
>
>Is the best method of search through this data full text search via
>tsearch or some other method.  I'm running version 8.3
>
>say I want to search for chicken skin?
>
>Thanks for the advice,
>J

Having previously established myself as a non-expert on TSearch2, I 
hesitate to post, but I think your issue is data semantics more than 
search tool. How do you want your system to handle this psuedo data:

Chicken broilers, ****k skins

Should that return a match for "chicken skins" or not? If your data are 
semantically stored such that any record that matches "chicken" and 
also matches "skin" refers to "the skins of chickens" (the actual 
meaning you are looking for), then you're going to have a relatively 
easy time of it.

If not, you'll have to consider ways to code your data so that searches 
behave correctly. You could develop search / coding schemes that say 
things like "find all records with chicken and skin, where the 
following words do not appear between the words chicken and skin: beef, 
****k, cow, pig, etc.."

Just some thoughts for you there.

Best,

Steve


-- 
Sent via pgsql-sql mailing list (pgsql-sql@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
 




 1 Posts in Topic:
Re: Tsearch
public@[EMAIL PROTECTED]   2008-06-12 12:45:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 21:01:58 CDT 2008.