My blog search results are not really working. Here's what I have setup:
1. The search page:
2. The "search-result.html" template referenced above is:
Code
- <perch:before>
- <div class="header-text">
- <perch:search id="total" /> Articles With "<perch:search id="search_key" />"
- </div>
- <div class="posts">
- <perch:if id="result_source" value="PerchBlog">
- <perch:layout path="blog_search_result" url="<perch:search id="result_url" />">
- <!-- <perch:showall> -->
- </perch:if>
- </div>
- <perch:if exists="paging">
- <div class="pagination"><perch:if exists="not_first_page">
- <a href="<perch:search id="prev_url" encode="false" />">Prev</a>
- </perch:if><span>Page <perch:search id="current_page" /> of <perch:search id="number_of_pages" /></span><perch:if exists="not_last_page">
- <a href="<perch:search id="next_url" encode="false" />">Next</a>
- </perch:if></div>
- </perch:if>
- </perch:after>
- <perch:noresults>
- <perch:if exists="search_key">
- <h1>Search results for “<perch:search id="search_key" />”</h1>
- <perch:else />
- <!-- <h1>Search</h1> -->
- </perch:if>
- <perch:if exists="search_key">
- <p>Sorry, there are no results for “<perch:search id="search_key" />”.</p>
- </perch:if>
- </perch:noresults>
3. The "blog_search_result.php" is:
PHP
With all that, the results looks as the should style-wise, but even when the results show a total number of 100 for example, I'm only seeing one single result. The pagination is working. But it's as if I added a 'count' filter, but I didn't. What's missing here?