How to make our custom feature searchable using lucene.net

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/22/2012 6:14:23 AM
Gravatar
Total Posts 11

How to make our custom feature searchable using lucene.net

Hai friends,

        I am making our custom feature searchable.For that I am creating a class in my solution and inherit with indexbuilder provider.

 #region IIndexableContent

When implement this this will created

public event ContentChangedEventHandler ContentChanged;

Then add this function .
protected void OnContentChanged(ContentChangedEventArgs e)
{
Debugger.Break();
if (ContentChanged != null)
{
ContentChanged(this, e);
}
}

#endregion

      

My business class is inherit with IIndexableContent.and create a folder in  in the path  web/setup/indexbuilderconfig   and put my xml file which is given below

 

<?xml version="1.0" encoding="utf-8" ?>
<IndexBuilderProviders>
<providers>

<add name="dcmotorindexprovider"
type="mojoPortal.Webs.dcmotorindexprovider, mojoPortal.Webs"
description="An IndexBuilder to index Html module content for Lucene.NET Search Engine" />

</providers>
</IndexBuilderProviders>

Is it enough to make a custom feature searchable. In our setup folder indexbuilderconfig is not available.This folder is inside the ProviderConfig.where shall i add my xml file .

In my  private IndexItem where shall i customize based on my business class.

 

 

Please any one help me????

 

Thanks in Advance,

Nisha

2/22/2012 10:39:53 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: How to make our custom feature searchable using lucene.net

This is documented in detail on the Making Custom Features Searchable page. It looks to me like you have the initial framework in place, but when content is created, updated, or deleted in your feature, you'll need to add some code that lets the search engine know there is new data to be indexed or removed.

Jamie

You must sign in to post in the forums. This thread is closed to new posts.