Karl Blessing
Programmer
Ok I have a database table, with some records in it, two fields make and model are both indexed as fulltext searchible ( together ).
(MySQL 4.*, PHP 4.*, Apache, on a *nix server)
Heres a Scenario, say Make is "Chevy", so I do a search for chevy using the following Mysql Statement.
which does not work unless I throw in
right after 'chevy', so figured ok so using that makes it work.
But then I run into a problem, I have a record where the make name is "BMW", and the model is "M5"
however if I search by means of
or even
or even
no results are returned even tho as clear as daylight, there exist a name inside of a make, ad inside of the model on both if not even by themselves.
Karl Blessing
PHP/MySQL Developer
(MySQL 4.*, PHP 4.*, Apache, on a *nix server)
Heres a Scenario, say Make is "Chevy", so I do a search for chevy using the following Mysql Statement.
Code:
select id, vin, make, model, year, price from inventory Where MATCH (make, model) AGAINST ('chevy') order by id
which does not work unless I throw in
Code:
IN BOOLEAN MODE
right after 'chevy', so figured ok so using that makes it work.
But then I run into a problem, I have a record where the make name is "BMW", and the model is "M5"
however if I search by means of
Code:
select id, vin, make, model, year, price from inventory Where MATCH (make, model) AGAINST ('BMW' IN BOOLEAN MODE) order by id
or even
Code:
select id, vin, make, model, year, price from inventory Where MATCH (make, model) AGAINST ('M5' IN BOOLEAN MODE) order by id
or even
Code:
select id, vin, make, model, year, price from inventory Where MATCH (make, model) AGAINST ('BMW M5' IN BOOLEAN MODE) order by id
no results are returned even tho as clear as daylight, there exist a name inside of a make, ad inside of the model on both if not even by themselves.
Karl Blessing
PHP/MySQL Developer