Try our conversational search powered by Generative AI!

Fetch required fields

Vote:
 

Hi Team,

          In our indexing data have more than 50properties available, but all data are not necessary for the listing page(every field were used for filtering & search).

My question 

Is It Possible to get only required fields from find. Because it will reduce the data size and it may increase speed. 

#203545
Apr 26, 2019 13:51
Vote:
 

Projections https://world.episerver.com/documentation/developer-guides/find/NET-Client-API/searching/Projections/ only pull back from find the data you need. If you project the data in to an classes or an anonymous type this should solve it. Alternatively you can custom index models so Find only stores what you need. Both covered here https://world.episerver.com/blogs/scott-reed/dates/2019/3/episerver-find---performance-reloading-custom-data-and-getcontent-vs-getcontentresult/

#203550
Apr 26, 2019 14:59
* 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.