Using CompareCondition.NotEqual on a string property in a PropertyCriteria will result in a runtime error: "EPiServer.Core.EPiServerException: CompareCondition.NotEqual not supported in PropertySearch for strings."
.Equal runs fine of course, but .NotEqual is apparently reserved for comparing Ints only? Why is that? There are cases where I want to find pages where a property does not match a certain string (sort of like using the exclude operator '-' in a search engine)
FindPagesWithCriteria:
Using CompareCondition.NotEqual on a string property in a PropertyCriteria will result in a runtime error:
"EPiServer.Core.EPiServerException: CompareCondition.NotEqual not supported in PropertySearch for strings."
.Equal runs fine of course, but .NotEqual is apparently reserved for comparing Ints only? Why is that?
There are cases where I want to find pages where a property does not match a certain string (sort of like using the exclude operator '-' in a search engine)