Package | Description |
---|---|
gate.creole.annic.apache.lucene.document |
The Document abstraction.
|
Modifier and Type | Method and Description |
---|---|
Field |
Document.getField(String name)
Returns a field with the given name if any exist in this document, or
null.
|
Field[] |
Document.getFields(String name)
Returns an array of
Field s with the given name. |
static Field |
Field.Keyword(String name,
Date value)
Constructs a Date-valued Field that is not tokenized and is indexed,
and stored in the index, for return with hits.
|
static Field |
Field.Keyword(String name,
String value)
Constructs a String-valued Field that is not tokenized, but is indexed
and stored.
|
static Field |
Field.Text(String name,
Reader value)
Constructs a Reader-valued Field that is tokenized and indexed, but is
not stored in the index verbatim.
|
static Field |
Field.Text(String name,
Reader value,
boolean storeTermVector)
Constructs a Reader-valued Field that is tokenized and indexed, but is
not stored in the index verbatim.
|
static Field |
Field.Text(String name,
String value)
Constructs a String-valued Field that is tokenized and indexed,
and is stored in the index, for return with hits.
|
static Field |
Field.Text(String name,
String value,
boolean storeTermVector)
Constructs a String-valued Field that is tokenized and indexed,
and is stored in the index, for return with hits.
|
static Field |
Field.UnIndexed(String name,
String value)
Constructs a String-valued Field that is not tokenized nor indexed,
but is stored in the index, for return with hits.
|
static Field |
Field.UnStored(String name,
String value)
Constructs a String-valued Field that is tokenized and indexed,
but that is not stored in the index.
|
static Field |
Field.UnStored(String name,
String value,
boolean storeTermVector)
Constructs a String-valued Field that is tokenized and indexed,
but that is not stored in the index.
|
Modifier and Type | Method and Description |
---|---|
void |
Document.add(Field field)
Adds a field to a document.
|
Copyright © 2024 GATE. All rights reserved.