Vastly speed up multi-word matches (ie "... ... ...")
This commit is contained in:
parent
08ca315c11
commit
bb94b6efc7
1
CHANGES
1
CHANGES
|
@ -44,6 +44,7 @@ For further information about Photo Organizer, see its web site at:
|
|||
[add] Generate a full-size image from RAW imports.
|
||||
[add] Initial background image import/processing worker.
|
||||
[add] Pretty-URL the folder search too.
|
||||
[misc] Vastly speed up searching for "multi-word matches"
|
||||
|
||||
2.36.1 (September 27, 2008)
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ function prepare_keyword($keyword, $enable_stemming) {
|
|||
$keyword = str_replace(";", " ", $keyword);
|
||||
$keyword = str_replace("#@#", " ", $keyword);
|
||||
|
||||
return " =##= '".$keyword."'";
|
||||
return " ILIKE '%$keyword%'";
|
||||
}
|
||||
|
||||
/* ignore all signle quotation marks */
|
||||
|
|
Loading…
Reference in New Issue