[NOT JOOMLA] Search engine wrongly reports "not specific querries"
Posted: Sat Jul 01, 2006 5:07 pm
Description:
Search: when one's trying to be specific, i.e. enter longer string (even forcing it into quotes), the system says that "the querry is not enough specific"!! So one has to enter less specific string and go through the mess in the output..
Reported on:
Joomla 1.0.10, Joomla 1.09
Classification:
Medium
Affected functions:
Searchig.
Related files:
???
Steps to replicate:
Be specific, when entering your search querry. I.e. on http://www.joomla.org - FORUMS enter "Direct Access to this location is not allowed." and you'll get reply: "Your query was not specific enough. Try using larger words, or less common phrases." When you enter LESS specific phrase, i.e. "Direct Access", then the search engine finds and displays results (loads of them)...
Proposed fix(es):
The best and easiest way: Introduce strings, i.e.:
word1 word2 word3 ==> word1 OR word2 OR word3
"word1 word2 word3" ==> word1 AND word2 AND word3
Of course, there are more challanging but better ways, i.e. introducing "+" and "-" operators as well and displaing output progressively (when no strings or signs used), showing first the most specific results (putting "AND" between all operators), then less specific (combination of "AND"s and "OR"s) and finaly results of the least specific querry (all "OR"s)
Search: when one's trying to be specific, i.e. enter longer string (even forcing it into quotes), the system says that "the querry is not enough specific"!! So one has to enter less specific string and go through the mess in the output..
Reported on:
Joomla 1.0.10, Joomla 1.09
Classification:
Medium
Affected functions:
Searchig.
Related files:
???
Steps to replicate:
Be specific, when entering your search querry. I.e. on http://www.joomla.org - FORUMS enter "Direct Access to this location is not allowed." and you'll get reply: "Your query was not specific enough. Try using larger words, or less common phrases." When you enter LESS specific phrase, i.e. "Direct Access", then the search engine finds and displays results (loads of them)...
Proposed fix(es):
The best and easiest way: Introduce strings, i.e.:
word1 word2 word3 ==> word1 OR word2 OR word3
"word1 word2 word3" ==> word1 AND word2 AND word3
Of course, there are more challanging but better ways, i.e. introducing "+" and "-" operators as well and displaing output progressively (when no strings or signs used), showing first the most specific results (putting "AND" between all operators), then less specific (combination of "AND"s and "OR"s) and finaly results of the least specific querry (all "OR"s)