On Sat, 2009-02-21 at 20:45 +0900, Paul Wise wrote: > How about adding a xapian index option? That would reduce search times > but probably prevent regex searches.
Looks like Enrico has already implemented this: <pabs> enrico: do you think xapian would be appropriate for an index for apt-file to speed things up (I suggested it in #497038)? <enrico> pabs: I think so. In fact, it's already implemented: curl http://dde.debian.net/dde/q/aptfile/byfile/YOUR/PATH <enrico> pabs: add ?t=csv for human readable results <enrico> pabs: I have it in my todo list to patch apt-file so that if apt-file update hasn't been run, it queries the remote one (with a warning that the query syntax is slightly different <pabs> cool, sounds good <enrico> pabs: http://dde.debian.net/dde/q/aptfile shows what's available <enrico> pabs: the problem is that querying xapian you can't look for partial paths like *foo <enrico> pabs: you can do */foo/bar/baz* if you want, though. Or even */foo*/bar/baz <enrico> pabs: but you can't have a '*' at the beginning of an item <pabs> ok <enrico> pabs: please copy and paste it, no problem. apt-file's author is informed of my intentions, I'm sorry I haven't had time to pursue it yet <pabs> will do -- bye, pabs http://wiki.debian.org/PaulWise
signature.asc
Description: This is a digitally signed message part

