These keywords are then compared with the data in the database, to see if any stored documents match the keywords. Documents that match are shown to the user. They can be text, images, sounds, whatever fits in a computer. The documents are sorted or indexed by category or keywords. They are entered into the database.
Users enter search terms to find entries in the database that match their search queries.
And hopefully, after all this effort, the users get back the results that they need. Well, yes, but there's more. Not all records are writing. I didn't know they had any crime in Canada. There's a little around Toronto.