Re: Checking is TSearch2 query is valid
От | Oleg Bartunov |
---|---|
Тема | Re: Checking is TSearch2 query is valid |
Дата | |
Msg-id | Pine.LNX.4.64.0709090945140.2767@sn.sai.msu.ru обсуждение исходный текст |
Ответ на | Checking is TSearch2 query is valid (Benjamin Arai <me@benjaminarai.com>) |
Ответы |
Re: Checking is TSearch2 query is valid
|
Список | pgsql-general |
There are two useful functions - numnode() and querytree() More details in http://www.sai.msu.su/~megera/postgres/fts/doc/fts-query.html Oleg On Sat, 8 Sep 2007, Benjamin Arai wrote: > Is there a way to pass a query to PostgreSQL to check if the TSeasrch2 search > text is valid? For example, > > SELECT to_tsquery('default', '!'); > > returns an error. I want to know if there is a way get true/false for the > '!' portion of the query? > > Benjamin > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly Regards, Oleg _____________________________________________________________ Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru), Sternberg Astronomical Institute, Moscow University, Russia Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/ phone: +007(495)939-16-83, +007(495)939-23-83
В списке pgsql-general по дате отправления: