If I remember correctly you have written a custom storage module to use MongoDB? How to structure MongoDB queries will depend on how each handle or handle value is serialized into a MongoDB object. In principle you could (and should!) certainly do that in such a way to allow access to the various components of the handle values in MongoDB queries. The binary encoding of a handle value is specified in the Handle RFCs and this limits the ability to add new fields in a way compatible with the Handle protocol. My strong recommendation would be to have the "data" of a handle value be a structured object---a bit of JSON, probably---which encodes the attributes you want. You could even write your MongoDB storage module in such a way that it could notice when a handle value's data is JSON (perhaps for certain handle value "types") and "unpackage" it into a form compatible with MongoDB search. Robert
|
_______________________________________________ Handle-Info mailing list Handle-Info@cnri.reston.va.us http://www.handle.net/mailman/listinfo/handle-info