GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
AFGETRESULTMD(3) Amberfish AFGETRESULTMD(3)

afgetresultmd - get metadata associated with search results

#include af.h

int afgetresultmd(const Afresult *result, int resultn, Afresultmd *resultmd);

The afgetresultmd function retrieves additional metadata about results returned from afsearch(3).

The argument result specifies the array of results.

The argument resultn specifies the number of elements in result.

The argument resultmd specifies an array with the same number of elements as result, to be filled in by this function.

This function returns 0 if it exited normally. If an error occurred, it returns -1 and aferrno is set.

If the function exited normally, the array resultmd is filled in. Each element of resultmd consists of the following:

typedef struct {
	Uint4 parent;
	char docpath[AFPATHSIZE];
	off_t begin;
	off_t end;
} Afresultmd;

The parent is the document identifier of this document's parent. When this is used, it is usually a container, for example, an outer XML element. If it is unused, it is set to 0.

The docpath is the path name of the file containing the document.

The begin and end values are offsets delimiting the starting and ending points of the document within the file docpath. The end offset points one character past the end of the document.

This function returns only "core" errors.


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.