custom feature searchable

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.
3/2/2012 8:04:38 AM
Gravatar
Total Posts 11

custom feature searchable

Hi,

        I Create a new indexbuilder provider then add  three function IndexItem(),  RebuildIndex(), ContentChangedHandler()which is given in the link 

http://www.mojoportal.com/makingcustomfeaturessearchable.aspx 

  then add the config file in the location     web/setup/indexbuilders

  and then add the code under the update method as  

if (indexBuilder != null)
{
this.ContentChanged += new ContentChangedEventHandler(indexBuilder.ContentChangedHandler);

}
After finising these all i tested whether our custom feature is add in the internal search,it shows no result

Where i make the mistake?

please help me.

 


 

3/2/2012 8:14:01 AM
Gravatar
Total Posts 18439

Re: custom feature searchable

you need to debug it and set break points in your code to see what is happening or if your indexbuilder is being called or is working as intended.

3/2/2012 11:34:22 PM
Gravatar
Total Posts 11

Re: custom feature searchable

Thanks for your reply joe

 

               I used debugger in my code it calls the config file and it also goes to my  indexbuilder functions ContentChangedHandler(),IndexItem, which is in mojoportal.business.webhelper.Where shall i call the RebuildIndex() function.

want i call RebuildIndex() function of my indexbuilder?

3/3/2012 6:56:06 AM
Gravatar
Total Posts 11

Re: custom feature searchable

Hi joe

 I add a new page In that page i add my feature  after that  I rebuild search index now when i an searching by giving  the feature title name that page name display on the search result,but when i am giving the feature content for search it shows noresults found,Actually my feature having  gridview Inside the gridview i add the  seriesname ,diameter columns under which i add the product seriesname and its diameter,but when i am giving the series name to search it shows NoResult found, i want the page to search and the page name display on the seach results.   

          For that what to do?

  Is there any way to index my feature before update or delete the content?Can You Explain me?

When i am update my content it goes to indexbuilder contentchangehandler method and then goes to indexitem.But before doing this the content is not searchble

Where i make the mistake?

3/3/2012 6:59:57 AM
Gravatar
Total Posts 18439

Re: custom feature searchable

I suggest step through the code of an existing feature where search is working, ie the forums or blog when editing a post, see how it indexes the content and then figure out what you are doing differently.

3/5/2012 8:40:45 AM
Gravatar
Total Posts 11

Re: custom feature searchable

Thanks for your reply joe,

 

     I go through the blog and fourm Editpost here you take all the database value through a storeprocedure using class dbblog but our feature is in different database in that database we have only the value which is bind in the gridview.Then our pageid,moduleid item id etc is in another database and also in different tables.  

                                                                                                                              

    Can i Use it as blog features?

 

Thanks,

Nisha

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