Index blocks in ContentAreas as individual entitys in index.

Vote:
 

Hi, 

I use blocks as steps in a tutorial on a page. The steps reside in a contentarea and I want them to be indexed as individual index entries where SearchUrl is the page url + #step + placement order in the contentarea and SearchTitle is PageTitle + BlockTitle.

I have a solution where I find the page where the block is used when indexing the block and collect page url, placement order in contentarea and page title.

The problem with this solution is if a block is used on multiple pages. Then the block only gets indexed for one of those places.

Somebody got any idées?

#222979
May 15, 2020 6:23
Praful Jangid - May 28, 2020 13:26
Could you please share the code? It will be easy to identify the mistake or issue.
Thanks
Vote:
 

Hi Jesper,  Have you try this way?

client.Search<T>(Language.Swedish).For("SearchTitle").InField(x => x.PageTitle).InField(x => x.BlockTitle);
#223047
May 17, 2020 19:27
* 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.