I've got a table with the following texual data:
I'm using a CONTAINSTABLE
. When I use the following full text expression "Linker*" AND "pagina*"
only the second record is returned.
I've tried building an XOR by using expression ("Linker*" OR "pagina*") AND NOT ( "pagina*" AND "Linker*")
, but all records are returned.
Why?
I have tried this
SELECT * FROM CONTAINSTABLE(data,*,'("Linker*" OR "pagina*") AND NOT ( "pagina*" AND "Linker*")') AS Results
You can also try "AND NOT" the CONTAINSTABLE of the AND itself as follows:
SELECT * FROM CONTAINSTABLE(data,*,'"Linker*" OR "pagina*"') AS Results
WHERE Results.[KEY] NOT IN
(SELECT [Key] FROM CONTAINSTABLE(data,*,'"Linker*" AND "pagina*"'))