Skip to main content.
home | support | download

Back to List Archive

MetaName searching in new API

From: Thomas R. Bruce <trb2(at)not-real.cornell.edu>
Date: Mon Mar 03 2003 - 14:22:06 GMT
Bill and others:

This works fine:

swish-e -w "casedata=3DSmith" -f /usr/local/indexes/myindex.index

This doesn't, always returning zero hits without throwing an error =
(error-catching is present but omitted here for clarity/brevity):

    my $swh =3D SWISH::API -> new('/usr/local/indexes/myindex.index');
    my $search =3D $swh->New_Search_Object()
    my($results) =3D $search -> Execute('casedata=3DSmith');
    my ($numhits) =3D $results -> Hits();

The environment is a little more complex than I'm representing here (the =
search code is in turn part of a module).  However, the whole thing =
works fine with non-MetaName searches, and as I mentioned command-line =
MetaName searching works fine.  I'm a touch baffled.  Any ideas?

Best,
Tb.

+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D
Thomas R. Bruce   (trb2@cornell.edu)
Co-Director, Legal Information Institute
Cornell Law School
http://www.law.cornell.edu
+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D+=3D





*********************************************************************
Due to deletion of content types excluded from this list by policy,
this multipart message was reduced to a single part, and from there
to a plain text message.
*********************************************************************
Received on Mon Mar 3 14:22:46 2003