Description
If you using MoinMoin with the Xapian SearchEngine in full text mode with some regex parameters, the Xapian gets disabled and the standard moinsearch will be using.
A manual restart of the MoinMoin process or Server helps. For me it seems that also that the indexing will stop and you need to rebuild it manually (atleast if you want an actual index).
Steps to reproduce
I'm bad; but I did it on our MasterMoin:
Xapian Title Search (SearchBox)
Titel SearchXapian Fulltext Search (SearchBox)
Regex SearchMoinSearch (SearchBox) 'coz Xapian Search is deactivated
Title Search
with the timing/log displayed on your site you will see that _moinSearch is used and not the _xapianProcess
if you make some basic title-search regex like regex:test* everything works.... but if you switch to fulltextsearch the moin stops the xapian search.
Example
http://rock.heavy.ch (my personal Wiki)
* _moinSearch = 0.138s * base__init__ = 0.002s * getACL = 0.003s * getPageCount = 0.002s * getPageList = 0.137s * i18n_init = 0.000s * load_multi_cfg = 0.000s * run = 0.209s * total = 0.210s
Component selection
how MoinMoin access the Xapian Search (fulltextsearch; title search seems to be more stable)
Details
MoinMoin Version |
1.6.0 |
OS and Version |
Linux |
Python Version |
2.5 |
Server Setup |
Standalone Server |
Server Details |
Farmwiki with Xapian 1.0.4 and pyStemmer 1.0.1 |
Language you are using the wiki in (set in the browser/UserPreferences) |
de | en |
Workaround
not using xapian-search; only moinsearch
for me not a solution coz' xapian seems to me a lot faster and better- hope that nobody use some wrong regex
- restart moin process and rebuild index every day
1 --- Lib\site-packages\MoinMoin\search\Copy of builtin.py 2008-01-21 12:52:45.124286900 +0100 2 +++ Lib\site-packages\MoinMoin\search\builtin.py 2008-01-22 16:17:56.867838600 +0100 3 @@ -563,7 +563,8 @@ 4 clock.stop('_xapianSearch') 5 else: 6 # we didn't use xapian in this request 7 - self.request.cfg.xapian_search = 0 8 + if not index: 9 + self.request.cfg.xapian_search = 0 10 11 # some postprocessing by _moinSearch is required 12 return self._moinSearch(pages)
Discussion
At the moment I do not found any logs where explained to me, why the moinmoin stops using xapian search-engine...
Plan
- Priority:
Assigned to: ThomasWaldmann
Status: fixed in 1.6 branch (thanks for the patch!) by http://hg.moinmo.in/moin/1.6/rev/91f5bfc55694