I am trying to do a search for a particula pagetype, but i am getting below error
I know there is a default property called Category in PageData class which uses PageCategory. But is there a way to ignore PageCategory from getting index.
Any ideas on this ?
You need to either
A) Use GetPagesResult() instead of GetResult()
B) Add a projection using the Select method
Some detail: The GetResult method, given no projection has been added, will fetch the serialized objects and try to deserialize them to their original type. That works well for simple types but, as you can see, not for PageData. GetPagesResult automatically adds a projection to only fetch the reference to each page and there after fetches the actual PageData objects from DataFactory making it usefull when querying for PageData objects. GetResult() + a projection is usefull when you want to fetch a limited number of values from each page and/or want to include highlighted excerpts from text properties.
Some more details can be found here.
Yup that fixed the issue.