Closed
Description
I've got an abstract base class of type Activity
and subtypes of a variety of types, including Searched
.
For mappings, I fluent-mapped Activity
but was forced when fluent-mapping Searched
to remap everything mapped on Activity
.
On the storage side, I do for example client.Index<Activity>(instanceOfSearched, x => x.Index("Activities").Type(typeof(Searched)))
.
When I search, using client.Search<Activity>(x => x.Indices("Activity").AllTypes().MatchAll())
, I get JsonSerializationException
s based around an inability to instantiate Activity
because it is abstract. It doesn't seem to notice that the stored type is actually a Searched
.
Metadata
Metadata
Assignees
Labels
No labels