pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: - <grandebuzon@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Postgres function for full text search
Date: Mon, 24 Jan 2011 10:38:02 +0100
Message-ID: <AANLkTimFoybT-79Eg2AYoK=7UENHvk09csDACED95+2+@mail.gmail.com> (raw)

Hello everyone.
My question if any known one postgres function, for full text search that
separates words with "| "?
As plainto_tsquery separating words with "& ".

For example text "word1 word2 word3 word4"
and conversion rates for full text search postgres "word1 | word2 | word3 |
word4"

Or i must create an own function eg. on the java for normalize text for
search.
I guess there would not need to remove not allowed words from text to
prevent sql injection...?

Thanks and regards

view thread (2+ messages)  latest in thread

Message-ID: <AANLkTimFoybT-79Eg2AYoK=7UENHvk09csDACED95+2+@mail.gmail.com>
Permalink:  ../AANLkTimFoybT-79Eg2AYoK=7UENHvk09csDACED95+2+@mail.gmail.com/
Also on:    postgresql.org/message-id/AANLkTimFoybT-79Eg2AYoK=7UENHvk09csDACED95+2+@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: grandebuzon@gmail.com
  Subject: Re: Postgres function for full text search
  In-Reply-To: <AANLkTimFoybT-79Eg2AYoK=7UENHvk09csDACED95+2+@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox