From 963051e31166d5f7e607e175f62c1eee30c7e4dd Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Sat, 4 Oct 2014 11:46:06 +0200 Subject: [PATCH] minor copyediting --- docs/core_components/images/index.rst | 2 +- docs/core_components/search/index.rst | 2 +- docs/core_components/search/indexing.rst | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/core_components/images/index.rst b/docs/core_components/images/index.rst index 6e9fde238..d4f103bfb 100644 --- a/docs/core_components/images/index.rst +++ b/docs/core_components/images/index.rst @@ -111,7 +111,7 @@ The available resizing methods are: More control over the ``img`` tag --------------------------------- -Wagtail provides two shorcuts to give greater control over the ``img`` element: +Wagtail provides two shortcuts to give greater control over the ``img`` element: **1. Adding attributes to the {% image %} tag** diff --git a/docs/core_components/search/index.rst b/docs/core_components/search/index.rst index 65754d761..f8e889b5e 100644 --- a/docs/core_components/search/index.rst +++ b/docs/core_components/search/index.rst @@ -5,7 +5,7 @@ Search ====== -Wagtail provides a comprehensive and extensible search interface. In addition, it provides ways to promote search results through "Editor's Picks." Wagtail also collects simple statistics on queries made through the search interface. +Wagtail provides a comprehensive and extensible search interface. In addition, it provides ways to promote search results through "Editor's Picks". Wagtail also collects simple statistics on queries made through the search interface. .. toctree:: :maxdepth: 2 diff --git a/docs/core_components/search/indexing.rst b/docs/core_components/search/indexing.rst index eb48e6ccb..953bb85b3 100644 --- a/docs/core_components/search/indexing.rst +++ b/docs/core_components/search/indexing.rst @@ -8,7 +8,7 @@ Indexing To make a model searchable, you'll firstly need to add it into the search index. All pages, images and documents are indexed for you and you can start searching them right away. -If you have created some extra fields in a subclass of Page or Image, you may want to add these new fields to the search index too so a users search query will match on their content. See :ref:`wagtailsearch_indexing_fields` for info on how to do this. +If you have created some extra fields in a subclass of Page or Image, you may want to add these new fields to the search index too so that a user's search query will match on their content. See :ref:`wagtailsearch_indexing_fields` for info on how to do this. If you have a custom model that you would like to make searchable, see :ref:`wagtailsearch_indexing_models`. @@ -19,13 +19,13 @@ If you have a custom model that you would like to make searchable, see :ref:`wag Updating the index ================== -If the search index is kept separate from the database (when using Elasticsearch for example), you need to keep them both in sync. Theres two ways to do this: using the search signal handlers or calling the ``update_index`` command periodically. For best speed and reliability, it's best to use both if possible. +If the search index is kept separate from the database (when using Elasticsearch for example), you need to keep them both in sync. There are two ways to do this: using the search signal handlers, or calling the ``update_index`` command periodically. For best speed and reliability, it's best to use both if possible. Signal handlers --------------- -Wagtailsearch provides some signal handlers which bind to the save/delete signals of all indexed models. This would add and delete them from all backends you have registered in ``WAGTAILSEARCH_BACKENDS`` automatically. +Wagtailsearch provides some signal handlers which bind to the save/delete signals of all indexed models. This would automatically add and delete them from all backends you have registered in ``WAGTAILSEARCH_BACKENDS``. To register the signal handlers, add the following code somewhere it would be executed at startup. We reccommend adding this to your projects ``urls.py``: @@ -39,7 +39,7 @@ To register the signal handlers, add the following code somewhere it would be ex .. note:: - If your project was made with the ``wagtail start`` command, this should already be set up for you. + If your project was made with the ``wagtail start`` command, this will already be set up for you. The ``update_index`` command