### Goggle Metadata Example Source: https://github.com/brave/goggles-quickstart/blob/main/getting-started.md Define essential metadata for your Goggle file, including its name, description, public status, and author. ```goggle ! name: My Goggle ! description: What my Goggle does ! public: false ! author: Me ``` -------------------------------- ### Construct Goggle Sharing URL Source: https://github.com/brave/goggles-quickstart/blob/main/getting-started.md Build a URL to share your Goggle. Replace YOUR_GOGGLE_URL with the actual URL of your Goggle file. ```url https://search.brave.com/goggles?goggles_id={YOUR_GOGGLE_URL} ``` -------------------------------- ### Conflicting Boost Instructions Source: https://github.com/brave/goggles-quickstart/blob/main/getting-started.md Illustrates two conflicting boost instructions for the same site. The higher boost value takes precedence. ```goggles $boost=3,site=example.com $boost=1,site=example.com ``` -------------------------------- ### Set Goggle to Private Source: https://github.com/brave/goggles-quickstart/blob/main/getting-started.md Specify this metadata at the head of your Goggle file to restrict discoverability. Only those with the Goggle URL can access it. ```goggle ! public: false ``` -------------------------------- ### Set Goggle to Public Source: https://github.com/brave/goggles-quickstart/blob/main/getting-started.md Specify this metadata at the head of your Goggle file to make it publicly discoverable on the Brave Search discovery page. ```goggle ! public: true ``` -------------------------------- ### Construct URL-Encoded Goggle Sharing URL Source: https://github.com/brave/goggles-quickstart/blob/main/getting-started.md Construct a URL for sharing your Goggle, ensuring the Goggle URL is properly URL-encoded for correct parsing. ```url https://search.brave.com/goggles?goggles_id=https%3A%2F%2Fgist.githubusercontent.com%2Fremusao%2Ffca3f9ee3ddca3e022426b8237e838ac%2Fraw%2F ``` -------------------------------- ### Discard Rule Precedence Source: https://github.com/brave/goggles-quickstart/blob/main/getting-started.md Demonstrates the precedence of discard rules over boost and downrank rules. A discard rule is final. ```goggles $discard $boost=3,site=example.com $downrank=2,site=example.com ``` -------------------------------- ### Conflicting Boost and Downrank Instructions Source: https://github.com/brave/goggles-quickstart/blob/main/getting-started.md Shows a subtle conflict between a downrank and a boost instruction. Boost rules take precedence over downrank rules. ```goggles $downrank=3,site=example.com /posts/$boost=3 ``` -------------------------------- ### Transferring Goggle Ownership Source: https://github.com/brave/goggles-quickstart/blob/main/faq.md Use the `transferred_to` metadata attribute to indicate a new hosting URL for a Goggle. Both the old and new URLs must be registered Goggles for the transfer to be successful. ```Goggles Metadata ! name: Original ! description: This is the original Goggle ! author: John ! public: true ! transferred_to: https://gist.github.com/paul/965503febec9a9e917fb816b1ff8820e ``` -------------------------------- ### Exclude All Unmatched Results Source: https://github.com/brave/goggles-quickstart/blob/main/getting-started.md Uses a generic '$discard' rule to exclude any result not explicitly matched by other rules in the Goggle. This ensures only specified sites are considered. ```goggles $discard $boost,site=en.wikipedia.org $boost,site=de.wikipedia.org ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.