World is now on Opti ID! Learn more
I am trying to execute this query:
x => x.SearchParent().Match(CurrentPage.SearchFolder)
But I am getting back a 400 from find with exception NumberFormatException.
Here us the defination for SearchParent()
public static string[] SearchParent(this UnifiedFile file)
Result in Find index:
"SearchParent": [ "/PageFiles/", "/PageFiles/112971/" ]
Also have this:
client.Conventions.ForInstancesOf().IncludeField(f => f.SearchParent());
Cannot see why a tring needs to be converted to a number, while matching a string...
Fixed it by renaming the method to SearchAncestor.
Works fine now, but would like to know why this happens.
I am trying to execute this query:
But I am getting back a 400 from find with exception NumberFormatException.
Here us the defination for SearchParent()
Result in Find index:
Also have this:
Cannot see why a tring needs to be converted to a number, while matching a string...