public final class IndexDocument extends Object
|Modifier and Type
|Method and Description
Add a [key,value] pair to this document.
key - The key that you will later search by. Note that you are NOT
allowed to use the keys
since these are reserved (and in fact used) by GSF.
value - The value that will be retrieved for this key
searchable - A boolean which if set to true will store the pair with
an indexed/searchable field key, otherwise with an unindexed field (that cannot be
searched). You must be consistent in how keys are identified
as searchable; the same key must always be referenced with the same
value for searchable when pairs are added (per document).