Ik heb de volgende Query gemaakt:
SELECT *, MATCH(report) AGAINST('$sql' IN BOOLEAN MODE) AS score FROM koppeltabel
RIGHT JOIN country ON koppeltabel.countryid = country.id
RIGHT JOIN city ON koppeltabel.cityid = city.id
RIGHT JOIN institution ON koppeltabel.institutionid = institution.id
RIGHT JOIN year ON koppeltabel.yearid = year.id
RIGHT JOIN region ON koppeltabel.regionid = region.id
RIGHT JOIN reports ON koppeltabel.vapid = reports.id WHERE MATCH(report) AGAINST('$sql' IN BOOLEAN MODE) order by score desc;[/PHP]
Hierbij worden een aantal hits getoond, graag zou ik deze op volgorde van relevantie tonen. Dit werkt niet... Iemand een idee...??
Ik heb zonder BOOLEAN MODE geprobeerd, maar daarbij ontstaat een fout. Namelijk op een gegeven moment worden er totaal geen hits meer getoond.
Zie als voorbeeld:
www.inuse.nl/salzburg
Dank alvast!
SELECT *, MATCH(report) AGAINST('$sql' IN BOOLEAN MODE) AS score FROM koppeltabel
RIGHT JOIN country ON koppeltabel.countryid = country.id
RIGHT JOIN city ON koppeltabel.cityid = city.id
RIGHT JOIN institution ON koppeltabel.institutionid = institution.id
RIGHT JOIN year ON koppeltabel.yearid = year.id
RIGHT JOIN region ON koppeltabel.regionid = region.id
RIGHT JOIN reports ON koppeltabel.vapid = reports.id WHERE MATCH(report) AGAINST('$sql' IN BOOLEAN MODE) order by score desc;[/PHP]
Hierbij worden een aantal hits getoond, graag zou ik deze op volgorde van relevantie tonen. Dit werkt niet... Iemand een idee...??
Ik heb zonder BOOLEAN MODE geprobeerd, maar daarbij ontstaat een fout. Namelijk op een gegeven moment worden er totaal geen hits meer getoond.
Zie als voorbeeld:
www.inuse.nl/salzburg
Dank alvast!