to_tsquery and plainto_tsquery produce AND tsquery 'apple banana orange' -> 'apple' & 'banana' & 'orange' I can't see anything that will produce OR tsquery. 'apple banana orange' -> 'apple' | 'banana' | 'orange' The only thing I can think of is looping on ts_lexize that looks not very efficient in plpgsql. Am I missing something? thanks -- Ivan Sergio Borgonovo http://www.webthatworks.it -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general