GNOME Bugzilla – Bug 509607
Make Search support logical operators besides 'And'
Last modified: 2008-04-10 12:57:16 UTC
Right now you can only enter some terms in the entry, and trackerd search these terms applying the "And" logical operator. I'm going to attach a patch that allows entering search terms like "foo and bar or baz". It's implemented by an expression tree, which will construct a query tree by parsing the string with search term and "and/or" logical operators (with the "And" operator taking precedence on the "Or" one). This query tree will be used later to compose the results in a single search hits list. In the patch, this is implemented in tracker-query-tree.[ch], which replaces all the SearchQuery logic. The only think missing, but I think should be safe to do, is to mark these logical operators as translatable, so people can search naturally in their own language
Created attachment 102892 [details] [review] patch The patch is fairly big, please tell me if it needs splitting for better review.
An up-to-date with trunk version of this patch has been committed. Thanks Jamie!