public class SimpleIndexer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ID_FIELD |
static String |
DEFAULT_SIREN_FIELD |
| Constructor and Description |
|---|
SimpleIndexer(File path) |
public static final String DEFAULT_ID_FIELD
public static final String DEFAULT_SIREN_FIELD
public SimpleIndexer(File path) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void addDocument(String id, String json) throws IOException
IOExceptionpublic void commit()
throws IOException
IOExceptionCopyright © 2014. All rights reserved.