We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you recall, search engines such as Solr and Azure support both Where and Filter conditions. This request is to add support for Filter.
Where
Filter
Filter.
Would like to be able to filter like the following:
$props = @{ Index = "sitecore_master_index" Where = 'Paths.Contains(@0)' WhereValues = [ID]::Parse("{0DE95AE4-41AB-4D01-9EB0-67441B7C2450}") Filter = 'Language = @0' FilterValues = "en-CA" } Find-Item @props
The text was updated successfully, but these errors were encountered:
Here is an example with Predicate. Predicate is now an alias for WherePredicate.
$criteriaLanaguage = @{Filter = "Equals"; Field = "_language"; Value = "en-CA"; } $predicateLanguage = New-SearchPredicate -Operation And -Criteria $criteriaLanaguage $criteriaPath = @{Filter = "Contains"; Field = "_path"; Value = [ID]::Parse("{FB05A392-1CC9-437D-A359-B807048060CF}"); Boost=25; } $predicatePath = New-SearchPredicate -Operation And -Criteria $criteriaPath $props = @{ Index = "sitecore_master_index" WherePredicate = $predicatePath FilterPredicate = $predicateLanguage } Find-Item @props
Sorry, something went wrong.
Doesn't seem practical to support this for ScopeQuery.
#1176 : Add support for Filter.
6088f98
#1176 : Renamed to better distinguish from Extension methods.
6c9944e
michaellwest
No branches or pull requests
If you recall, search engines such as Solr and Azure support both
Where
andFilter
conditions. This request is to add support forFilter.
Would like to be able to filter like the following:
The text was updated successfully, but these errors were encountered: