| Modifier and Type | Field and Description |
|---|---|
static String |
BASEDIR_WEBJARS_RESOURCES |
static String |
FIELDS |
static String |
GENERATE_AUTOCOMPLETE |
static String |
LUNR |
static String |
MAP_TITLES |
static String |
OUTPUT_CHARSET |
static String |
OUTPUT_FILE |
static String |
VERSION_LUNR_JS |
| Constructor and Description |
|---|
DefaultIndexer() |
| Modifier and Type | Method and Description |
|---|---|
Indexer |
add(Stream<Document> documents) |
byte[] |
bytes(String text) |
void |
configure(Map<String,String> configuration) |
static String |
search(String indexJson,
String query) |
String |
serializeIndex() |
void |
writeJson()
Writes the Stringified index etc to whatever output
the concrete indexer supports
|
protected void |
writeJson(OutputStream output) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOrDefault, getOrDefault, id, mandatorypublic static final String BASEDIR_WEBJARS_RESOURCES
public static final String VERSION_LUNR_JS
public static final String LUNR
public static final String OUTPUT_FILE
public static final String FIELDS
public static final String MAP_TITLES
public static final String GENERATE_AUTOCOMPLETE
public static final String OUTPUT_CHARSET
public void writeJson()
Indexerprotected void writeJson(@WillNotClose OutputStream output) throws IOException
IOExceptionpublic byte[] bytes(String text)
public String serializeIndex()
public static String search(String indexJson, String query) throws ScriptException, NoSuchMethodException
ScriptExceptionNoSuchMethodExceptionCopyright © 2017–2018 earcam. All rights reserved.