dbTalk Databases Forums  

Keyword search in spatial database

comp.databases.postgresql comp.databases.postgresql


Discuss Keyword search in spatial database in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kavita
 
Posts: n/a

Default Keyword search in spatial database - 01-06-2010 , 01:26 AM






Hi all,
i am a master's student. I have to do a keyword search for spatial
database. I have the data set of a particular district in India. I
have a data model too.
Can some one help me through this task.

My question is - it is a single word (keyword) search. I have the
database schema too. How do i search this keyword through this schema
or the entire data. How do i convert this keyword into a sql query
that the database system would understand and query the database.
Eg keyword- river.

I would appreciate advice.
TIA.

Reply With Quote
  #2  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: Keyword search in spatial database - 01-06-2010 , 09:04 PM






On Tue, 05 Jan 2010 23:26:05 -0800, Kavita wrote:

Quote:
Hi all,
i am a master's student. I have to do a keyword search for spatial
database. I have the data set of a particular district in India. I have
a data model too.
Can some one help me through this task.

My question is - it is a single word (keyword) search. I have the
database schema too. How do i search this keyword through this schema or
the entire data. How do i convert this keyword into a sql query that the
database system would understand and query the database. Eg keyword-
river.

I would appreciate advice.
TIA.
You can do a text search on a single column with a text index. You should
do something like this:
WHERE text_srch_col @@ to_tsquery('keyword & ice')

You can not do a search the entire schema.


--
http://mgogala.byethost5.com

Reply With Quote
  #3  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: Keyword search in spatial database - 01-07-2010 , 04:23 AM



Kavita wrote:
Quote:
i am a master's student. I have to do a keyword search for spatial
database. I have the data set of a particular district in India. I
have a data model too.
Can some one help me through this task.

My question is - it is a single word (keyword) search. I have the
database schema too. How do i search this keyword through this schema
or the entire data. How do i convert this keyword into a sql query
that the database system would understand and query the database.
Eg keyword- river.

I would appreciate advice.
I don't understand.

What do you mean by "spatial database"? PostGIS?
What is a "keyword search"?

Maybe you could post a little example...

Yours,
Laurenz Albe

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.