Searching Composer content

Vote:
 

Hi,

Does Episerver FIND index and search content that has been added to the webpage using Composer' WYSIWYG control (ExtensionContentAreaProperty). If so how does this work?

Thanks

 

#66498
Mar 01, 2013 15:01
Vote:
 

Looking at blogs it says to do something like this

PageIndexer.Instance.Conventions.ForInstancesOf<PageData>().ShouldIndex(page => !page.PageTypeName.StartsWith("[ExtensionSys]"));

  But my code doest allow .ForInstanceOf - I am using Episerver 6 R2 and have referenced

using EPiServer.Find.Cms;

    Any help?

#66499
Mar 01, 2013 15:38
Vote:
 

By default all pages are added to the index. Shouldn't matter if it's Composer that have added them.

#66510
Mar 04, 2013 8:10
Vote:
 

Your code should work for CMS 6 R2, try adding some more references:

using EPiServer.Find;
using EPiServer.Find.ClientConventions;
using EPiServer.Find.Cms;
using EPiServer.Find.Cms.Conventions;

// Example PageIndexer.Instance.Conventions.ForInstancesOf<PageData>().ShouldIndex(x => false);

    

#66511
Mar 04, 2013 8:15
Vote:
 

Hi, thanks. When I do a search now I get the search results but the title looks like CF__30_608_543_660 with a URL to the Composer Text control. How would I get the correct link to the actual page and the page title together with the Excerpt?

Cheers,

Jon

#66515
Mar 04, 2013 9:24
Vote:
 

I had also put this into my Global file, but I dont think this is working correctly, it only seems to index the last in the list - does each one over ride the other? Is there a way I can do a statement that includes all types?

        PageIndexer.Instance.Conventions.ForInstancesOf<PageData>().ShouldIndex(page => page.PageTypeName.StartsWith("[ExtensionSys] Text"));
           PageIndexer.Instance.Conventions.ForInstancesOf<PageData>().ShouldIndex(page => page.PageTypeName.StartsWith("News - Article"));
           PageIndexer.Instance.Conventions.ForInstancesOf<PageData>().ShouldIndex(page => page.PageTypeName.StartsWith("Content Page - 3 Columns"));

    

#66517
Mar 04, 2013 9:30
Vote:
 

See Joel's reply here: http://world.episerver.com/Modules/Forum/Pages/thread.aspx?id=64684

#66532
Mar 04, 2013 13:07
* 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.