PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Mod Submissions

Reply
 
Thread Tools
Old 12-20-2005, 08:30 AM   #1
janek
Green Mole
 
Join Date: Nov 2005
Posts: 1
Search through an entire word - especially for german textes

Helo Folks,
after installing of the phpdig 1.8.8 I realised, that a search term will match only
at the beginning of a word, fe. giving 'ermin' you won't get the results with
word 'terminal'. This wasn't what most people using german language expect,
where many words are concatenation of other ones.

So I made some modifications to the search_function.php file and now the entire
word is searched through. The default operator is AND, so you do not need the radio
buttons tag <phpdig:form_radio/> in the html template. If you surround a text
to search with double quotes, the search mode will switch to 'exact' and phrase
search will be performed. That all let you create a simple search field with "GO"
button only, keeping all the power functionality, that the phpdig gives to us.


Cheers,
janek
Attached Files
File Type: zip phpdig_entire_word.zip (2.7 KB, 23 views)
janek is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IF phpdig is right on search from a word of a *.php or *.asp tian How-to Forum 3 08-07-2005 05:20 AM
spider entire site summitmn Troubleshooting 1 05-03-2004 04:30 PM
Indexing word doc's OK search through files don't work dapuse External Binaries 3 02-05-2004 07:38 AM
German Umlaute fipps Troubleshooting 2 12-04-2003 02:38 PM
phpdig highlight class only for first search word manute Bug Tracker 6 11-26-2003 09:10 AM


All times are GMT -8. The time now is 08:21 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.