Skip to main content.
home | support | download

Back to List Archive

Retrieving a list of valid properties

From: Thomas R. Bruce <trb2(at)not-real.cornell.edu>
Date: Wed Feb 05 2003 - 13:38:53 GMT
Folks:

Has anyone got a way, using the SWISHE perl interface,  to retrieve a list
of valid properties from an index?    Obviously it can be done from the
command line via  swishe -T INDEX_METANAMES -f whatever.index , augmented by
some grepping and cutting, but I don't see a way to do it from within perl.

Obviously there's a not-unreasonable assumption here that if you're running
a site you oughta know what properties you indexed the thing with, or at a
minimum be able to find the config file that memorializes those decisions.
But it would be nice to be able to do sanity-checking on properties before
submitting them in a query, particularly in environments (like the Mason
templating system) where the "bad property" error will not be reported and
the app will sink without a trace.

Best,
Tb.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Thomas R. Bruce (trb2@cornell.edu)
Co-Director, Legal Information Institute
Cornell Law School
http://www.law.cornell.edu
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Received on Wed Feb 5 13:39:17 2003