From: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Cc: | Gaini Rajeshwar <raja(dot)rajeshwar2006(at)gmail(dot)com> |
Subject: | Re: Handling Complex queries in PostgreSQL fulltext search |
Date: | 2009-11-01 09:21:11 |
Message-ID: | 200911011021.12067.guillaume@lelarge.info |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Le dimanche 1 novembre 2009 à 09:50:29, Gaini Rajeshwar a écrit :
> Hi All,
>
> Does anyone know how to handle complex queries?
>
> For Example, If i want to search for something like:
>
> *(portable battery AND magnetic induction) OR (database management system)*
>
> This is a sample query and user can specify any kind of complex query in
> this way. I can't ask user to specify *&, |, !* operators. Instead i can
> ask to use *AND, OR, NOT* operators. If nothing is specified by default
> *&*operator should be used.
>
> Is there any way to convert/specify user given query in Fulltext Search.
>
No, but the tool they use can do the translation work: replacing AND with an
ampersand, OR with |, etc.
> For Example, In Sphinx I can give the same query as
>
> *'(portable battery && magnetic induction) | (database management system)'
>
> *Here i need not to mention the & operator between *portable, battery.
>
> *Is there any way we can specify this in PostgreSQL Fulltext search (i.e
> without bothering about inserting & operator in between)?
>
Not yet.
--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2009-11-01 10:18:06 | Re: Postgres alpha testing docs and general test packs |
Previous Message | Gaini Rajeshwar | 2009-11-01 08:50:29 | Handling Complex queries in PostgreSQL fulltext search |