public override void OnIndexEntryCreated(string entryKey, Lucene.Net.Documents.Document document) { lock (parent.DataTable) { parent.DataTable.Rows.Add(entryKey, document.GetField("Project").StringValue); } }
public override void OnIndexEntryCreated(string indexName, string entryKey, Lucene.Net.Documents.Document document) { DataTable.Rows.Add(entryKey, document.GetField("Project").StringValue()); }
internal static void SetCustomFields(object myElement, Lucene.Net.Documents.Document luceneDocument) { foreach (var property in (myElement as ProgramElement).GetCustomProperties()) { if (!property.Name.Equals(ProgramElement.CustomTypeTag)) { Field field = luceneDocument.GetField(property.Name); Contract.Assert(field != null, "Field " + property.Name + " was not populated"); property.SetValue(myElement, field.StringValue(), null); } } }