I have finally figured out how to get my search service to work using this code {"teacher_name": {"$regex": "input"}}
I am unable to find how to get my service to take the information from the input by the user and use it with the javascript code to search for the item