public class ElasticSearchIndex extends ElasticSearchConnection
ElasticSearchConnection.CallThread, ElasticSearchConnection.Result
Modifier and Type | Field and Description |
---|---|
protected static String |
allowAttributeName
The allow attribute name
|
protected static String |
denyAttributeName
The deny attribute name
|
protected static String |
noSecurityToken
The no-security token
|
protected static boolean |
useNullValue
Flag set as to whether null_value works in ES.
|
config, jsonException
Constructor and Description |
---|
ElasticSearchIndex(org.apache.http.client.HttpClient client,
ElasticSearchConfig config) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(String documentURI,
RepositoryDocument document,
InputStream inputStream,
String[] acls,
String[] denyAcls,
String[] shareAcls,
String[] shareDenyAcls,
String[] parentAcls,
String[] parentDenyAcls)
Do the indexing.
|
protected static String |
jsonStringEscape(String value) |
protected static boolean |
writeACLs(PrintWriter pw,
boolean needComma,
String aclType,
String[] acl,
String[] denyAcl)
Output an acl level
|
protected static boolean |
writeField(PrintWriter pw,
boolean needComma,
String fieldName,
String[] fieldValues) |
call, checkJson, getApiUrl, getCallUrlSnippet, getResponse, getResult, getResultCode, getResultDescription, handleHttpException, handleIOException, handleResultCode, setResult, setResultCode
protected static final String allowAttributeName
protected static final String denyAttributeName
protected static final String noSecurityToken
protected static final boolean useNullValue
public ElasticSearchIndex(org.apache.http.client.HttpClient client, ElasticSearchConfig config)
protected static boolean writeField(PrintWriter pw, boolean needComma, String fieldName, String[] fieldValues) throws IOException
IOException
protected static boolean writeACLs(PrintWriter pw, boolean needComma, String aclType, String[] acl, String[] denyAcl) throws IOException
IOException
public boolean execute(String documentURI, RepositoryDocument document, InputStream inputStream, String[] acls, String[] denyAcls, String[] shareAcls, String[] shareDenyAcls, String[] parentAcls, String[] parentDenyAcls) throws ManifoldCFException, ServiceInterruption
ManifoldCFException
ServiceInterruption