diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-02-15 18:46:53 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-02-15 18:46:53 +0100 |
commit | 60c15d7deb9c53bcb1cf7881f441744bb29a6b63 (patch) | |
tree | 7e26e3ef7b12d426002f181164311c68df73e3c5 /inc/indexer.php | |
parent | df466c7aec2704406e008f31924afa8b80c259ab (diff) | |
download | rpg-60c15d7deb9c53bcb1cf7881f441744bb29a6b63.tar.gz rpg-60c15d7deb9c53bcb1cf7881f441744bb29a6b63.tar.bz2 |
better highlighting for phrase searches FS#1193
This patch makes the highlighting of phrases in search snippets and on
the pages itself much better.
Now a regexp gets passed to the ?s
darcs-hash:20080215174653-7ad00-cd2d6f7d408db7b7dd3cb9974c3eb27f3a9baeac.gz
Diffstat (limited to 'inc/indexer.php')
-rw-r--r-- | inc/indexer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/indexer.php b/inc/indexer.php index 12e774579..ff2d332dc 100644 --- a/inc/indexer.php +++ b/inc/indexer.php @@ -615,7 +615,7 @@ function idx_tokenizer($string,&$stopwords,$wc=false){ if(preg_match('/[^0-9A-Za-z]/u', $string)){ // handle asian chars as single words (may fail on older PHP version) - $asia = @preg_replace('/('.IDX_ASIAN1.'|'.IDX_ASIAN2.'|'.IDX_ASIAN3.')/u',' \1 ',$string); + $asia = @preg_replace('/('.IDX_ASIAN.')/u',' \1 ',$string); if(!is_null($asia)) $string = $asia; //recover from regexp failure $arr = explode(' ', utf8_stripspecials($string,' ','\._\-:'.$wc)); |