Search indexing on custom modules

Posted by Community Admin on 03-Aug-2018 20:52

Search indexing on custom modules

All Replies

Posted by Community Admin on 06-Jul-2011 00:00

Hello,

We want to know is there a way to extend a custom module (like the on introduced in this webinar http://www.sitefinity.com/devnet/webinars/sitefinity-4-modules-made-simple-webinar.aspx) to implement the search indexes?
and if not, is there a workaround to add our custom searching results of the custom module along with the searching results returned in the search results of the search widget?

Thanks.

Posted by Community Admin on 07-Jul-2011 00:00

Hi Amrelsayed,

There is a way, but it is quite complex with the current implementation. This is why we are refracting the API of the pipes for Q2 release which will allow you to create custom pipes and index data from custom modules. I wold suggest that you should wait for Q2 release and get benefit of the new implementation.

Kind regards,
Ivan Dimitrov
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 07-Jul-2011 00:00

Hi Ivan,

We have a new project starting next week, can't you tell us a specific date for the release of Q2 please?

Thanks.

Posted by Community Admin on 07-Jul-2011 00:00

Hi Amrelsayed,

Here is a link to our roadmap where we announced the release date range.

Greetings,
Ivan Dimitrov
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 11-Jul-2011 00:00

Thanks Ivan,

We are short on time at the moment, would you provide us with a code sample for the workaround you mentioned in your reply, whether it has any limitations, and if it works properly regardless on the complexity factor.

Thanks.

Posted by Community Admin on 11-Jul-2011 00:00

Hello Amrelsayed,

I uploaded the sample here.

Kind regards,
Ivan Dimitrov
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 11-Jul-2011 00:00

Hi Evan,

Thanks for the prompt reply, we do have access to this sample but you mentioned in the same thread that it doesn't work.
 
"custom PopeSettings could not be used by the default providers, so you cannot have custom pipe settings. This is something that will be fixed for Q2".

Would you please clarify on whether the sample at least partially works, all we want to do is show the custom module data in the search results.

Amr

Posted by Community Admin on 11-Jul-2011 00:00

Hi Amrelsayed,

This pipe will not show on the settings screen, but the data from a custom module should be added. The sample is based on Products and if you use another module you need to change the sample. It should be working with SP1. I haven't tested with after that, because we started changing the API.

All the best,
Ivan Dimitrov
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 11-Jul-2011 00:00

Hi Ivan,

I integrated the CustomPipe sample with the products module that comes with the SDK then I added the pipe in global.asax under the Bootstrapper_Initialized event handler:

PipeFactory.RegisterPipeType("CustomPagePipe", typeof(ProductCatalogSample.CustomPipe.CustomInboundPipe));

 

PipeFactory.UnregisterPipe("PagePipe");

I am aware that the search scope won't show up when creating new indexes but I am having two main issues:
1. The products are still not showing in the search results.
2. Any attempt to Reindex an existing search index or create a new one results in an 'object reference not set to an instance of an object'.

I am using SF4.1 SP2.

Please advice.

Thanks


Posted by Community Admin on 13-Jul-2011 00:00

Hi Amrelsayed,

Currently your code removes the page pipe, but you should register the products pipe with its name. Most probably this is the reason why your product items are not indexes - the pipe is not registered through IoC
Are there any results returned inside ReadInboundData()?
Can you run the project in debug mode and see whether exactly object reference exception occurs?

Greetings,
Ivan Dimitrov
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 16-Aug-2011 00:00

Hello Ivan,

We upgraded our website to Q2, can you please provide more details on how can we index data from custom modules?

Thanks.

Posted by Community Admin on 18-Aug-2011 00:00

Bump on this...

Posted by Community Admin on 18-Aug-2011 00:00

Agreed with Jerami and AmrElsayed.

The products sample which is coming with SDK does not include any examples of integration with search engine.
I've read recent blog posts Registering custom pipes in Sitefinity and Publishing system brief walkthrough but it is still no clear for me how to integrate custom module and publishing system. It looks like the code snippets from these posts were taken from the source code of Sitefinity modules and they do not look like complete solution.

How about writing a how to instruction or step by step article?

Posted by Community Admin on 22-Aug-2011 00:00

Hello Anton Mernov,


       If your content type inherits the content you could go in   Addministration -> Settings -> Publishing -> Types and add your type there. After restart you will see it when you try to create / edit Search Index or feed.

Otherwise you have to implement a custom pipe. You can see how the TxtDocumentSearchInboundPipe in the sample project from  Publishing system brief walkthrough.  This is creating a pipe that will push the items into the search index when they are published. The only requirement is to be published by the fluent api. You have to implement PushData and ToPublishingPoint. Those methods will actually put the item into the publishing point. Note that you have to add some settings / mappings as it was explained in
Registering custom pipes in Sitefinity

All the best,
Teodor
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Posted by Community Admin on 21-Sep-2011 00:00

Hello,

I have a content type that inherits from the ContentModuleBase. I followed the steps of going to Administration -> Settings -> Publishing -> Types and added the type information. The content type saved and is now in the list with the other default types. When attempting to create a new search index, this new content type does not appear on the list.

Without knowing the in's and out's of all the interactions of Sitefinity's new 4.2 library, is there something that would need to be checked in my new content type which would inhibit it from appearing on the create search index page?

Thank you

Posted by Community Admin on 26-Sep-2011 00:00

Hello S,
   You can see in this blog post how can you add a custom Content type in the search index :

http://www.sitefinity.com/blogs/teodorgeorgiev/posts/11-09-07/adding_a_new_content_type_to_search.aspx

All the best,
Teodor
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed