> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: fuzzy(fuzzy: boolean) # Method package: wixSearch # Method menu location: wixSearch --> WixSearchBuilder --> fuzzy # Method Link: https://dev.wix.com/docs/velo/apis/wix-search/wix-search-builder/fuzzy.md # Method Description: Sets whether to search for exact matches or approximate matches of the search phrase. If `fuzzy` is `false`, the search only returns documents containing an exact match of the search phrase. For example, a search for "applf" or "app" will not return documents containing the phrase "apple". If `fuzzy` is `true`, the search returns documents containing exact matches and approximate matches of the search phrase. For example, a search for "applf" or "app" will return documents containing the phrase "apple". > **Note:** The default for `fuzzy` is `true`. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Set whether a search is fuzzy ```javascript let newSearch = search.fuzzy(false); ``` ## Create a search, set the search to only match the exact search phrase, and run it ```javascript import wixSearch from 'wix-search'; // ... $w("#searchInput").onKeyPress((keyPress) => { if (keyPress.key === "Enter") { const phrase = $w("#searchInput").value; wixSearch.search(phrase) .fuzzy(false) .find() .then( (results) => { if(results.documents.length > 0) { let documents = results.documents; } else { console.log("No matching results"); } }) .catch( (error) => { console.log(error); }); } }); ``` ---