Copied to clipboard

Flag this post as spam?

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


  • jmiazga 6 posts 26 karma points
    Jun 04, 2014 @ 16:07
    jmiazga
    0

    Umbraco 7 ezSearch Index issues

    I have setup ezSearch and included the search fields as follows:

     

     @Umbraco.RenderMacro("ezSearch", new { SearchFields = "nodeName, metaTitle, metaDescription, metaKeywords, bodyText, description, memberName, professionalTitle, boardTitle, shortBio, name, eventName, tag, header, headerAlt, text, subHeader, details, personName, relatedInfo, rulesHeader, rulesText, teamsHeader, eventsHeader, info, teamNewsHeader, teamNewsText, content", PreviewFields = "nodeName, metaTitle, metaDescription, metaKeywords, bodyText, description, memberName, professionalTitle, boardTitle, shortBio, name, eventName, tag, header, headerAlt, text, subHeader, details, personName, relatedInfo, rulesHeader, rulesText, teamsHeader, eventsHeader, info, teamNewsHeader, teamNewsText, content" })

     

     

    When I use the search, only a small subset of data is returned. I have rebuilt my indexes and didnt see a difference. If I go to the Developer Tab -> Examine Management, under the Searchers section and test the InternalSearcher, InternalMemberSearcher, and ExternalSearcher using a Lucene Search, only the ExternalSearcher returns the results I expected.

     

    Are the indexes not building properly? Do I need to configure ezSearch to use a different index?

     

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Jun 04, 2014 @ 16:25
    Matt Brailsford
    0

    Hi,

    It sounds like the Index is working correctly. ezSearch works with the ExternalIndex / Searcher out of the box as this is the one intended for external searching. The others are umbraco internal indexes.

    I haven't got it setup to test, but I'm wondering if the parameter field casing is an issue? Did you free hand type that in? or use the insert macro dialog? I'm wondering if changing "SearchFields" to "searchFields" and "PreviewFields" to "previewFields" will do the trick.

    Give that a try and let me know how you get on.

    Matt

  • jmiazga 6 posts 26 karma points
    Jun 04, 2014 @ 16:43
    jmiazga
    0

    That didn't seem to make a difference. The model in ezSearch.cshtml seems to populate those 2 properties as expected.

Please Sign in or register to post replies

Write your reply to:

Draft