Brion Vibber wrote:
On Wed, 21 May 2003, Thomas Corell wrote:
Well, I'm more confused. :)
Sorry, that was not intended.
Personally, I think it would be easier still if we
just had one set of
search results. If we reindexed on title plus content combined, with an
option to search titles only...?
Well, combining would be fine, if possible without stressing the machine.
But (never without a but;) I think 2 types of seaches are needed most:
1. Search parts of title ( cur_title like "%query%" ), possibly a regex
(rlike '.*query.*') would be better.
2. Full text search, which is effectiv a word based search. That's good
enough IMHO like it is today.
Add on:
If we (developer) create a 'search_title' field in the DB, we can do:
[cur|old]_search_title = Language_depending_converting_function(cur_title)
so a search query, '$query' can be done by:
$query = Language_depending_converting_function($query)
[cur|old]_search_title rlike '.*$query.*'
we can do it on the fly as well. And we can easily delegate the Language
search (for title) to the Landuage??.php files.
--
Smurf
smurf(a)AdamAnt.mud.de
------------------------- Anthill inside! ---------------------------