Skip to content

Json4sHitReader should get _id from hit. #2220

Open
@hanrw

Description

    implicit def Json4sHitReader[T](implicit json4s: Serialization, formats: Formats, mf: Manifest[T]): HitReader[T] =
      new HitReader[T] {
        override def read(hit: Hit): Try[T] = Try {
          json4s.read[T](hit.sourceAsString)
        }
      }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions