Copied to clipboard

Flag this post as spam?

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


  • Martin 44 posts 66 karma points
    Feb 07, 2011 @ 13:39
    Martin
    0

    Examine search configuration

    I have the following configuration:

    <add name="SiteSearchIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine"
    runAsync="true"
    supportUnpublished="true"
    supportProtected="true"
    interval="10"
    indexSet="SiteSearchIndexSet"
    analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"/>

        <IndexSet SetName="SiteSearchIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/SiteSearch/">
            <IndexAttributeFields>
                <add Name="id" />
                <add Name="nodeName" />
                <add Name="updateDate" />
            </IndexAttributeFields>
            <IndexUserFields>
                <add Name="content" />
                <add Name="metadescription" />
                <add Name="metakeywords" />
                <add Name="officeText" />
                <add Name="intro" />
            </IndexUserFields>
            <IncludeNodeTypes/>
            <ExcludeNodeTypes />
        </IndexSet>

    Here is the code I use for searching:

    var provider = (LuceneSearcher)ExamineManager.Instance.SearchProviderCollection["SiteSearchSearcher"];
    var results = provider.Search(query, true, "");

     

    If I search for ONE word, it works fine. If I search for two words, it never finds anything. What's wrong with my configuration?

  • Daniel Bardi 927 posts 2562 karma points
    Mar 25, 2011 @ 21:53
    Daniel Bardi
    0

    I think this is posted in the wrong area.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies