public class BaseSearchInputDocument extends Object implements SearchInputDocument
| Constructor and Description |
|---|
BaseSearchInputDocument()
Default constructor.
|
BaseSearchInputDocument(BaseSearchInputDocument doc)
Create a deep copy, down to the value objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addField(SearchInputField field)
Put the field into the document.
|
void |
addField(String name,
Collection<Object> values)
Create a field with this name and values, and put it into the document.
|
void |
addField(String name,
float boost,
Collection<Object> values)
Create a field with this name, boost level and values, and put it into
the document.
|
void |
addField(String name,
float boost,
Object... values)
Create a field with this name, boost level and values, and put it into
the document.
|
void |
addField(String name,
Object... values)
Create a field with this name and values, and put it into the document.
|
SearchInputField |
createField(String name)
Sub-classes should override this if the field requires special
functionality.
|
boolean |
equals(Object obj) |
float |
getDocumentBoost() |
SearchInputField |
getField(String name)
May return null.
|
Map<String,SearchInputField> |
getFieldMap()
May return an empty map, but never null.
|
int |
hashCode() |
void |
setDocumentBoost(float searchBoost)
Set a boost level for the document as a whole.
|
String |
toString() |
public BaseSearchInputDocument()
public BaseSearchInputDocument(BaseSearchInputDocument doc)
public void addField(SearchInputField field)
SearchInputDocumentaddField in interface SearchInputDocumentpublic void addField(String name, Object... values)
SearchInputDocumentaddField in interface SearchInputDocumentpublic void addField(String name, Collection<Object> values)
SearchInputDocumentaddField in interface SearchInputDocumentpublic void addField(String name, float boost, Object... values)
SearchInputDocumentaddField in interface SearchInputDocumentpublic void addField(String name, float boost, Collection<Object> values)
SearchInputDocumentaddField in interface SearchInputDocumentpublic void setDocumentBoost(float searchBoost)
SearchInputDocumentsetDocumentBoost in interface SearchInputDocumentpublic float getDocumentBoost()
getDocumentBoost in interface SearchInputDocumentpublic SearchInputField getField(String name)
SearchInputDocumentgetField in interface SearchInputDocumentpublic Map<String,SearchInputField> getFieldMap()
SearchInputDocumentgetFieldMap in interface SearchInputDocumentpublic SearchInputField createField(String name)
createField in interface SearchInputDocumentCopyright © 2021. All rights reserved.