Hey again, I was wondering if you would be interested in including this patch into Tracker. It implements regular expression searching using MySQL's REGEXP, and works pretty well. Note that the patch is against 0.0.4, not CVS. I noticed you added startsWith support, and regex is a natural extension. With this included, you can do an RDF search such as: <rdfq:rdfquery> <rdfq:From eachResource="Files"> <rdfq:Select> <rdfq:Condition> <rdfq:regex> <rdfq:Property name="Audio.Title" /> <rdf:String>Lazy|Kid</rdf:String> </rdfq:regex> </rdfq:Condition> </rdfq:Select> </rdfq:From> </rdfq:rdfquery> which allows for more fine-grained control on searches. On another note, I'm also thinking about writing a tutorial on the Python D-Bus bindings, and once the Tracker D-Bus API stabilizes a bit, how to search using Tracker from Python. When you get the website up, I'd be glad to send it to you :-) Cheers, Samuel
Attachment:
tracker-0.0.4-regex.patch
Description: Text Data