Skip to main content
7 events
when toggle format what by license comment
Nov 25, 2019 at 12:30 history edited Mark Lowe CC BY-SA 4.0
Replaced path filter
Nov 25, 2019 at 12:26 comment added Mark Lowe You seem to have a large amount of content items which is causing the exception with the startsWith filter. Try replacing the StartsWith filter line with this one: using @{Filter = "Equals"; Field = "_path"; Value = "0de95ae441ab4d019eb067441b7c2450" } where the guid needs to be the one of your site root item.
Nov 22, 2019 at 12:36 comment added SumitK Still this is not working. Giving me error as follows - "Find-Item : The Lucene query that was generated contains too many clauses. The maximum number of clauses that are allowed in a query is specified in the ‘Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config’ configuration file, in the ‘ContentSearch.LuceneQueryClauseCount’ setting. The value is currently set to ‘4096’. You should either make the search expression more specific or increase the value specified in the ‘ContentSearch.LuceneQueryClauseCount’ setting."
Nov 20, 2019 at 15:09 history edited Mark Lowe CC BY-SA 4.0
Changed answer to be pre SPE 6.0 compatible
Nov 20, 2019 at 15:06 comment added Mark Lowe GreaterThan is only available from SPE 6.0. It can also be done using InclusiveRange. I've updated the example.
Nov 20, 2019 at 14:03 comment added SumitK I tried to execute this script as suggested by you but I am getting a complete new error "Find-Item : Cannot bind parameter 'Criteria'. Cannot create object of type "Cognifide.PowerShell.Commandlets.Data.Search.SearchCriteria". Cannot convert value "GreaterThan" to type "Cognifide.PowerShell.Commandlets.Data.Search.FilterType". Error: "Unable to match the identifier name GreaterThan to a valid enumerator name." Any idea about this error. Could not find anything on google as well.
Nov 20, 2019 at 13:28 history answered Mark Lowe CC BY-SA 4.0