I am creating a search engine with node, express, mongo, mongoose, etc. Now, how can I know when the query finds a word in the database ?? The query can inform me what keyword was found ???
Example: ... query.and ([{color: 'green'}, {color: 'gray'}, {color: 'blue'}]) ....
The query returns the matches found in the database, but I need to know what colors or words found in the query, if possible, at the time that this query is running.
Thanks !!!