Searching Data within the event store

Hi,

I am looking into how to search for data within our events on our event store.

e.g. if we have an event with the data below, is there any way of using the ‘Query’ interface within the Event Store to search for the data ‘some-surname’. I’m struggling to find documentation with examples to allow me to do this?

Data

{
  "name": "Some-surname"
}

Kind regards,

Mark Gabb

fromAll.where(
function(s,e) {

if (s.name == “some-surname”) {

//something

}

}

)

ES queries are not the same as say SQL in that they are more annoying to write but also can run forever.