summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
39a4289)
Issue-ID: AAI-1999
Change-Id: I40bcb53eeb9738b4d395cb0202a921c7d75791bb
Signed-off-by: Francis Paquette <francis.paquette@amdocs.com>
JsonObject obj = Json.createObjectBuilder().add("entityType", entityType)
.add("entityPrimaryKeyValue", entityPrimaryKeyValue).add("searchTagIDs", searchTagIds)
JsonObject obj = Json.createObjectBuilder().add("entityType", entityType)
.add("entityPrimaryKeyValue", entityPrimaryKeyValue).add("searchTagIDs", searchTagIds)
- .add("searchTags", searchTags).add("crossEntityReferenceValues", crossReferenceEntityValues)
+ .add("searchTags", searchTags).add("crossReferenceEntityValues", crossReferenceEntityValues)
.add("lastmodTimestamp", lastmodTimestamp).add("link", link).build();
return obj.toString();
.add("lastmodTimestamp", lastmodTimestamp).add("link", link).build();
return obj.toString();
JsonObject obj = Json.createObjectBuilder().add("entityType", entityType)
.add("entityPrimaryKeyValue", entityPrimaryKeyValue).add("searchTagIDs", searchTagIds)
JsonObject obj = Json.createObjectBuilder().add("entityType", entityType)
.add("entityPrimaryKeyValue", entityPrimaryKeyValue).add("searchTagIDs", searchTagIds)
- .add("searchTags", searchTags).add("crossEntityReferenceValues", crossReferenceEntityValues)
+ .add("searchTags", searchTags).add("crossReferenceEntityValues", crossReferenceEntityValues)
.add("lastmodTimestamp", lastmodTimestamp).add("link", link).build();
return obj.toString();
.add("lastmodTimestamp", lastmodTimestamp).add("link", link).build();
return obj.toString();
if (!sourceObject.isEmpty()) {
JsonNode node = sourceObject.get(0);
final String sourceCer = NodeUtils.extractFieldValueFromObject(node,
if (!sourceObject.isEmpty()) {
JsonNode node = sourceObject.get(0);
final String sourceCer = NodeUtils.extractFieldValueFromObject(node,
- "crossEntityReferenceValues");
+ "crossReferenceEntityValues");
String newCer = aaiEventEntity.getCrossReferenceEntityValues();
boolean hasNewCer = true;
if (sourceCer != null && sourceCer.length() > 0){ // already has CER
String newCer = aaiEventEntity.getCrossReferenceEntityValues();
boolean hasNewCer = true;
if (sourceCer != null && sourceCer.length() > 0){ // already has CER
if (hasNewCer){
// Do the PUT with new CER
if (hasNewCer){
// Do the PUT with new CER
- ((ObjectNode)node).put("crossEntityReferenceValues", newCer);
+ ((ObjectNode)node).put("crossReferenceEntityValues", newCer);
jsonPayload = NodeUtils.convertObjectToJson(node, false);
searchAgent.putDocument(entitySearchIndex, entityId, jsonPayload, headers);
}
jsonPayload = NodeUtils.convertObjectToJson(node, false);
searchAgent.putDocument(entitySearchIndex, entityId, jsonPayload, headers);
}
* "content", sourceObject);
*
* if (!sourceObject.isEmpty()) { JsonNode node = sourceObject.get(0); final String sourceCer =
* "content", sourceObject);
*
* if (!sourceObject.isEmpty()) { JsonNode node = sourceObject.get(0); final String sourceCer =
- * NodeUtils.extractFieldValueFromObject(node, "crossEntityReferenceValues"); String newCer =
+ * NodeUtils.extractFieldValueFromObject(node, "crossReferenceEntityValues"); String newCer =
* spikeEventEntity.getCrossReferenceEntityValues(); boolean hasNewCer = true; if (sourceCer !=
* null && sourceCer.length() > 0) { // already has CER if (!sourceCer.contains(newCer)) {// don't
* re-add newCer = sourceCer + ";" + newCer; } else { hasNewCer = false; } }
*
* if (hasNewCer) { // Do the PUT with new CER ((ObjectNode)
* spikeEventEntity.getCrossReferenceEntityValues(); boolean hasNewCer = true; if (sourceCer !=
* null && sourceCer.length() > 0) { // already has CER if (!sourceCer.contains(newCer)) {// don't
* re-add newCer = sourceCer + ";" + newCer; } else { hasNewCer = false; } }
*
* if (hasNewCer) { // Do the PUT with new CER ((ObjectNode)
- * node).put("crossEntityReferenceValues", newCer); jsonPayload =
+ * node).put("crossReferenceEntityValues", newCer); jsonPayload =
* NodeUtils.convertObjectToJson(node, false); searchAgent.putDocument(entitySearchIndex,
* entityId, jsonPayload, headers); } } } else {
*
* NodeUtils.convertObjectToJson(node, false); searchAgent.putDocument(entitySearchIndex,
* entityId, jsonPayload, headers); } } } else {
*
"index-analyzer": "ngram_analyzer"
},
{
"index-analyzer": "ngram_analyzer"
},
{
- "name": "crossEntityReferenceValues",
+ "name": "crossReferenceEntityValues",
"data-type": "string",
"index-analyzer": "ngram_analyzer"
},
"data-type": "string",
"index-analyzer": "ngram_analyzer"
},