Search function only lists 20 oldest forum posts

Bug #1446005 reported by wl-zocker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Widelands Website
Fix Released
Medium
kaputtnik

Bug Description

When I search for a not-so-uncommon term (e.g. "stdout"), only the twenty oldest forum posts (from 2009) are listed. It seems there is no way to search newer forum posts besides refining the search (which is sometimes hard).

It would be nice if all matches were visible in some way, either in a long list or on different pages.

Related branches

Revision history for this message
kaputtnik (franku) wrote :

I have created a fix for the result ordering.

On the long run we may want to have another search tool, because:

1. django_sphinx isn't maintained anymore, see https://github.com/dcramer/django-sphinx I had included this app to our own code for the upgrade to Django 1.8 but i am not sure if shipping it as own app is a good thing. E.g. it needs some modifications when upgrading to Django 1.10.

2. There are other search tools available which may be better for searching, see f.e..: https://djangopackages.org/grids/g/search/

I have tried to have look on some of them, but lost the overview... so many aspects and new things to consider.

When does the indexes be refreshed? I couldn't find a cron job for this.

Changed in widelands-website:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → kaputtnik (franku)
Revision history for this message
SirVer (sirver) wrote :

> but i am not sure if shipping it as own app is a good thing

If it is not maintained anymore, but we use it there is no other way. I have little experience with full text searchers - sphinx was the first thing I found back then. I remember that setting it up was not terribly hard, so switching to something else will probably not be tooo much work. If we find something that is more modern and in wider use, switching might be a good call.

> When does the indexes be refreshed? I couldn't find a cron job for this.

/etc/cron.hourly/search_update runs:
/usr/bin/indexer --config /etc/sphinxsearch/sphinx.conf --all --rotate

Revision history for this message
kaputtnik (franku) wrote :

I must be blind :-D

For replacing the search toll i create a new bug and mark this one as fixed.

Changed in widelands-website:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.