2sxc Contetn not getting indexed by search

Oct 22, 2015 at 8:25 PM
Edited Oct 22, 2015 at 9:15 PM
I have an app called "News". It's a pretty standard app with a list page and a details page, pretty much identical to the simple app tutorial.

I need to index the different news items. I have added the Customize Search Override but it doesn't seem to be doing anything.

I have also re indexed the whole site.

Any ideas?

Is this also supposed to add the details page to the sitemap? I will need that too for SEO purposes.

Here is my code on the listing template:
@using ToSic.Eav.DataSources
@using ToSic.SexyContent.Search
@using DotNetNuke.Entities.Modules

@functions{

    // Prepare the data - get all categories through the pipeline

    public override void CustomizeData()
    {
        
    }

    /// <summary>

    /// Populate the search - ensure that each entity has an own url/page

    /// </summary>

    /// <param name="searchInfos"></param>

    /// <param name="moduleInfo"></param>

    /// <param name="startDate"></param>

    public override void CustomizeSearch(Dictionary<string, List<ISearchInfo>> searchInfos, ModuleInfo moduleInfo, DateTime startDate)
    {

        foreach (var si in searchInfos["Default"])
        {
            si.QueryString = "?Article=" + si.Entity.EntityId;
        }
    }
}



<h1>News</h1>
<div class="dotsLine hidden-xs"></div>
<ol class="breadcrumb hidden-xs">
    <li><a href="/">Home</a></li>
    <li><a href="#">News &amp; Events</a></li>
    <li>News</li>
</ol>

<div class="mainContentBody">
    @foreach(var n in AsDynamic(Data["Default"]))
    {
        <div class="newsItem sc-element">
            @n.Toolbar
            <div class="block blockPull blockPullRight">
                <img src="@n.Image" alt="" />
            </div>
            <h5>@n.PublishDate.ToString("dddd, MMMM d, yyyy")</h5>
            <h3><a href="@Dnn.Tab.FullUrl/Article/@n.EntityId">@n.Title</a></h3>
            <p>@n.Author</p>
            <div class="wysiwyg">
                @Html.Raw(n.Summary)
            </div>
            <a href="@Dnn.Tab.FullUrl/Article/@n.EntityId" class="btn">Read More <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span></a>
        </div>
    }
</div>