On Fri, Aug 04, 2006 at 08:03:22AM +0200, Julien Lemoine wrote:
Steve Bennett wrote:
Just one more request: what about if the search string matches *within* the phrase, but not necessarily at the start. Like "Hardy" matching "Laurel and Hardy"? Is that possible with this data structure?
No it will not. But I don't think this will be really usefull : Imagine a query with a single letter ("a" or "e" for example), it will matches a least half articles without understanding the results.
It would require you to apply some heuristics to determine what *not* to display, certainly...
but let me note that the incremental search feature in the phone book of my Blackberry -- which displays a list of first, the entries whose titles *start* with the substring, and then, the entries which contain it elsewhere -- is pretty useful. It interacts with the height of the pulldown, of course, but it is pretty useful.
Cheers, -- jra