In fuzzy searching, instead of matching exact terms, Solr searches terms that are likely similar to a specified term. The tilde (~) symbol is used at the end of a single word in fuzzy search. For example, to search for a term similar in spelling to roam, use a fuzzy search; roam~ will match terms like roam, roams, and foam.
The distance parameter (optional) specifies the maximum number of modifications that take place between 0 and 2. The default value is 2. For example, searching for roam~1 will search the terms such as roams and foam but not foams because it has a modification distance of 2.