This day I'm working on improving runtime indexation.
Fixed removing revision method(I forgot add removing for latest revision). Improvments from previous review
http://codereview.appspot.com/4650073/ Patchset 7
--
After some time I find out what history has issue with documents representation.
For searching item revisions I used item name, but if we have for e.g. "Item" and "Item1" then revisions of "Item1" will be appeared on "Item" history page.
It happends because item name analyzer parse "Item" as ["item"] and "Item1" as ["item", "1", "item1"]. So user will see all revisions of Item1 on Item history page.
The solution was add another field "item_exact=ID" to both schemas for strict searching.
Patchset 9 http://codereview.appspot.com/4650073/
--
Implemented "show" action for viewing revisions in given index.
For example:
moin index --for both --action show # show all information about revisions for all and latest indexes. moin index --for latest-revs --action show # show all information about revisions only for latest index
Patchset 9 http://codereview.appspot.com/4650073/
--
Added docstring for some functions in MoinMoin.script.maint.index
http://codereview.appspot.com/4650073/ Patchset 10
--
I commited my changes https://bitbucket.org/marchael/moin-2.0/changeset/dc04953b1ee8
Testing and working:
MoinMoin.storage.backend.indexing:
- Add revisions to whoosh indexes
- Remove revisions from whoosh indexes
- Show history for given item or whole indexes
- Show all items for given tag Show all tags
MoinMoin.scripts.maint.index:
- Add show function to print all reviosions to stdout for given index
Added new name_exact field to both schemas for strict search
Add index_dir to wikiconfig.py, minor fixes in tests