I'm working on a project with Sphinx Search Engine using SphinxQL. My problem is the following:
This is my sphinxql query:
"SELECT *, country FROM all_gebrauchte_products WHERE MATCH('@searchtext (".$searchQuery.")') AND country='".$where."' ORDER BY WEIGHT() DESC LIMIT ".$page.", ".$limit." OPTION ranker=expr('sum(lcs)')"
The result differs very strongly like:
Honda => 50 results
Honda CBR => 9 results
Honda CBR 1000 => 2 results
This is my MySQL query:
SELECT COUNT(*) FROM all_gebrauchte_products WHERE MATCH(gebr_id, gebr_hersteller, gebr_modell, gebr_ukat, gebr_kat, gebr_bemerkung) AGAINST ('".$searchQuery."' IN BOOLEAN MODE);
The results is:
Honda => 67 results
Honda CBR => 67 results
Honda CBR 1000 => 84 results
The MySQL query works in Boolean Mode - so query for Honda CBR 1000 also finds Honda VTR 1000, as I think...
So, what would be the best search mode to come near to the second result set? Can anybody explain me what would be the perfect mode and how (example) to write the sphinxql query in the right way?
Thnx. in advance...