Copied to clipboard

Flag this post as spam?

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


  • David Amri 195 posts 700 karma points
    Nov 09, 2018 @ 10:02
    David Amri
    0

    MultiIndexSearcher issues

    Hi,

    I'm trying to implement a multi index searcher combining content and pdf searches.

    The two individual searchers are working and are giving me results in Developers > Examine Management > Searchers.

    But the combined MultiSearcher are not giving me any results. Also when looking in the Provider properties the EnableLeadingWildcards are set to false but clearly I have declared enableLeadingWildcards="true" to the MultiSearcher in ExamineSettings.config?

    I get a console error thta looks like this:

    http://localhost:50358/umbraco/BackOffice/Api/ExamineManagementApi/GetSearchResults?searcherName=KundUnikumMultiSearcher&query=forsta&queryType=text 400 (Wrong Searcher Type)
    

    ExamineIndex.config

    <IndexSet SetName="PDFIndexSet" 
              IndexPath="~/App_Data/TEMP/ExamineIndexes/{machinename}/PDFs" 
              IndexParentId="2676"/>
    
    <IndexSet SetName="KundUnikumIndexSet" 
              IndexPath="~/App_Data/TEMP/ExamineIndexes/{machinename}/KundUnikumSearch" 
              IndexParentId="2641">
        <IndexAttributeFields>
        </IndexAttributeFields>
        <IndexUserFields>
            <add Name="pageTitleSearch" EnableSorting="true"/>
            <add Name="aTextSearch" EnableSorting="true"/>
            <add Name="bTextSearch" EnableSorting="true"/>
            <add Name="cTextSearch" EnableSorting="true"/>
            <add Name="dTextSearch" EnableSorting="true"/>
            <add Name="eTextSearch" EnableSorting="true"/>
            <add Name="metaKeywords" EnableSorting="true"/>
            <add Name="metaDescription" EnableSorting="true"/>
            <add Name="areaOfInterest" EnableSorting="true"/>
            <add Name="docFilter" EnableSorting="true"/>
        </IndexUserFields>
        <IncludeNodeTypes>
        </IncludeNodeTypes>
        <ExcludeNodeTypes>
        </ExcludeNodeTypes>
    </IndexSet>
    

    ExamineSettings.config

    ExamineIndexProviders:

    <add name="PDFIndexer" 
             type="UmbracoExamine.PDF.PDFIndexer, UmbracoExamine.PDF" 
             extensions=".pdf" 
             umbracoFileProperty="umbracoFile"/>
    
    <add name="KundUnikumIndexer" 
             type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine" 
             indexSet="KundUnikumIndexSet"/>
    

    ExamineSearchProviders:

    <add name="PDFSearcher" 
             type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"/>
    
    <add name="KundUnikumSearcher" 
             type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine" 
             indexSet="KundUnikumIndexSet"/>
    
    <add name="KundUnikumMultiSearcher" 
             type="Examine.LuceneEngine.Providers.MultiIndexSearcher,Examine" 
             analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer,Lucene.Net" 
             indexSets="KundUnikumIndexSet,PDFIndexSet" 
             enableLeadingWildcards="true"/>
    

    Any ideas what's going wrong?

    Best regards /David

  • 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