Padraig O'Briain wrote:
Brock,

The proposed search dialog allows one to specify a token and search for it in a single authority or all authorities. The data returned will be package name, package description and status when searching in a single authority and package name, authority nane and status when searcging in all repositories.
I hope you'll also be adding an advanced search option at some point to allow users a graceful introduction into the more powerful features available. I will be returning the package name from the search (if you construct your query correctly). The description and status are available through other means and you will need to do the join to line that information up.

I believe that we want the token to match a package name or a package description.
That is possible.

I was not able to figure out how to do this on the command line.
Should I be able to?
Here's a search that will mind SUNWipkg in either a name or description: pkg search -l '<:attribute:fmri:SUNWipkg OR :attribute:description:SUNWipkg>' And here's one that finds web in either a name or description pkg search -l '<:attribute:fmri:web OR :attribute:description:web>'

When I tried to run your code I got errors which I do not get when I run from the gate. See attached.
As I said, this is a preliminary webrev. To fix local search, delete line 842 ( where i,q = tmp). For remote search, you're going to have to run your own depot since no existing server supports search 1. The webrev I sent should work with search to a remote depot serving search/1.

Brock

Padraig

On 02/14/09 05:26, Brock Pytlik wrote:
Here's the preliminary/alpah/pre-alpha/"should never see the light of day" webrev representing the current state the codes in.

The API code has been cleaned up a tiny bit, but basically the code is in the state it's in when I develop it.

Things I know I need to fix: error handling, formatting, removing commented code, making it work with the test suite, and probably lots more I can't think of at the moment.

Things that might yet be changed: Basically everything. I think the api is converging, but I spent today doing a fairly major rewhack so I might rethink things again as I get more distance.

I'll be updating it in place as I make changes to either the client or server API.

John, Michal, Padraig, please let me know if there are pieces of information missing from the API as is.


If anyone else feels like diving in, comments are of course welcome (though ones about formatting and commented code will probably be ignored for a while).

http://cr.opensolaris.org/~bpytlik/prelim_search_v1/

Thanks

Brock
_______________________________________________
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

Reply via email to