2009-05-22 00:32:31 PDT
HI Nicolas,
> when searching for multiple fields (abstract, title ...),
> could be highlighted in the results chain found?
You mean that, after a search, the found text strings would be highlighted in the results list?
I've thought about this as well. It guess this is doable but such a feature is complicated by the fact that refbase supports fairly complex searches (using regular expressions), like this one:
^L([oöø]|oe)nne$
See:
http://www.refbase.net/index.php/Searching#Using_metacharacters_to_form_complex_queries
The highlighting processor would need to account for complex searches like the above one.
Also, the regular expression search syntax used by MySQL and PHP differs quite a bit. This might cause problems since the search is performed using MySQL regex syntax while the highlighting would need to be performed using PHP regex syntax. However, since the MySQL regex syntax is mostly a subset of the PHP regex syntax, this may actually work out fine, but I'd need to do some testing.
Generally, I don't know how important this feature is. What do others think? Would you like to see highlighting of search results?
Thanks,
Matthias