November Happy Hour will be moved to Thursday December 5th.

Integrating Wordpress blogs to Episerver

Vote:
 

Hello,

I am not sure if this is possible.

I have a EpiServer website which uses Epi Find for search feature. I have another word press site for blogs. Now there is an ask if we could integrate wordpress to Episerver such that we can have the blogs searchable from Epi Find.

Please let me know if any questions.

Thanks.

#216977
Feb 11, 2020 19:22
Vote:
 

Hi Dileep,

If your Wordpress blog has an RSS feed for blog posts, that would be ideal. You could then create a simple service that consumes the RSS feed and adds the items to your Episerver Find Index (see here: https://world.episerver.com/documentation/developer-guides/find/NET-Client-API/Indexing/ for examples of indexing objects). You could then create a scheduled job that runs periodically and uses your service to grab and index the Wordpress blog items.  Hope this helps!

-John

#216981
Feb 11, 2020 20:48
Dileep D - Feb 12, 2020 0:45
Thanks John, I will try to find out if the wordpress has RSS feed. So question though, the database for wordpress blog site is different than episervers. Do you have any real samples of such code.
Vote:
 

Dileep,

Are you familiar with search connectors?

A search connector lets Episerver Find search content outside your website, such as an external blog related to your website. The connector lets your site visitors find the blog posts among your site's search results. For more, see http://webhelp.episerver.com/latest/en/find/adding-connectors.htm.

#217012
Feb 12, 2020 16:52
Dileep D - Feb 12, 2020 17:57
Sorry am kind of new to Find. I will take a look at this. Appreciate your response.
Dileep D - Feb 12, 2020 23:59
This is a great information. However once i configure connector and run the job. How do I ensure that my search returns these results. What changes would I need in my search code. I would want to display these results under specific section of my search bucket.
Vote:
 

Dileep,
I don't know. Maybe a developer who has implemented this feature will respond.

#217039
Feb 13, 2020 14:30
Vote:
 

Dileep

The crawled documents via search connectors are stored in find as a specific type "WebContent", you can verify this from Episerver Find UI. Assume if you only crawl from one external site, then you can use Find Filtering API to load external blog posts only. 

One simple idea is to create a wordpress block and implement search rule in the blockcontroller. 

I hope above helps. 

#217051
Feb 14, 2020 5:18
Vote:
 

Dileep

Even if the crawler exist there can be a lot of work to make it filter the info and not indexing the header and stuff like that.

So I would every day go for a solution where you either have an RSS feed or you build a custom API in Wordpress that you can talk to and then create a scheduled task in your site that imports the info and put it in Find. This gives you a lot of control.

Good luck!

#217208
Feb 19, 2020 11:05
Vote:
 

From what I read from Find Connector documentation, it can support both Crawler and RSS/Atom type. I highly recommend you give a try with connector using RSS/Atom type, this might save you a few nights to crack API from scratch. 

Image: Connectors list

http://webhelp.episerver.com/latest/en/find/adding-connectors.htm

#217562
Feb 25, 2020 22:36
* 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.