Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1076)

Issue 4650073: WhooshIndex object creation at at start up, implemented some functions for working with indexes

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 4 months ago by Michael Mayorov
Modified:
13 years, 4 months ago
Visibility:
Public.

Patch Set 1 #

Total comments: 11

Patch Set 2 : Implemented history #

Total comments: 11

Patch Set 3 : Implement add_revision_whoosh method #

Total comments: 3

Patch Set 4 : Implemented remove revisions for whoosh index #

Patch Set 5 : Remove revision + all tags #

Patch Set 6 : Fixes in tagged_items() #

Total comments: 6

Patch Set 7 : Removing latest revisions, fixes from previous review #

Total comments: 4

Patch Set 8 : implemented show method for index script, fixes in indexing.py #

Total comments: 4

Patch Set 9 : Add new field for strict searching in names, fixes in tests, other minor fixes #

Total comments: 1

Patch Set 10 : Add docstrings #

Patch Set 11 : index_show now using print to stdout #

Total comments: 4

Patch Set 12 : Minor fixes from previous review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -64 lines) Patch
M MoinMoin/_tests/wikiconfig.py View 1 2 3 4 5 6 7 8 10 1 chunk +1 line, -0 lines 0 comments Download
M MoinMoin/script/maint/index.py View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +49 lines, -21 lines 0 comments Download
M MoinMoin/search/indexing.py View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +15 lines, -20 lines 0 comments Download
M MoinMoin/storage/backends/indexing.py View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +31 lines, -23 lines 0 comments Download

Messages

Total messages: 16
Reimar Bauer
questions and comments ;) http://codereview.appspot.com/4650073/diff/1/MoinMoin/app.py File MoinMoin/app.py (right): http://codereview.appspot.com/4650073/diff/1/MoinMoin/app.py#newcode175 MoinMoin/app.py:175: index_dir=app.cfg.index_dir I would prefer that ...
13 years, 4 months ago (2011-07-05 21:22:02 UTC) #1
Michael Mayorov
http://codereview.appspot.com/4650073/diff/1/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (left): http://codereview.appspot.com/4650073/diff/1/MoinMoin/storage/backends/indexing.py#oldcode294 MoinMoin/storage/backends/indexing.py:294: On 2011/07/05 21:22:03, Reimar Bauer wrote: > is it ...
13 years, 4 months ago (2011-07-06 02:41:35 UTC) #2
Reimar Bauer
None question, comment http://codereview.appspot.com/4650073/diff/1/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/1/MoinMoin/storage/backends/indexing.py#newcode355 MoinMoin/storage/backends/indexing.py:355: if found_doc_number >= 0: On 2011/07/06 ...
13 years, 4 months ago (2011-07-06 07:12:49 UTC) #3
ThomasWaldmann
http://codereview.appspot.com/4650073/diff/5001/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/5001/MoinMoin/storage/backends/indexing.py#newcode312 MoinMoin/storage/backends/indexing.py:312: def update_item_whoosh(self, meta): the other methods are using "metas" ...
13 years, 4 months ago (2011-07-06 08:02:04 UTC) #4
Michael Mayorov
http://codereview.appspot.com/4650073/diff/5001/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/5001/MoinMoin/storage/backends/indexing.py#newcode320 MoinMoin/storage/backends/indexing.py:320: async_writer.add_document(**meta) On 2011/07/06 08:02:04, ThomasWaldmann wrote: > if doc_number: ...
13 years, 4 months ago (2011-07-06 08:41:32 UTC) #5
ThomasWaldmann
http://codereview.appspot.com/4650073/diff/5001/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/5001/MoinMoin/storage/backends/indexing.py#newcode491 MoinMoin/storage/backends/indexing.py:491: yield (doc[MTIME], mountpoint + doc[NAME], doc["rev_no"]) On 2011/07/06 08:41:32, ...
13 years, 4 months ago (2011-07-06 08:54:09 UTC) #6
Reimar Bauer
some comments http://codereview.appspot.com/4650073/diff/11001/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/11001/MoinMoin/storage/backends/indexing.py#newcode77 MoinMoin/storage/backends/indexing.py:77: # an item was created with the ...
13 years, 4 months ago (2011-07-06 16:02:48 UTC) #7
Michael Mayorov
http://codereview.appspot.com/4650073/diff/11001/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/11001/MoinMoin/storage/backends/indexing.py#newcode528 MoinMoin/storage/backends/indexing.py:528: metadata = dict([(str(key), value) On 2011/07/06 16:02:48, Reimar Bauer ...
13 years, 4 months ago (2011-07-06 16:08:59 UTC) #8
ThomasWaldmann
http://codereview.appspot.com/4650073/diff/7004/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/7004/MoinMoin/storage/backends/indexing.py#newcode84 MoinMoin/storage/backends/indexing.py:84: logging.warning("HISTORY: name %s revno %s" % (name, rev_no)) if ...
13 years, 4 months ago (2011-07-06 21:25:04 UTC) #9
Michael Mayorov
http://codereview.appspot.com/4650073/diff/7004/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/7004/MoinMoin/storage/backends/indexing.py#newcode84 MoinMoin/storage/backends/indexing.py:84: logging.warning("HISTORY: name %s revno %s" % (name, rev_no)) On ...
13 years, 4 months ago (2011-07-07 05:12:47 UTC) #10
Michael Mayorov
http://codereview.appspot.com/4650073/diff/20001/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/20001/MoinMoin/storage/backends/indexing.py#newcode457 MoinMoin/storage/backends/indexing.py:457: Yield ready-to-use history raw data for this backend. Typo, ...
13 years, 4 months ago (2011-07-07 05:19:10 UTC) #11
ThomasWaldmann
http://codereview.appspot.com/4650073/diff/20001/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/20001/MoinMoin/storage/backends/indexing.py#newcode431 MoinMoin/storage/backends/indexing.py:431: with self.index_object.all_revisions_index.searcher() as all_revs_searcher: i don't think there is ...
13 years, 4 months ago (2011-07-07 08:38:16 UTC) #12
ThomasWaldmann
http://codereview.appspot.com/4650073/diff/14002/MoinMoin/script/maint/index.py File MoinMoin/script/maint/index.py (right): http://codereview.appspot.com/4650073/diff/14002/MoinMoin/script/maint/index.py#newcode158 MoinMoin/script/maint/index.py:158: how about just showing repr(rev)?
13 years, 4 months ago (2011-07-07 09:34:25 UTC) #13
Michael Mayorov
http://codereview.appspot.com/4650073/diff/14002/MoinMoin/script/maint/index.py File MoinMoin/script/maint/index.py (right): http://codereview.appspot.com/4650073/diff/14002/MoinMoin/script/maint/index.py#newcode158 MoinMoin/script/maint/index.py:158: On 2011/07/07 09:34:25, ThomasWaldmann wrote: > how about just ...
13 years, 4 months ago (2011-07-07 13:03:22 UTC) #14
ThomasWaldmann
http://codereview.appspot.com/4650073/diff/14002/MoinMoin/script/maint/index.py File MoinMoin/script/maint/index.py (right): http://codereview.appspot.com/4650073/diff/14002/MoinMoin/script/maint/index.py#newcode158 MoinMoin/script/maint/index.py:158: On 2011/07/07 13:03:22, Michael Mayorov wrote: > On 2011/07/07 ...
13 years, 4 months ago (2011-07-07 13:28:54 UTC) #15
ThomasWaldmann
13 years, 4 months ago (2011-07-07 21:09:28 UTC) #16
http://codereview.appspot.com/4650073/diff/14002/MoinMoin/storage/backends/in...
File MoinMoin/storage/backends/indexing.py (right):

http://codereview.appspot.com/4650073/diff/14002/MoinMoin/storage/backends/in...
MoinMoin/storage/backends/indexing.py:390: # but other revisions has old name.
why did you remove that comment?

http://codereview.appspot.com/4650073/diff/11003/MoinMoin/search/_tests/test_...
File MoinMoin/search/_tests/test_indexing.py (right):

http://codereview.appspot.com/4650073/diff/11003/MoinMoin/search/_tests/test_...
MoinMoin/search/_tests/test_indexing.py:120: index_object =
WhooshIndex(indexdir=self.index_dir)
be consistent

http://codereview.appspot.com/4650073/diff/3004/MoinMoin/_tests/wikiconfig.py
File MoinMoin/_tests/wikiconfig.py (right):

http://codereview.appspot.com/4650073/diff/3004/MoinMoin/_tests/wikiconfig.py...
MoinMoin/_tests/wikiconfig.py:22: index_dir = os.path.join(data_dir, "index")
i think you'll need a similar thing in the toplevel wikiconfig.py

http://codereview.appspot.com/4650073/diff/3004/MoinMoin/script/maint/index.py
File MoinMoin/script/maint/index.py (right):

http://codereview.appspot.com/4650073/diff/3004/MoinMoin/script/maint/index.p...
MoinMoin/script/maint/index.py:129: Clean given index in index_dir
either always use the short form (ok with me) or always use the long form
app.cfg.index_dir, be consistent.

http://codereview.appspot.com/4650073/diff/3004/MoinMoin/search/_tests/test_i...
File MoinMoin/search/_tests/test_indexing.py (right):

http://codereview.appspot.com/4650073/diff/3004/MoinMoin/search/_tests/test_i...
MoinMoin/search/_tests/test_indexing.py:120: index_object =
WhooshIndex(indexdir=self.index_dir)
be consistent.

http://codereview.appspot.com/4650073/diff/3004/MoinMoin/storage/backends/ind...
File MoinMoin/storage/backends/indexing.py (right):

http://codereview.appspot.com/4650073/diff/3004/MoinMoin/storage/backends/ind...
MoinMoin/storage/backends/indexing.py:391: logging.debug("For add: uuid %s revno
%s" % (metas[UUID], revno))
you mean "To add: ..." maybe?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b