mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Fixed htmlEntity searches in SearchForm - merge error from r71172
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@71341 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
5513f569b6
commit
2d83cc412b
@ -189,7 +189,10 @@ class SearchForm extends Form {
|
|||||||
|
|
||||||
$notMatch = $invertedMatch ? "NOT " : "";
|
$notMatch = $invertedMatch ? "NOT " : "";
|
||||||
if($keywords) {
|
if($keywords) {
|
||||||
$match['SiteTree'] = "MATCH (Title, MenuTitle, Content, MetaTitle, MetaDescription, MetaKeywords) AGAINST ('$keywords' $boolean)";
|
$match['SiteTree'] = "
|
||||||
|
MATCH (Title, MenuTitle, Content, MetaTitle, MetaDescription, MetaKeywords) AGAINST ('$keywords' $boolean)
|
||||||
|
+ MATCH (Content) AGAINST ('$htmlEntityKeywords' $boolean)
|
||||||
|
";
|
||||||
$match['File'] = "MATCH (Filename, Title, Content) AGAINST ('$keywords' $boolean) AND ClassName = 'File'";
|
$match['File'] = "MATCH (Filename, Title, Content) AGAINST ('$keywords' $boolean) AND ClassName = 'File'";
|
||||||
|
|
||||||
// We make the relevance search by converting a boolean mode search into a normal one
|
// We make the relevance search by converting a boolean mode search into a normal one
|
||||||
|
Loading…
Reference in New Issue
Block a user