mirror of
https://github.com/OpenSPG/openspg.git
synced 2026-01-08 05:11:05 +00:00
bugfix
This commit is contained in:
parent
65d5e6cc09
commit
43641f4573
@ -75,8 +75,8 @@ public class LocalBuilderMain {
|
||||
ALTER_OPERATION_OPTION, ALTER_OPERATION_OPTION, true, "alter operation, upsert or delete");
|
||||
options.addOption(LOG_FILE_OPTION, LOG_FILE_OPTION, true, "log file");
|
||||
options.addOption(LEAD_TO_OPTION, LEAD_TO_OPTION, false, "enable leadTo");
|
||||
options.addOption(GRAPH_STORE_URL, GRAPH_STORE_URL, false, "graph store url");
|
||||
options.addOption(SEARCH_ENGINE_URL, SEARCH_ENGINE_URL, false, "search engine url");
|
||||
options.addRequiredOption(GRAPH_STORE_URL, GRAPH_STORE_URL, true, "graph store url");
|
||||
options.addRequiredOption(SEARCH_ENGINE_URL, SEARCH_ENGINE_URL, true, "search engine url");
|
||||
|
||||
CommandLine commandLine = null;
|
||||
HelpFormatter helper = new HelpFormatter();
|
||||
@ -113,7 +113,7 @@ public class LocalBuilderMain {
|
||||
boolean enableLeadTo = commandLine.hasOption(LEAD_TO_OPTION);
|
||||
|
||||
String graphStoreUrl = commandLine.getOptionValue(GRAPH_STORE_URL);
|
||||
String searchEngineUrl = commandLine.getOptionValue(GRAPH_STORE_URL);
|
||||
String searchEngineUrl = commandLine.getOptionValue(SEARCH_ENGINE_URL);
|
||||
|
||||
ProjectSchema projectSchema = getProjectSchema(projectId, schemaUrl);
|
||||
Map<SPGTypeIdentifier, ConceptList> conceptLists = getConceptLists(enableLeadTo, projectSchema);
|
||||
|
||||
@ -131,7 +131,7 @@ public class TuGraphStoreClient extends BaseLPGGraphStoreClient {
|
||||
}
|
||||
|
||||
private TuGraphDbRpcClient initTuGraphClient(UriComponents uriComponents) {
|
||||
String host = uriComponents.getHost();
|
||||
String host = String.format("%s:%s", uriComponents.getHost(), uriComponents.getPort());
|
||||
String accessId = uriComponents.getQueryParams().getFirst(ApiConstants.ACCESS_ID);
|
||||
String accessKey = uriComponents.getQueryParams().getFirst(ApiConstants.ACCESS_KEY);
|
||||
TuGraphDbRpcClient client = null;
|
||||
|
||||
@ -24,7 +24,7 @@ class CertLinkerOperator(LinkOp):
|
||||
super().__init__()
|
||||
self.search_client = SearchClient("RiskMining.Cert")
|
||||
|
||||
def eval(self, property: str, record: SPGRecord) -> List[SPGRecord]:
|
||||
def invoke(self, property: str, record: SPGRecord) -> List[SPGRecord]:
|
||||
has_cert = property
|
||||
query = {"match": {"certNum": has_cert}}
|
||||
recall_certs = self.search_client.search(query, start=0, size=10)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user