Hi people,
With Flexinode the search form includes a number of fields to assist in narrowing down your search, i.e. you can multi-select categories that the results could be associated with.
My question is, is it possible to have a search form, with only these fields alone available - without the need for a keyword search?
I've tried a few quick hacks, with commenting out the error checking statements in search.module,
in the function, search_form_submit, removed: if ($keys == '')...
in the function, do_search, removed: if ($query[2] == '') and if ($query === NULL || $query[0] == '' || $query[2] == '').
This doesn't yield any results though... The drupal log shows there is a mysql error too:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND i.type = 'node' GROUP BY i.type, i.sid HAVING COUNT(*) >= 0' at line 1 query: CREATE TEMPORARY TABLE temp_search_sids SELECT i.type, i.sid, SUM(i.score * t.count) AS relevance, COUNT(*) AS matches FROM search_index i INNER JOIN search_total t ON i.word = t.word INNER JOIN node n ON n.nid = i.sid INNER JOIN term_node tn ON n.nid = tn.nid INNER JOIN users u ON n.uid = u.uid WHERE n.status = 1 AND (tn.tid = 1) AND () AND i.type = 'node' GROUP BY i.type, i.sid HAVING COUNT(*) >= 0 in /home/#####/public_html/####/includes/database.mysql.inc on line 120.