Allow for age-based filtering when reindexing for search.

Review Request #5937 — Created June 5, 2014 and submitted

Information

Review Board
release-2.0.x
84abbaa...

Reviewers

This updates our SearchIndex to tell Haystack which field should be
considered to determine the age of a review request, in order to speed
up filtering.

Now, when running update_index with --age=<hours>, only review
requests that have been updated in <hours> will be updated or added to
the index.

Ran a full index, then updated some content and ran an index with --age=10.
Saw it just pull in the new updates instead of reindexing everything.

reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        reviewboard/reviews/search_indexes.py
      Ignored Files:
    
    
  2. 
      
reviewbot
  1. This is a review from Review Bot.
      Tool: Pyflakes
      Processed Files:
        reviewboard/reviews/search_indexes.py
      Ignored Files:
    
    
  2. 
      
BC
  1. rb-site doesn't currently understand --age, so it was necessary to use "-- --age=<hours>".

  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.0.x (a451ba0)
Loading...