Bing

Desktop Search Help

Advanced query reference

The following tables describe the syntax to use with Windows Desktop Search, as well as the properties that can be queried for each category of file displayed in the Desktop Search results window.

You can restrict your query to specific locations, specific file types or properties within those types, or specific "file kinds". File kinds refer to the categories displayed at the top of the Windows Desktop Search results window.

Desktop Search syntax (back to top)
Keyword/symbolExampleFunction
NOTsocial NOT securityFinds items containing social, but not security
-social -securityFinds items containing social, but not security
ORsocial OR securityFinds items containing socialor security
Quotation marks"social security"Finds items containing the exact phrase social security
Parentheses(social security)Finds items containing the socialand securityin any order
>date:>11/05/04

size:>5

Finds items with a date after 11/05/04

Finds items with a size greater than 5

<date:<11/05/04

size:<5

Finds items with a date before 11/05/04

Finds items with a size less than 5

Notes

  • Boolean operators must be in all uppercase letters.
  • You cannot use two keywords (for example, NOT and OR) in the same query.
Boolean properties (back to top)
PropertyExampleFunction
has:attachmentreport has:attachmentFinds items containing reportthat have attachments. Same as hasattachment:true
is:attachmentreport is:attachmentFinds items that have attachments that contain report. Same as isattachment:true
before:before:10/9/2004Finds items whose PrimaryDate field contains a date before 10/9/2004.
after:after:10/9/2004Finds items whose PrimaryDate field contains a date after 10/9/2004.
author:author:jakeFinds items with jakein the author property.
author:"name"author:"jake zukowski"Finds items with jake zukowski, in that order, in the author property.
author:(name)author:(jake zukowski)Finds items with jakeand zukowskiin the author property.
author:(name OR name)author:(jake OR bob)Finds items with jakeor bobin the author property.
author:name nameauthor:jake bobFinds items with jakein the author property and bobanywhere in the document.
from:namefrom:jakeFinds items with jakein either fromName OR fromAddress, since "from" is a property name for both fromName and fromAddress.
Dates and date ranges (back to top)

To specify a date range, type the property followed by two dates. Closed date ranges are indicated by typing ..For example, type from:david sent:11/05/04..11/05/05. Windows Desktop Search recognizes all Windows date formats, and also recognizes the following values:

  • Relative dates: For example, today, tomorrow, yesterday
  • Multi-word relative dates: For example, this week, next month, last week, past month, coming year.
  • Days:Sunday, Monday ... Saturday
  • Months:January, February ... December

Numbers and ranges (back to top)
SyntaxResults
size:>50 < 70Searches for files with a value in the Size property between 50 and 70.
date:>2/7/05 < 2/10/05Searches for a date in the Date property between the values 2/7/05 and 2/10/05.
Common file properties (back to top)

The syntax listed above can be used with any of the following file properties. For example, to find e-mail from "jake" that was sent in 2005, your query would look like this: kind:email author:jake after:12/31/2004.

To restrict by file type:Use:Example
All file typeseverythingkind:everything
Communicationscommunicationskind:communications
Contactscontactskind:contacts
E-mailemailkind:email
Instant Messenger conversationsimkind:im
Meetingsmeetingskind:meetings
Taskstaskskind:tasks
Notesnoteskind:notes
Documentsdocskind:docs
Text documentstextkind:text
Spreadsheetsspreadsheetskind:spreadsheets
Presentationspresentationskind:presentations
Musicmusickind:music
Picturespicskind:pics
Videosvideoskind:videos
Foldersfolderskind:folders
Folder namefoldername, infoldername:mydocs
Favoritesfavoriteskind:favorites
Programsprogramskind:programs
To restrict by file store (back to top)

If you use several e-mail accounts and you want to limit a query to either Microsoft Office Outlook or Outlook Express, you can use the store: indicator.

Store:Use:Example
Desktop desktopstore:desktop
Filesfilesstore:files
Outlookoutlookstore:outlook
Outlook Expressoestore:oe
Properties for file type: All (back to top)
Property:Use:Example
Titletitle, subject, abouttitle:sample
Statusstatusstatus:sample
Datedatedate:last week
Date modifieddatemodified, modifiedmodified:last week
Importanceimportance, priorityimportance:high
Sizesizesize:> 50
Deleteddeleted,isdeletedis:deleted
Is attachmentisattachmentis:attachment
Toto, tonameto:sample
Cccc, ccnamecc:sample
Companycompanycompany:sample
Locationlocationlocation:sample
Categorycategorycategory:sample
Keywordskeywordskeywords:sample
Albumalbumalbum:sample
File namefilename, filefilename:sample
Genregenregenre:sample
Authorauthor, byauthor:sample
Peoplepeople, withwith:(sonja mo david)
Folderfolder, under, pathfolder:sample
Extext, fileextext:sample
File namefilename, filefilename:sample
Common properties for file type: Attachment (back to top)
PropertyUse:Example
Peoplepeople, withpeople:sample
Properties for file type: Contact (back to top)
PropertyUse:Example
Job titlejobtitlejobtitle:sample
IM addressimaddressimaddress:sample
Assistant's phoneassistantsphoneassistantsphone:555-3323
Assistant nameassistantnameassistantname:Paul
Professionprofessionprofession:sample
Nicknamenicknamenickname:sample
SpousespousespoUse:ample
Business citybusinesscitybusinesscity:sample
Business postal codebusinesspostalcodebusinesspostalcode:sample
Business home pagebusinesshomepagebusinesshomepage:sample
Callback phone numbercallbackphonenumbercallbackphonenumber:sample
Car phonecarphonecarphone:sample
Childrenchildrenchildren:sample
First namefirstnamefirstname:sample
Last namelastnamelastname:sample
Home faxhomefaxhomefax:sample
Manager's namemanagersnamemanagersname:sample
Pagerpagerpager:sample
Business phonebusinessphonebusinessphone:sample
Home phonehomephonehomephone:sample
Mobile phonemobilephonemobilephone:sample
Officeofficeoffice:sample
Anniversaryanniversaryanniversary:yesterday
Birthdaybirthdayanniversary:tomorrow
Web pagewebpagewebpage:www.microsoft.com
Properties for file type: Communications (e-mail, appointments) (back to top)
PropertyUse:Example
Fromfrom, organizerfrom:sample
Receivedreceived, sentsent: yesterday
Subjectsubject, titlesubject:sample
Has attachmenthasattachment, hasattachmentshas:attachment
Attachmentsattachments, attachmentattachment:presentation.ppt
Bccbcc, bccnamebcc:sample
Bcc addressbccaddress, bcc bccaddress:sample
Cc addressccaddress, ccccaddress:sample
Follow-up flagfollowupflagfollowupflag:2
To address toaddress, totoaddress:sample
Due dateduedate, duedue:last week
Readread, isreadis:read
Is completediscompletedis:completed
Incompleteincomplete, isincompleteis:incomplete
Has flaghasflag, isflaggedhas:flag
Durationdurationduration:> 50
Properties for file type: Calendar (back to top)
PropertyUse:Example
Recurringrecurring, isrecurringis:recurring
Organizerorganizer, by, fromorganizer:sample
Properties for file type: Documents (back to top)
PropertyUse:Example
Commentscommentscomments:sample
Last saved bylastsavedbylastsavedby:Josh
Document managerdocumentmanagerdocumentmanager:sample
Revision numberrevisionnumberrevisionnumber:sample
Document formatdocumentformatdocumentformat:sample
Date last printeddatelastprinteddatelastprinted:last week
Properties for file type: Calendar (back to top)
PropertyUse:Example
Slide countslidecountslidecount:>20
Properties for file type: Music (back to top)
PropertyUse:Example
Lyricslyricslyrics:sample
Bit ratebitrate, ratebitrate:2
Artistartist, by, fromartist:sample
Yearyearyear:sample
Durationdurationduration:sample
Albumalbumalbum:"greatest hits"
Genregenregenre:rock
Lyricslyricslyrics:"happy birthday to you"
Tracktracktrack:12
Yearyearyear:> 1980 < 1990
Properties for file type: Picture (back to top)
PropertyUse:Example
Camera make cameramakecameramake:sample
Camera modelcameramodelcameramodel:sample
Dimensionsdimensionsdimensions:sample
Orientationorientationorientation:sample
Date takendatetakendatetaken:last week
Widthwidthwidth:sample
Heightheightheight:sample
Properties for file type: Video (back to top)
PropertyUse:Example
Namename, subjectname:sample
Extext, fileextext:sample