---
name: "KinoSearch1::Index::Term"
section: "3pm"
platform: "linux"
package: "libkinosearch1-perl"
version: "1.01-6+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/KinoSearch1::Index::Term"
---

# KinoSearch1::Index::Term(3pm)

string of text associated with a field

## NAME

KinoSearch1::Index::Term - string of text associated with a field

## SYNOPSIS

```
    my $foo_term   = KinoSearch1::Index::Term->new( 'content', 'foo' );
    my $term_query = KinoSearch1::Search::TermQuery->new( term => $foo_term );
```

## DESCRIPTION

The Term is the unit of search.  It has two characteristics: a field name, and term text.

## METHODS

### new

```
    my $term = KinoSearch1::Index::Term->new( FIELD_NAME, TERM_TEXT );
```

Constructor.

### set\_text get\_text set\_field get\_field

Getters and setters.

### to\_string

Returns a string representation of the Term object.

## COPYRIGHT

Copyright 2005-2010 Marvin Humphrey

## LICENSE, DISCLAIMER, BUGS, etc.

See KinoSearch1 version 1.01.
