Class EstraierPure::ResultDocument
In: estraierpure.rb
Parent: Object

++ Abstraction of document in result set.


Methods

attr   attr_names   keywords   new   snippet   uri  

Public Class methods

Create a result document object.

Public Instance methods

Get the value of an attribute. The return value is the value of the attribute or `nil’ if it does not exist.

Get an array of attribute names. The return value is an array object of attribute names.

Get keywords. The return value is a string of serialized keywords of the result document object. There are tab separated values. Keywords and their scores come alternately.

Get the snippet of a result document object. The return value is a string of the snippet of the result document object. There are tab separated values. Each line is a string to be shown. Though most lines have only one field, some lines have two fields. If the second field exists, the first field is to be shown with highlighted, and the second field means its normalized form.

Get the URI. The return value is the URI of the result document object.

[Validate]