Full-Text Search question

Started by Jesus Rafael Sanchez Medranoalmost 12 years ago4 messagesgeneral
Jump to latest
#1Jesus Rafael Sanchez Medrano
jesusrafael@gmail.com

can postgres do FTS (full text search) on a json column? if possible,
please be so kindd to give some snippet/example.

Att.
==
Jesus Rafael Sanchez Medrano
"Life is a dream, of which all must wake up"

#2Oleg Bartunov
oleg@sai.msu.su
In reply to: Jesus Rafael Sanchez Medrano (#1)
Re: Full-Text Search question

Easy, you need to extract text fields from json and construct tsvector
from them (use concatenation, for example).

On Tue, May 13, 2014 at 7:38 PM, Jesus Rafael Sanchez Medrano
<jesusrafael@gmail.com> wrote:

can postgres do FTS (full text search) on a json column? if possible, please
be so kindd to give some snippet/example.

Att.
==
Jesus Rafael Sanchez Medrano
"Life is a dream, of which all must wake up"

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

#3Jesus Rafael Sanchez Medrano
jesusrafael@gmail.com
In reply to: Oleg Bartunov (#2)
Re: Full-Text Search question

thanks... could you please be so kind to post some snippet/code for this?

Att.
==
Jesus Rafael Sanchez Medrano
"Life is a dream, of which all must wake up"

On Tue, May 13, 2014 at 5:33 PM, Oleg Bartunov <obartunov@gmail.com> wrote:

Show quoted text

Easy, you need to extract text fields from json and construct tsvector
from them (use concatenation, for example).

On Tue, May 13, 2014 at 7:38 PM, Jesus Rafael Sanchez Medrano
<jesusrafael@gmail.com> wrote:

can postgres do FTS (full text search) on a json column? if possible,

please

be so kindd to give some snippet/example.

Att.
==
Jesus Rafael Sanchez Medrano
"Life is a dream, of which all must wake up"

#4Dorian Hoxha
dorian.hoxha@gmail.com
In reply to: Jesus Rafael Sanchez Medrano (#3)
Re: Full-Text Search question

Search for fulltext tutorial + json functions
http://www.postgresql.org/docs/9.3/static/functions-json.html

On Wed, May 14, 2014 at 1:00 AM, Jesus Rafael Sanchez Medrano <
jesusrafael@gmail.com> wrote:

Show quoted text

thanks... could you please be so kind to post some snippet/code for this?

Att.
==
Jesus Rafael Sanchez Medrano
"Life is a dream, of which all must wake up"

On Tue, May 13, 2014 at 5:33 PM, Oleg Bartunov <obartunov@gmail.com>wrote:

Easy, you need to extract text fields from json and construct tsvector
from them (use concatenation, for example).

On Tue, May 13, 2014 at 7:38 PM, Jesus Rafael Sanchez Medrano
<jesusrafael@gmail.com> wrote:

can postgres do FTS (full text search) on a json column? if possible,

please

be so kindd to give some snippet/example.

Att.
==
Jesus Rafael Sanchez Medrano
"Life is a dream, of which all must wake up"