Five Number tools › KQL Search Query Builder
KQL Search Query Builder
Build a Microsoft Search query the visual way. Add keywords and managed-property filters, and the KQL updates as you type. Copy it straight into the SharePoint search box, Submit-PnPSearchQuery, or a Graph /search/query request.
Property filters
Try an example (click to load it)
KQL query
PnP PowerShell
Microsoft Graph search: POST /search/query
KQL quick reference
- Match operators:
property:valuematches content that contains the value,property=valueis an exact match, andproperty<>valueexcludes it. - Comparisons (dates and numbers):
>,>=,<,<=, for exampleLastModifiedTime>=2026-01-01orSize>=1048576. - Phrases and wildcards: wrap multi-word values in quotes (
Title:"annual report"); a trailing*is a prefix wildcard (Title:report*). - Combine:
AND,ORandNOTjoin conditions;NOTbefore a filter excludes it.
- Handy properties:
FileType(docx, xlsx, pptx, pdf, aspx),FileExtension,Author,Filename,Path,ContentClass,IsDocument,LastModifiedTime,Created,Size,SiteTitle,SPWebUrl. - Note: only queryable managed properties can be searched, and exact matches need the property marked queryable in the search schema. Verify names in your tenant before relying on a query.