You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a quick question regarding legacy indexes support in Neo4jClient. I am trying to use Client.ReIndex, but it doesn't look like it updates values it looks like it is adding them. I see that new files are created in index folder. And they keep appearing when I loop reindex and just change values of keys. What is the right way to reindex node with LegacyIndexes? It's a fulltext lucence index.
private void PopulateFullTextIndex(Record entity, ApplicationInfo appInfo, NodeReference<Dictionary<string, object>> refRecord)
{
var entries = new List<IndexEntry>();
var textEntries = appInfo.TextFields
.Select(field => new IndexEntry(appInfo.FullTextIndexName) {{field.Key, entity.Values[field.Key]}});
var userEntries = appInfo.UserGroupFields
.Select(field => new IndexEntry(appInfo.FullTextIndexName){ {field.Key, ConcatUserGroupList(field.Value, entity)}});
var valueListEntries = appInfo.ValueListFields
.Select(field => new IndexEntry(appInfo.FullTextIndexName){ {field.Key, ConcatValueLists(field.Value,entity) }});
var commentsText = string.Concat(entity.Comments.Values.Select(ConcatComments));
entries.Add(new IndexEntry(appInfo.FullTextIndexName) { { nameof(Record.Comments), commentsText } });
entries.AddRange(textEntries);
entries.AddRange(userEntries);
entries.AddRange(valueListEntries);
_client.ReIndex(refRecord, entries );
}
The text was updated successfully, but these errors were encountered:
I have a quick question regarding legacy indexes support in Neo4jClient. I am trying to use Client.ReIndex, but it doesn't look like it updates values it looks like it is adding them. I see that new files are created in index folder. And they keep appearing when I loop reindex and just change values of keys. What is the right way to reindex node with LegacyIndexes? It's a fulltext lucence index.
The text was updated successfully, but these errors were encountered: