Try our conversational search powered by Generative AI!

Error when searching for data.

Vote:
 

Hi,


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 ?

 

    

#61357
Sep 18, 2012 2:12
Vote:
 

Hi,

You need to either

A) Use GetPagesResult() instead of GetResult()

or

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.

#61393
Edited, Sep 18, 2012 20:16
Vote:
 

Yup that fixed the issue.

Thanks

#61455
Sep 20, 2012 6:22
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.