Global.helma.Search.Document.prototype.getField (name)
Returns a single document field.

  • Parameter {String}:
    name The name of the field in this document object.
  • Returns
    An object containing the following properties:
    • .name (String) The name of the field
    • .boost (Int) The boost factor
    • .indexed (Boolean) True if the field is indexed, false otherwise
    • .stored (Boolean) True if the field is stored, false otherwise
    • .tokenized (Boolean) True if the field is tokenized, false otherwise
    • .value (String) The value of the field
Sourcecode in /home/hannes/helma/modules/helma/Search.js:
1081:   helma.Search.Document.prototype.getField = function(name) {
1082:       var f = this.getDocument().getField(name);
1083:       if (f != null) {
1084:           var result = {name: name,
1085:                         boost: f.getBoost(),
1086:                         indexed: f.isIndexed(),
1087:                         stored: f.isStored(),
1088:                         tokenized: f.isTokenized(),
1089:                         value: f.stringValue()};
1090:          return result;
1091:     }
1092:     return null;
1093:  }