Rich Burridge wrote: > Hi Brock, > > Thanks for doing this. > > >> Webrev: >> http://cr.opensolaris.org/~bpytlik/ips-4239-v1/ >> >> Bug: >> search should know about classification schemes >> http://defect.opensolaris.org/bz/show_bug.cgi?id=4239 >> >> This updates generating indexes for set/attribute actions so that the >> new category metadata is indexed correctly. >> >> Here are some examples of sample output: >> $ pkg search -r system >> INDEX ACTION VALUE PACKAGE >> info.classification set org.opensolaris.category.2008 >> pkg:/[EMAIL PROTECTED] >> >> $ pkg search -r 'sound and video' >> INDEX ACTION VALUE PACKAGE >> info.classification set org.opensolaris.category.2008 >> pkg:/[EMAIL PROTECTED] >> >> > > So this searches on sub-category value, but doesn't include > the info.classification Category in the VALUE field. This is > probably what you've been asked to do, but is there any way > of getting the Category value back? > I'll take a look. Given the choice of getting 2 of the 3 of:
info.classification, org.opensolaris.category.2008, and system (the category and search term) Is there a consensus on which 2 to choose? One other potential option is to slam the category and scheme together (like they appear in the action) and place both in the value field. This would look like: $ pkg search -r system INDEX ACTION VALUE PACKAGE info.classification set org.opensolaris.category.2008:System/Security pkg:/[EMAIL PROTECTED] $ pkg search -r 'sound and video' INDEX ACTION VALUE PACKAGE info.classification set org.opensolaris.category.2008:Applications/Sound pkg:/[EMAIL PROTECTED] Note the incomplete reporting of the category in the second example because of the space in the name. If there's a strong preference for this output, I'll look into why the entire category isn't getting sent, and whether the solution is feasible in the time frame we have. Brock > Thanks. > > _______________________________________________ > pkg-discuss mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/pkg-discuss > _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
