Hi!
Quicksearch is using OR by default when searching for two or more terms.
How to change that into AND?
Thanks and regards,
Achim
Quicksearch: configuration AND instead of OR
-
- Regular
- Posts: 70
- Joined: Fri Feb 23, 2007 6:13 pm
- Location: Freiburg/Germany
- Contact:
Quicksearch: configuration AND instead of OR
www.ms-reporter.de
Pharma-unabhängige Infos für Multiple Sklerose-Betroffene
schnellze.it
Einzigartiges Zusammenspiel aus Popfetcher und s9y
Pharma-unabhängige Infos für Multiple Sklerose-Betroffene
schnellze.it
Einzigartiges Zusammenspiel aus Popfetcher und s9y
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Quicksearch: configuration AND instead of OR
Hi!
Either prefix each word with "+", or if you want to fixate that in code, you need to write an event plugin that hooks into frontend_configure and modifies $serendipity['GET']['searchTerm'] to do that automatically, or write a javascript that modifies your string to append "+" for each word. You could also even put that into serendipity_config_local.inc.php to modify the code using PHP.
Note by http://dev.mysql.com/doc/refman/5.1/en/ ... olean.html that this default "OR" logic is a MySQL thing...
Regards,
Garvin
Either prefix each word with "+", or if you want to fixate that in code, you need to write an event plugin that hooks into frontend_configure and modifies $serendipity['GET']['searchTerm'] to do that automatically, or write a javascript that modifies your string to append "+" for each word. You could also even put that into serendipity_config_local.inc.php to modify the code using PHP.
Note by http://dev.mysql.com/doc/refman/5.1/en/ ... olean.html that this default "OR" logic is a MySQL thing...
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
- Regular
- Posts: 70
- Joined: Fri Feb 23, 2007 6:13 pm
- Location: Freiburg/Germany
- Contact:
Re: Quicksearch: configuration AND instead of OR
Thanks, Garvin -- I'll dig deeper into this to find a nice solution.
-Achim
-Achim
www.ms-reporter.de
Pharma-unabhängige Infos für Multiple Sklerose-Betroffene
schnellze.it
Einzigartiges Zusammenspiel aus Popfetcher und s9y
Pharma-unabhängige Infos für Multiple Sklerose-Betroffene
schnellze.it
Einzigartiges Zusammenspiel aus Popfetcher und s9y