Skip to content
Permalink
Browse files

Update Find-Item.md

  • Loading branch information...
michaellwest committed Feb 1, 2018
1 parent e1986d0 commit 2ae822782749e25d02c5f4592442b9947cb36304
Showing with 15 additions and 2 deletions.
  1. +15 −2 Documentation/Markdown/appendix/commands/Find-Item.md
@@ -386,8 +386,21 @@ Find-Item `
-Criteria @{Filter = "Equals"; Field = "_templatename"; Value = "Template Field"},
@{Filter = "Equals"; Field = "_language"; Value = "en"}
```
```
### EXAMPLE 5
Find the first 10 items in the master database Media Library with a non-empty "Alt" value.
```powershell
$root = Get-Item -Path "master:{3D6658D8-A0BF-4E75-B3E2-D050FABCF4E1}"
$criteria = @(
@{ Filter = "DescendantOf"; Value = $root.ID }
@{ Filter="Equals"; Value=""; Field="Alt"; Invert=$true }
)
Find-Item -Index sitecore_master_index -Criteria $criteria -First 10
```
## Related Topics

0 comments on commit 2ae8227

Please sign in to comment.
You can’t perform that action at this time.