Commit 2b66636f authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen
Browse files

avoid double entries in in-memmory indexes

parent 8fd14688
...@@ -709,7 +709,9 @@ public class SearchServiceImpl implements SearchService { ...@@ -709,7 +709,9 @@ public class SearchServiceImpl implements SearchService {
// as Catalinker has no need for them. // as Catalinker has no need for them.
return; return;
} }
if (doc.containsKey("displayLine1")) { if (doc.containsKey("displayLine1")) {
removeFromLocalIndex(xuri);
addIndexedName( addIndexedName(
xuri.getTypeAsEntityType(), xuri.getTypeAsEntityType(),
doc.get("displayLine1").toString(), doc.get("displayLine1").toString(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment