====== Searching on OzBargain ====== You can search nodes (deals, competitions & forum posts), private messages and wiki pages on OzBargain using the search input box. It generally takes a list of //keywords//, although syntax for special operations are slightly different for different searches. ===== Searching Nodes ===== https://www.ozbargain.com.au/search/node **''cat:''** Search deals only in specific categories defined by '''', which is ''automotive'' for Automotive, ''computing'' for Computing, ''fashion-apparel'' for Fashion & Apparel, etc. It's basically the last part of URL path for category pages. Use CSV to search across multiple categories. * ''[[https://www.ozbargain.com.au/search/node/free+udemy+cat:education|free udemy cat:education]]'' searches **free udemy** courses in Education category. **''category:''** Search only in specific taxonomy IDs. Not that useful if you don't know the numeric ID of taxonomy terms. **''created:''** Search nodes created on a certain date or a date range. A date can be specified with a 8 digital number ''YYYYMMDD''. A date range can be specified with 2 8 digital numbers joined by a hyphen, i.e. ''YYYYMMDD-YYYYMMDD'', and it would search from the beginning (12AM) of the first date to the end (11:59PM) of the second date. * ''[[https://www.ozbargain.com.au/search/node/chocolate+created:20160207-20160214|chocolate created:20160207-20160214]]'' searches any mention of **chocolate** in nodes posted during the 7 days prior to Valentine's Day 2016. **''created:''** Search nodes created in the last x days, weeks, months or years. '''' is expected to be a number + suffix, where suffix can be either **d** (days), **w** (weeks), **m** (months) or **y** (years). For example, * ''[[https://www.ozbargain.com.au/search/node/iphone+created:3w|iphone created:3w]]'' searches any mention of **iphone** in the last 3 weeks. **''domain:''** Search nodes that are linked with specific domain / store. Note that '''' has to be a proper domain name rather than a hostname. So to search Harvey Norman uses ''domain:harveynorman.com.au'' rather than ''domain:www.harveynorman.com.au''. * ''[[https://www.ozbargain.com.au/search/node/professionals+domain:harveynorman.com.au+type:forum|professionals domain:harveynorman.com.au type:forum]]'' searches the term **professionals** in forum posts that are linked to Harvey Norman. **''option:''** Extra options to be passed to the search engine. Currently: * ''option:freebie'' would only search through the deals marked as Freebie. * ''option:titleonly'' would match keywords in the node title only, i.e. will not search the node content and comments. **''sort:''** Change how the search result will be sorted. * ''sort:default'' would sort the result by relevancy. * ''sort:created'' would sort the result by the post date in reverse chronological order. * ''sort:changed'' would sort the result by the last comment date in reverse chronological order. **''tag:''** Search nodes only linked to specific tags defined by '''', which is the last part of URL path for tag, event, product and brand pages. Use CSV to search across multiple tags. * ''[[https://www.ozbargain.com.au/search/node/microwave+tag:sharp%2Csamsung|microwave tag:sharp,samsung]]'' searches **microwave** in nodes that are tagged with either Sharp and Samsung. * ''[[https://www.ozbargain.com.au/search/node/motorola+cat:mobile+tag:black-friday|motorola cat:mobile tag:black-friday]]'' searches **motorola** in deals that are in Mobile category and tagged with "Black Friday" (which is an event tag). **''type:''** Search only in specific node type, where '''' can be either ''ozbdeal'' for deals, ''forum'' for forum topics, ''competition'' for competitions and ''classified'' for classified ads. Use CSV for searching across multiple types. * ''[[https://www.ozbargain.com.au/search/node/xbox+one+type:forum|xbox one type:forum]]'' searches **xbox one** only in forum posts. * ''[[https://www.ozbargain.com.au/search/node/iphone+type:competition%2Cclassified|iphone type:competition,classified]]'' searches **iphone** in both classified & competition nodes. **''user:''** Search nodes that have been posted by a specific user defined by '''' which can be a CSV of numeric ID for that user. To find a user's ''uid'', you can go to that user's profile page and the numeric value in the URL is that user's ''uid'' on the system. * ''[[https://www.ozbargain.com.au/search/node/ssd+type:ozbdeal+user:158680|ssd type:ozbdeal user:158680]]'' searches all the **ssd** deals posted by user "lyl". ===== Search Private Messages ===== https://www.ozbargain.com.au/search/privatemsg You can only search the private messages that you are participating. **''from:''** Search private messages that were sent by a specific user defined by '''' which is the numeric ID for the user. It can be a CSV to include multiple users. You can go to that user's profile page and the numeric value in the URL is that user's ''uid'' on the system. **''option:''** Extra options to be passed to the search engine. Currently: * ''option:titleonly'' would match keywords in the private message subject only, i.e. will not search the message content and replies. ===== Exclusions ===== Placing a minus sign in front of a keyword to exclude nodes that contain that keyword. For example * ''[[https://www.ozbargain.com.au/search/node/xiaomi%20-android|xiaomi -android]]'' searches all the pages containing "xiaomi" but does not contain "android" Some filter options can also take a minus sign for exclusions. For example * ''[[https://www.ozbargain.com.au/search/node/pixel%20phone%20-domain%3Aofficeworks.com.au|pixel phone -domain:officeworks.com.au]]'' searches all the pages containing "pixel phone" but exclude ones linked to Officeworks store.