1. A computer-implemented method for improving the relevance of search results, comprising: receiving a character string; identifying, by at least one processor, a sequence of character substrings in the character string; generating, by the at least one processor, context objects for performing a search, the context objects storing associations between categories and character substrings, the generating comprising: retrieving, from a storage device, a first search query template including a first sequence of categories, storing, in a first context object, an association between a first category of the first sequence and a first character substring in the sequence of character substrings, deleting the first context object based on a comparison of a second character substring in the sequence of character substrings and a second category of the first sequence, determining that the first character substring in the sequence of character substrings corresponds to a third category in a second sequence of categories included in a second search query template retrieved from the storage device, and storing, in a second context object, an association between the third category of the second sequence and the first character substring; searching indexed information using at least the second context object by comparing the third category with labels and/or metadata of the indexed information to generate search results; and providing the search results in response to the received character string.