One thing I had to learn too: properties are not metanames and must be
declared explicitly. There is not equivalent 'undefinedproperties auto'
option. So you must explicitly define subject.mesh as a property in
order to return that value.
Search the email archive for more on Properties vs. Metanames.
Ed Summers wrote on 07/14/2004 11:22 PM:
> On Tue, Jul 13, 2004 at 08:55:49AM -0500, Peter Karman wrote:
>>XMLClassAttributes *list of XML attribute names*
> Thanks for the pointer Peter. I'm now using the following:
> DefaultContents XML2
> UndefinedXMLAttributes auto
> UndefinedMetaTags auto
> XMLClassAttributes class
> And it works great for searching!
> Am I wrong in assuming that given an XML fragment like this in a
> <subject class="mesh">Parrots</subject>
> That I can use a SWISH::API::Result object like so:
> print $result->Property( 'subject.mesh' );
> I seem to get an error:
> Unknown property name in display properties Invalid property name
> This isn't terrible since I'm really only using swish-e to get back a
> list of matching documents, and then using a rdbms for display...but I'm
Peter Karman - Software Publications Programmer - Cray Inc
phone: 651-605-9009 - mailto:email@example.com
Received on Thu Jul 15 07:09:34 2004