want i add the query string

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 8:39:28 AM
Gravatar
Total Posts 11

want i add the query string

Hai i have one more doubt,  i want just search the content in a page just like html page

for that what should be give in indexItem.UseQueryStringParams

 

This is my indexitem function

 private static void IndexItem(DcContent content)
{
SiteSettings siteSettings
= CacheHelper.GetCurrentSiteSettings();

if (
(content == null)
|| (siteSettings == null)
)
{
return;
}

Guid htmlFeatureGuid = new Guid("f50c8735-f249-4f8c-be87-f389ec763956");
ModuleDefinition htmlFeature= new ModuleDefinition(htmlFeatureGuid);
Module module = new Module(content.ModuleId);

// get list of pages where this module is published
List<PageModule> pageModules
= PageModule.GetPageModulesByModule(content.ModuleId);

foreach (PageModule pageModule in pageModules)
{
PageSettings pageSettings
= new PageSettings(
siteSettings.SiteId,
pageModule.PageId);

IndexItem indexItem = new IndexItem();
indexItem.SiteId = siteSettings.SiteId;
indexItem.PageId = pageSettings.PageId;
indexItem.PageName = pageSettings.PageName;
indexItem.ViewRoles = pageSettings.AuthorizedRoles;
if (pageSettings.UseUrl)
{
indexItem.ViewPage = pageSettings.Url.Replace("http://localhost:803/dcmotortest.aspx", string.Empty);
indexItem.UseQueryStringParams = true;
}

indexItem.FeatureName = htmlFeature.FeatureName;
indexItem.FeatureResourceFile = htmlFeature.ResourceFile;

indexItem.ItemId = content.ItemId;
indexItem.ModuleId = content.ModuleId;
indexItem.ModuleTitle = module.ModuleTitle;
indexItem.Title = content.Title;
indexItem.Content = content.Body;
indexItem.PublishBeginDate = pageModule.PublishBeginDate;
indexItem.PublishEndDate = pageModule.PublishEndDate;

//IndexHelper.ReIndex(indexItem);
IndexHelper.RebuildIndex(indexItem);

}

//log.Debug("Indexed " + content.Title);
}

 

Please help me????

Thanks in Advance

Nisha

2/22/2012 8:50:25 AM
Gravatar
Total Posts 18439

Re: want i add the query string

Are you seeing any rows from your feature in the mp_IndexingQueue table?

Are you calling 

SiteUtils.QueueIndexing();

after the content is edited?

Have you set a breakpoint and stepped through your code to see if it is even being executed?

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