public interface MutableSearchEntry extends SearchEntry
FIELD_CREATOR, FIELD_CUSTOM_ID, FIELD_ID, FIELD_KEYWORDS, FIELD_LANGUAGE, FIELD_SIZE, FIELD_SOURCE, FIELD_TEXT, FIELD_TITLE, FIELD_TYPE, FIELD_URI| Modifier and Type | Method and Description |
|---|---|
void |
setBoost(double boost)
This method sets the boost of this this entry.
|
void |
setCreator(String author)
This method sets the
creator. |
void |
setCustomId(Object cid)
This method sets the
UID. |
void |
setField(String name,
Object value)
This method sets the field with the given
name to the given
value. |
void |
setKeywords(String keywords)
This method sets the
keywords. |
void |
setSize(long size)
This method sets the
size. |
void |
setSource(String source)
This method sets the
source. |
void |
setText(String text)
This method sets the
text. |
void |
setTitle(String title)
This method sets the
title. |
void |
setType(String type)
This method sets the
type. |
void |
setUri(String uri)
This method sets the
URI. |
getCreator, getCustomId, getField, getField, getFieldAsString, getFieldNames, getId, getSize, getSource, getText, getTitle, getType, getUrivoid setField(String name, Object value)
name to the given
value. SearchEntry.FIELD_ID and doing so will
cause an exception. SearchFieldType. Additionally
Reader can be used to index large texts. value of the type Reader should only be used
when indexing really large texts. In this case the
mode has to be
SearchFieldMode.SEARCHABLE and
type has to be SearchFieldType.TEXT
(NOT Reader). Further the Reader will only
be closed when the
MutableSearchEntry has been
added or
updated. If you never
write the MutableSearchEntry to the index for some reason, you are
responsible for closing the reader.name - is the name of the field. E.g. SearchEntry.FIELD_TEXT.value - is the value of the field to set.void setUri(String uri)
URI.uri - is the URI to set.setField(String, Object),
SearchEntry.getUri()void setCustomId(Object cid)
UID.cid - is the UID to set.setField(String, Object),
SearchEntry.getCustomId()void setTitle(String title)
title.title - is the title to set.setField(String, Object),
SearchEntry.getTitle()void setText(String text)
text.text - is the text to set.setField(String, Object)void setKeywords(String keywords)
keywords.keywords - are the keywords to set.setField(String, Object)void setCreator(String author)
creator.author - is the author to set.setField(String, Object)void setType(String type)
type.type - is the type to set.setField(String, Object),
SearchEntry.getType()void setSource(String source)
source.source - is the source to set.setField(String, Object),
SearchEntry.getSource()void setSize(long size)
size.size - is the size to set.setField(String, Object),
SearchEntry.getSource()void setBoost(double boost)
boost - is theCopyright © 2001–2016 mmm-Team. All rights reserved.