Support on-the-fly search indexing

Review Request #8601 - Created Jan. 5, 2017 and updated

Barret Rennie
Review Board
release-3.0.x
8600
reviewboard

On-the-fly search indexing is now supported for the Elasticsearch search
backend. When the option is enabled (from the search settings
administration form), the search index will be updated whenever review
requests are updated or deleted.

Ran unit tests.

  • 0
  • 12
  • 8
  • 20
Description From Last Updated
Review Bot
Barret Rennie
Review Bot
Christian Hammond
Barret Rennie
Review request changed

Change Summary:

  • Users are now indexed on the fly.
  • M2M fields for users are now indexed correctly.
  • The on the fly indexing option is now a generic search option and is off by default (because Whoosh is the default engine). A note is displayed below the option indicating it is not intended for large installs when using the Whoosh engine.

Diff:

Revision 3 (+355 -8)

Show changes

Review Bot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/admin/siteconfig.py
        reviewboard/admin/forms.py
        reviewboard/settings.py
        reviewboard/search/search_backends/registry.py
        reviewboard/search/tests.py
        reviewboard/reviews/models/review_request.py
        reviewboard/reviews/__init__.py
        reviewboard/search/signal_processor.py
        reviewboard/reviews/signals.py
        reviewboard/search/search_backends/elasticsearch.py
    
    Ignored Files:
        reviewboard/templates/admin/search_settings.html
        reviewboard/htdocs/media/cat.jpg
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/admin/siteconfig.py
        reviewboard/admin/forms.py
        reviewboard/settings.py
        reviewboard/search/search_backends/registry.py
        reviewboard/search/tests.py
        reviewboard/reviews/models/review_request.py
        reviewboard/reviews/__init__.py
        reviewboard/search/signal_processor.py
        reviewboard/reviews/signals.py
        reviewboard/search/search_backends/elasticsearch.py
    
    Ignored Files:
        reviewboard/templates/admin/search_settings.html
        reviewboard/htdocs/media/cat.jpg
    
    
  2. reviewboard/reviews/__init__.py (Diff revision 3)
     
     
    Col: 80
     E501 line too long (101 > 79 characters)
    
  3.  'elasticsearch' imported but unused
    
  4. reviewboard/settings.py (Diff revision 3)
     
     
     'django_reset' imported but unused
    
  5. reviewboard/settings.py (Diff revision 3)
     
     
     'from settings_local import *' used; unable to detect undefined names
    
Loading...