How To Build A Search Page In Umbraco v9

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

ความคิดเห็น • 7

  • @AnilKumar-bg6fq
    @AnilKumar-bg6fq ปีที่แล้ว +1

    @Jon,
    We have implemented search using Examine in Umbraco V8. We have noticed that good amount of content updates is returning the error "Couldn't find the file" on the search page while trying to get the page results. I mean the Examine Indexes is getting corrupted. So, we have to remove all the Indexes from ExamineIndexes folder under APP_DATA --> TEMP, reset IIS and then manually build indexes on Umbraco. Any suggestions how can we stop the breaking of the search page?

    • @jondjones
      @jondjones  ปีที่แล้ว

      Probably no easy ones, maybe look at how often the indexes are being regenerated automatically. I'd look at any code that updates the indexes, also permissions on the folders as well

  • @dotswebdevloper9740
    @dotswebdevloper9740 8 หลายเดือนก่อน +1

    How create search in Umbraco version 13

    • @jondjones
      @jondjones  8 หลายเดือนก่อน

      The process is very similiar to this video

  • @rjpatinio7345
    @rjpatinio7345 2 ปีที่แล้ว

    How do you call the /views/Search/index.cshtml for the results in the content? I followed everthing but no result appeared(404 error) the return view("~/views/search/index.cshtml") in SearchController doesn't working.

    • @jondjones
      @jondjones  2 ปีที่แล้ว

      it sounds like you might nee to learn how to set-up docuemnt-types in the CMS and how they map at a controller level. You do not access the view in the URL using views/search/index.cshtml. You access it using the page alias set in the CMS

    • @rjpatinio7345
      @rjpatinio7345 2 ปีที่แล้ว

      ​@@jondjones I have the document-type alias "search" which I created. then in content page I create a Search - document type alias "search" with no template. Still didn't call the return view("~"Views/Search/index.cshtml", viewModel) in SearchController IActionResult Search (string searchTerm, int page = 1)
      so what happen is when I type the localhost:xxxxx/search/?searchTerm=xxxx nothing happens it just gives me page not found.
      I just wondering what did I missed? Do i need to add some code in my startup.cs?
      :(