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


Manual Reference Pages  -  SRU::RESPONSE::TERM (3)

.ds Aq ’

NAME

SRU::Response::Term - A class for representing terms in a Scan response

CONTENTS

SYNOPSIS

DESCRIPTION

A SRU::Response::Term object bundles up information about a single term contained in a SRU::Response::Scan object. A scan object can contain multiple term objects.

METHODS

new()

THe constructor which you must at least pass the value parameter:



    my $term = SRU::Response::Term->new( term => "Foo Fighter" );



In addition you can pass the numberOfRecords, displayTerm, whereInList, and extraTermData parameters, or set them separately with their accessors.

value()

The term exactly as it appears in the index. This term should be able to be sent in a query as is to retrieve the records it derives from.

numberOfRecords()

The number of records which would be matched if the index in the request’s scanClause was searched with the term in the ’value’ field.

displayTerm()

A string to display to the end user in place of the term itself. For example this might add back in stopwords which do not appear in the index, or diacritics which have been normalised.

whereInList()

A flag to indicate the position of the term within the complete term list. It must be one of the following values: ’first’ (the first term), ’last’ (the last term), ’only’ (the only term) or ’inner’ (any other term).

extraTermData()

Additional profile specific information. More details are available in the extensions section.

asXML()

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Ed Summers.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

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


perl v5.20.3 SRU::RESPONSE::TERM (3) 2013-10-18

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