Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • sabueXo 12 posts 32 karma points
    Jun 19, 2012 @ 14:12
    sabueXo
    0

    Search JSON. I can't do it work...

    Hi,

    I am trying to implement this functionality on my webpage. It is the first time that I create a webpage using Umbraco and I am still learning...

    Can anyone tell me what I am doing wrong?

    When the search is launched, the result always is empty... nothing returns...

    Here is mi code:

    ExamineIndex.config

        <!-- Index set for search box -->
        <IndexSet SetName="SearchBoxIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/SearchBox/">
            <IndexAttributeFields>
                <add Name="id" />
                <add Name="nodeName" />
                <add Name="updateDate" />
                <add Name="writerName" />
                <add Name="path" />
                <add Name="nodeTypeAlias" />
                <add Name="parentID" />
            </IndexAttributeFields>
            <IndexUserFields>
                <add Name="newsText" />
            </IndexUserFields>        
            <IncludeNodeTypes>
                <add Name="News" />
            </IncludeNodeTypes>
            <ExcludeNodeTypes />
        </IndexSet>
     ExamineSettings.config

    <add name="SearchBoxIndexer" type="UmbracoExamine.UmbracoMemberIndexer, UmbracoExamine"           
               supportUnpublished="false"
               supportProtected="false"
               interval="10"
               indexSet="SearchBoxIndexSet"
               analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"/>
    ddd
    <add name="SearchBoxSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
               analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" indexSet="SearchBoxIndexSet" />
Please Sign in or register to post replies

Write your reply to:

Draft