Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    Aug 29, 2011 @ 10:02
    Anthony Candaele
    0

    Examine does not index content

    Hi, I have a problem with Examine, it doesn't index anything. If I look in an index file, the only thing that's there is:

    "ÿÿÿ÷  9µ;J                o&TB"

    I have configured my IndexSet like this:

    <!-- Custom index set for searching the menarg website -->

        <IndexSet SetName="MenargIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/MenargWebsite/">

            <IndexAttributeFields>

                <add Name="id" />

                <add Name="nodeName"/>            

                <add Name="nodeTypeAlias" />

                <add Name="parentID" />

            </IndexAttributeFields>

            <IndexUserFields>

                <add Name="bodyText" />

                <add Name="umbracoNaviHide" />

            </IndexUserFields>

            <IncludeNodeTypes/>

            <ExcludeNodeTypes />

        </IndexSet>

    Is there something wrong with this configuration?

    Thanks for your help,

    Anthony

  • Rich Green 2246 posts 4008 karma points
    Aug 29, 2011 @ 10:12
    Rich Green
    1

    Hey,

    Did you remember to add the provider into /config/ExamineSettings.config as well?

    Rich

  • Anthony Candaele 1197 posts 2049 karma points
    Aug 29, 2011 @ 10:35
    Anthony Candaele
    0

    Hi Rich,

    Yes, I added it:

    <add name="MenargSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"

                 analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" indexSet="MenargIndexSet" enableLeadingWildcards="true" />

     

  • Rich Green 2246 posts 4008 karma points
    Aug 29, 2011 @ 10:41
    Rich Green
    0

    Hmm, anything relevant in the umbraco log table?

    Rich 

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Aug 29, 2011 @ 10:45
    Dirk De Grave
    1

    And your indexer? Did you add that one as well?

     

    Cheers,

    /Dirk

  • Anthony Candaele 1197 posts 2049 karma points
    Aug 29, 2011 @ 10:47
    Anthony Candaele
    0

    Hi Dirk,

    Yes, I added the indexer as well:

    <add name="MenargIndexer" type="UmbracoExamine.UmbracoMemberIndexer, UmbracoExamine"

                 supportUnpublished="false"

                 supportProtected="true"

                 interval="10"

                 analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" />

  • Anthony Candaele 1197 posts 2049 karma points
    Aug 29, 2011 @ 10:51
    Anthony Candaele
    0

    @Rich, no I don't find anything relevant in the umbracoLog table

  • Rich Green 2246 posts 4008 karma points
    Aug 29, 2011 @ 10:52
    Rich Green
    0

    Even when you publish your nodes?

    Also did you restart the site after you made the config changes?

    Rich

  • Anthony Candaele 1197 posts 2049 karma points
    Aug 29, 2011 @ 11:03
    Anthony Candaele
    0

    @Rich I restarted the webserver. No change. If I look in the ExamineIndexes/MenargWebsite/Index folder the two files in there, segments.gen and segments_1, have a datestamp of 26/08/2011

    However I look in the ExamineIndexes/MenargWebsite folder, there are two files there, PS54C002.exa and PS54C002.lck that have a datestamp of today (29/08/2011)

  • Anthony Candaele 1197 posts 2049 karma points
    Aug 29, 2011 @ 14:01
    Anthony Candaele
    0

    phew, found it, I mistakenly copied the InternalMemberIndexer node:

    <add name="InternalMemberIndexer" type="UmbracoExamine.UmbracoMemberIndexer, UmbracoExamine"

               supportUnpublished="true"

               supportProtected="true"

               interval="10"

               analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"/>

    But this node has some different settings than the normal content indexers, more specifically the 'type' and 'analyzer' settings are different.

    I changed the value for the 'type' setting to: type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine"
    and the value for the 'analyzer' setting to: analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"

    and now it works :)

     

  • 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