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; replacing a first portion of the string with a label of a category of relationship data to generate a modified query when the first portion of the string matches with the category; regarding a second portion of the string as an intended word of the received query that indicates an intent of the received query and keeping the second portion of the string in the received query without replacement when the second portion of the string matches with at least one intended word in a dictionary associated with the category of the relationship data, the at least one intended word indicating a user intent; and performing a search based at least in part on the modified query.