public class AddOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AddOptions.ReplacementPolicy |
Constructor and Description |
---|
AddOptions()
Create a new DocumentOptions object.
|
Modifier and Type | Method and Description |
---|---|
AddOptions |
setLanguage(String language)
Set the indexing language
|
AddOptions |
setNosave()
Indicate that the document's contents should not be stored in the database.
|
AddOptions |
setNosave(boolean enabled)
Whether document's contents should not be stored in the database.
|
AddOptions |
setReplacementPolicy(AddOptions.ReplacementPolicy mode)
Indicate the behavior for the existing document.
|
public AddOptions()
public AddOptions setLanguage(String language)
language
- The language the document should be stemmed as.AddOptions
object for further optionspublic AddOptions setNosave()
AddOptions
object for further optionspublic AddOptions setNosave(boolean enabled)
enabled
- if enabled, the document is not stored on the server. This saves disk/memory space on the
server but prevents retrieving the document itself.AddOptions
object for further optionspublic AddOptions setReplacementPolicy(AddOptions.ReplacementPolicy mode)
mode
- One of the replacement modesAddOptions
object for further optionsCopyright © 2019. All rights reserved.