Re: Adding keyword search (fulltext) to query
SELECT `id`
FROM (
(
SELECT `listing_id` AS `id`
FROM `descriptions_test`
WHERE MATCH (`descriptions_test`.`description`)
AGAINST ('swimming pool' IN BOOLEAN MODE)
)
UNION (
SELECT `id`
FROM `listings`
WHERE `listings`.`category` = 1
AND `listings`.`city` = 35862
AND `listings`.`visible` = 1
)
) AS `a`
GROUP BY `a`.`id`
HAVING COUNT(*) = 2;
If that's correct, is ran in 45.8355 sec
Subject
Views
Written By
Posted
2286
October 23, 2012 07:16AM
1030
October 23, 2012 07:21AM
884
October 24, 2012 09:08PM
1797
October 25, 2012 06:54AM
901
October 26, 2012 09:17PM
826
October 27, 2012 09:09AM
903
October 27, 2012 09:24AM
Re: Adding keyword search (fulltext) to query
815
October 27, 2012 09:30AM
851
October 30, 2012 01:30PM
814
October 30, 2012 02:06PM
812
November 01, 2012 12:32AM
960
November 01, 2012 07:14AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.