Copied to clipboard

Flag this post as spam?

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


  • Claushingebjerg 939 posts 2574 karma points
    May 06, 2021 @ 09:21
    Claushingebjerg
    0

    Getting fulltextsearch8 to work "the easy way"

    So i followed Sørens guide on https://github.com/skttl/umbraco-fulltextsearch8/blob/develop/docs/developers-guide.md

    As im not a .Net developer i opted for "the easy way"... Looks easy... Doesn't work for me though :( .

    I have a view set up as described

    enter image description here

    But im getting this error enter image description here

    Any help?

  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    May 06, 2021 @ 10:39
    Søren Kottal
    101

    Model.FullTextSearchResult should be searchResult in this. Sorry, the docs are not clear on that :)

  • Claushingebjerg 939 posts 2574 karma points
    May 06, 2021 @ 10:51
    Claushingebjerg
    0

    Thanks, that fixed the error, but dosen't return any results :-|. The "if" statement is triggered, but not the "foreach". Acutally the "if" is triggered no matter the string "searchResult"

    enter image description here

  • Claushingebjerg 939 posts 2574 karma points
    May 06, 2021 @ 10:51
    Claushingebjerg
    0

    Wuups sorry, it did, just needed a reindex

  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    May 06, 2021 @ 11:25
    Søren Kottal
    1

    searchResults also contains properties for TotalResults, TotalPages and CurrentPage, so you can use those to determine if there actually is any search results (and paging etc.)

  • Claushingebjerg 939 posts 2574 karma points
    May 06, 2021 @ 11:26
    Claushingebjerg
    0

    Thanks, i know. I just removed them from the example, to keep it simple :)

Please Sign in or register to post replies

Write your reply to:

Draft