Skip to main content.
home | support | download

Back to List Archive

FW: Trouble with Swish-e C API

From: Windmueller, David <DWindmueller(at)not-real.bloomberg.com>
Date: Wed Apr 28 2004 - 16:39:27 GMT
> Currently, I'm trying to use the Swish-e API to perform simple queries.  Using the SwishResultPropertyULong function, I've noticed that all of the basic numerical data property values return ULONG_MAX as if the value doesn't exist.  This is for properties like "swishrank", "swishsize" etc.  (I'm using swish 2.4.2.) 
> 
> When I perform the same query with Swish-e executable, I get the proper values from the interface.  I've compiled and run libtest and I get the ULONG_MAX values also from the same database.  This happens when using the standard index made with the "make test" and my own 
> 
> I've had some confusion with the usage of SW_RESULT and RESULT.
> 
> The online doc list the getResultPropValue parameters as (RESULT *, char * pname, int id).  This should be (SW_RESULT, char * , int)
> 
> I am able to extract the values if I use the getResultPropValue() instead of the SwishResultPropertyULong().
> 
> Any ideas?
> 
> Should the system set an error if you search for a property value that is not available?  This error would be found by SwishError().
> 
> Is there an easy way to get a list of all of the Properties?
> 
> 
> 
> 
> The C Library is pretty usable, but here are some documentation comments:
> 
> 1) examples would be nice in each function
> 
> 2) links could supplement the descriptions (like on SwishSetStructure, it would be nice to go right to the appropriate section in Swish-Run)
> 
> 3) SwishSeekResult - what does the parameter position do?
> 
> Thanks,
> David
> 
> 
> 
> 
> 
>  
Received on Wed Apr 28 09:39:28 2004