HowdeeDoodee Posted July 6, 2007 Share Posted July 6, 2007 This select statement pulls records where only "peace", only "war", and both "peace" and "war" appear in the records. Isn't the AND operator supposed to pull only records where only "peace" AND "war" appear in the same record? SELECT * FROM `View2_CondFT` WHERE MATCH(Topic, Subtopic, Theswords) AGAINST ('peace +war' IN BOOLEAN MODE) ORDER BY `Lnum` ASC Quote Link to comment https://forums.phpfreaks.com/topic/58669-solved-full-text-and-operator-pulling-up-only-first-variable-is-this-right/ Share on other sites More sharing options...
HowdeeDoodee Posted July 6, 2007 Author Share Posted July 6, 2007 OK, I just ran an OR query and pulled up the same records with the same results. What gives? SELECT * FROM `View2_ConcordFT` WHERE MATCH(Topic, Subtopic, Theswords) AGAINST ('peace war ' IN BOOLEAN MODE) ORDER BY `Lnum` ASC Quote Link to comment https://forums.phpfreaks.com/topic/58669-solved-full-text-and-operator-pulling-up-only-first-variable-is-this-right/#findComment-291029 Share on other sites More sharing options...
Illusion Posted July 6, 2007 Share Posted July 6, 2007 Try this WHERE MATCH(Topic, Subtopic, Theswords) AGAINST ('peace ' IN BOOLEAN MODE) AND MATCH(Topic, Subtopic, Theswords) AGAINST ('war ' IN BOOLEAN MODE) ORDER BY `Lnum` ASC ; Quote Link to comment https://forums.phpfreaks.com/topic/58669-solved-full-text-and-operator-pulling-up-only-first-variable-is-this-right/#findComment-291094 Share on other sites More sharing options...
HowdeeDoodee Posted July 6, 2007 Author Share Posted July 6, 2007 Thank you Illusion for the help. Much appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/58669-solved-full-text-and-operator-pulling-up-only-first-variable-is-this-right/#findComment-291109 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.