How can i search firebase data with a value, i want to get the data if the value comes in between the two keys
Example
If user enter any number between 1 to 5 return the below data,
"start" : "1",
"end" : "5",
"end" key can be empty, the array i have in my firebase database is below
"classdata" : [ null, {
"-L4VflG9efJfNOk0ETjK" : {
"start" : "1",
"end" : "2",
"classdate" : 1517761011016,
"commentator" : "",
"description" : "",
"id" : 1517745488337,
"title" : "12"
},
"-L4WUbRH46l3pIcwDC2z" : {
"start" : "3",
"end" : "",
"classdate" : 1518961333727,
"commentator" : "",
"description" : "",
"id" : 1517759080685,
"title" : "5"
},
"-L4WbgyUB7MRVUzBNJM3" : {
"start" : "4",
"end" : "6",
"classdate" : 1518975293250,
"commentator" : "",
"description" : "",
"id" : 1517761201012,
"title" : "2"
},
"-L5cxhQzDkEHrFi6J5Mf" : {
"start" : "7",
"end" : "",
"classdate" : 1519010573333,
"commentator" : "",
"description" : "",
"id" : 1518958204014,
"title" : "1"
},