https://bugzilla.novell.com/show_bug.cgi?id=370029
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=370029#c4
Ján Kupec changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jkupec@novell.com
Status|NEEDINFO |NEW
Info Provider|dmacvicar@novell.com |
--- Comment #4 from Ján Kupec 2008-03-13 10:56:08 MST ---
micha, we need to search by name only by default. Then we need a way to search
in summary and description, other attributes would be nice.
Then we need to be able to combine multiple search terms: term1 AND term2 AND
.., term1 OR term2 OR ... GUI's didn't offer this so far, but zypper did
(--match-all --match-any).
so we need to be able to do something like this in the PoolQuery:
void addAttribute(const solv::SolvAttr & attrid,
const std::string & value,
bool isRegex = false);
PoolQuery q; bool search_summary, is_regex;
..
q.addName(); // there is no sat::name attribute
if (search_summary)
q.addAttribute(sat::summary, summary, is_regex);
..
if (match_any)
q.setMatchAny(); // this would set SEARCH_MATCH_ANY repo search flag (new :O)
// with search-match-all being the default
Searching in dependencies would be nice to have :O) Something like this in the
PoolQuery API:
addDependency(const Dep & dtype,
const std::string & name,
const Edition & edition = Edition(),
const Rel & rel = Rel::EQ);
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.