I am trying to compose a text search query which would return records containing a certain value in one section and NOT containing a certain value in another section.
Something like that:
SELECT * FROM text_search_table WHERE (contains(text_search,
'(value1 within section1) AND (NOT(value2) within section2)') > 0)
The syntax of this query is incorrect since NOT operator requires two operands. I also tried using % as the first operand:
% NOT value2 within section2
It doesn't work either.
Is there a way in text search to achieve what I need?
Thank you.