@@ -52,8 +52,8 @@ public IQueryable<Entry> FilterAndRank(IQueryable<Entry> queryable,
5252 . ThenBy ( t => t . Headword . Length )
5353 . ThenBy ( t => t . Headword . CollateUnicode ( wsId ) )
5454 . ThenBy ( t => t . HeadwordMatches
55- ? morphTypeTable . Where ( mt => mt . MorphType == t . Entry . MorphType || mt . MorphType == MorphType . Stem )
56- . OrderBy ( mt => mt . MorphType == MorphType . Stem ? 1 : 0 ) // stem is the fallback, so it should come last
55+ ? morphTypeTable . Where ( mt => mt . Kind == t . Entry . MorphType || mt . Kind == MorphTypeKind . Stem )
56+ . OrderBy ( mt => mt . Kind == MorphTypeKind . Stem ? 1 : 0 ) // stem is the fallback, so it should come last
5757 . Select ( mt => mt . SecondaryOrder ) . FirstOrDefault ( )
5858 : int . MaxValue )
5959 // .ThenBy(t => t.Entry.HomographNumber)
@@ -213,7 +213,7 @@ public async Task UpdateEntrySearchTable(Guid entryId)
213213 public async Task UpdateEntrySearchTable ( Entry entry )
214214 {
215215 var writingSystems = await dbContext . WritingSystemsOrdered . ToArrayAsync ( ) ;
216- var morphTypeDataLookup = await dbContext . AllMorphTypeData . ToDictionaryAsync ( m => m . MorphType ) ;
216+ var morphTypeDataLookup = await dbContext . MorphTypes . ToDictionaryAsync ( m => m . Kind ) ;
217217 var record = ToEntrySearchRecord ( entry , writingSystems , morphTypeDataLookup ) ;
218218 await InsertOrUpdateEntrySearchRecord ( record , EntrySearchRecordsTable ) ;
219219 }
@@ -262,7 +262,7 @@ public static async Task UpdateEntrySearchTable(IEnumerable<Entry> entries,
262262 return ws1 . Id . CompareTo ( ws2 . Id ) ;
263263 } ) ;
264264 var entrySearchRecordsTable = dbContext . GetTable < EntrySearchRecord > ( ) ;
265- var morphTypeDataLookup = await dbContext . AllMorphTypeData . ToDictionaryAsync ( m => m . MorphType ) ;
265+ var morphTypeDataLookup = await dbContext . MorphTypes . ToDictionaryAsync ( m => m . Kind ) ;
266266 var searchRecords = entries . Select ( entry => ToEntrySearchRecord ( entry , writingSystems , morphTypeDataLookup ) ) ;
267267 foreach ( var entrySearchRecord in searchRecords )
268268 {
@@ -281,7 +281,7 @@ public async Task RegenerateEntrySearchTable()
281281 await EntrySearchRecordsTable . TruncateAsync ( ) ;
282282
283283 var writingSystems = await dbContext . WritingSystemsOrdered . ToArrayAsync ( ) ;
284- var morphTypeDataLookup = await dbContext . AllMorphTypeData . ToDictionaryAsync ( m => m . MorphType ) ;
284+ var morphTypeDataLookup = await dbContext . MorphTypes . ToDictionaryAsync ( m => m . Kind ) ;
285285 await EntrySearchRecordsTable
286286 . BulkCopyAsync ( dbContext . Set < Entry > ( )
287287 . LoadWith ( e => e . Senses )
@@ -307,7 +307,7 @@ private async Task<bool> HasMissingEntries()
307307 }
308308
309309 private static EntrySearchRecord ToEntrySearchRecord ( Entry entry , WritingSystem [ ] writingSystems ,
310- IReadOnlyDictionary < MorphType , MorphType > morphTypeDataLookup )
310+ IReadOnlyDictionary < MorphTypeKind , MorphType > morphTypeDataLookup )
311311 {
312312 // Include headwords (with morph tokens) for ALL vernacular writing systems (space-separated).
313313 // This ensures FTS matches across all WS, including morph-token-decorated forms.
0 commit comments