Skip to content

Commit

Permalink
Fixes for Enum support in LuceneStore
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfrog26 committed Oct 11, 2024
1 parent 5bbd766 commit ff39dfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lucene/src/main/scala/lightdb/lucene/LuceneStore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class LuceneStore[Doc <: Document[Doc], Model <: DocumentModel[Doc]](directory:
case Null => add(new StringField(field.name, Field.NullString, fs))
case _ => add(new StringField(field.name, json.asString, fs))
}
case DefType.Enum(_, _) => add(new StringField(field.name, json.asString, fs))
case DefType.Opt(d) => addJson(json, d)
case DefType.Json | DefType.Obj(_, _) => add(new StringField(field.name, JsonFormatter.Compact(json), fs))
case _ if json == Null => // Ignore null values
Expand Down

0 comments on commit ff39dfa

Please sign in to comment.