I am developing an activity to search content in the FirebaseDatabase.
I want to use a Query to get the tuples which CONTAIN the string searchBoxInput
.
I have tried the code below but it only returns the tuplas which start witch searchBoxInput
, not which CONTAIN
private EditText searchInputText;
String searchBoxInput = searchInputText.getText().toString();
final Query query = ref
.orderByChild("title")
.startAt(searchBoxInput)
.endAt(searchBoxInput + "\uf8ff");
How can I do it? Thanks :)