chosenones
Programmer
I have a list of available tapes with the following fields:
ID, Date, Service, Speaker, Text, Title, Subject
I would like to do a full text search on title and subject with multiple words. The first word must be found, each following word may have the following prefixes:
No prefix: the first word OR this word
+: the first word AND this word
-: the first wrod but NOT this word
Currently for the search "word1 -word2" I generate:
SELECT * FROM Data WHERE ((Subject LIKE('%word1%') OR Title LIKE('%word1%')) AND NOT (Subject LIKE('%word2%') OR Title LIKE('%word2%')))
but this removes too many records!
I am using Access ODBC driver in Java (not Access program)
ID, Date, Service, Speaker, Text, Title, Subject
I would like to do a full text search on title and subject with multiple words. The first word must be found, each following word may have the following prefixes:
No prefix: the first word OR this word
+: the first word AND this word
-: the first wrod but NOT this word
Currently for the search "word1 -word2" I generate:
SELECT * FROM Data WHERE ((Subject LIKE('%word1%') OR Title LIKE('%word1%')) AND NOT (Subject LIKE('%word2%') OR Title LIKE('%word2%')))
but this removes too many records!
I am using Access ODBC driver in Java (not Access program)