private void ConfigureLucene() { //dont reindex when reopening the spawner if (lucene == null) { lucene = new Lucene3D(deleteIfExists: true); lucene.Progress += OnLuceneProgress; lucene.DefineIndexField <DevSpawnerDocument>("id", doc => doc.Name, IndexOptions.PrimaryKey); lucene.DefineIndexField <DevSpawnerDocument>("name", doc => doc.Name, IndexOptions.IndexTermsAndStore); } }