1. One or more computer-readable media storing computer-executable instructions that, when executed by one or more processors, instruct the one or more processors to perform acts comprising: receiving a query including a string; determining that a first portion of the string matches with a category of relationship data; replacing the first portion of the string with a label of the category to generate a modified query; matching a second portion of the string with one or more intended words in a dictionary associated with the category of the relationship data, the one or more intended words indicating a user intent; in response to obtaining a match between the second portion of the string and at least one intended word of the one or more intended words in the dictionary associated with the category of the relationship data, regarding the second portion of the string as an intended word of the query that indicates an intent of the query and keeping the second portion of the string in the query without replacement; and performing a search based on the intent of the query.