Hi,
I am sorry for probably very green question, but I am still pretty new to nonsql db world and I am currently thinking what is the best solution for my problem.
Let's assume I have object User. I have two strings attributes, first_name and last_name. Then, I am supposed to search over all users, but only attribute I have is the user input. So, in DB I can have {first_name => "John", last_name => 'Smith'}, but user is looking for 'John Smith'.
In SQL DB, I would just put the columns together by concat, but here I am not sure. Of course, I can search by first AND last name, but I want to get valid results also when users looks for 'John Sm'. Also, in future I would like to search by more attributes, so I am looking for more universal solution.
Thank you for help.
Michael