PostgreSql XML Text search
- by cro
I have a text column in a table. We store XML in this column. Now I want to search for tags and values
Example data:
Citi Bank
.....
.....
/
I would like to run the following query:
select * from xxxx where to_tsvector('english',xml_column) @@ to_tsquery('Citi Bank')
This works fine but it also works for tags like name1 or no tag.
How do I have to setup my search in order for this to work so I get an exact match for the tag and value ?