14. The computer-readable medium of claim 10 , the method further comprising: determining that a second character substring in the sequence of character substrings corresponds to a fourth category of the second sequence of categories; associating the fourth category with the second character substring; and storing in the second context object an association between the fourth category and the second character substring.
10. A non-transitory computer-readable medium that stores a set of instructions for improving the relevance of search results that, when executed by at least one processor of a computer system, configures the computer system to perform operations comprising: receiving a character string; identifying 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 the character substrings, the generating comprising: retrieving 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 retrieved search query template, 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.