|
63 | 63 | Changes
|
64 | 64 | ~~~~~~~
|
65 | 65 |
|
| 66 | +- Support for Solr 5+ spelling suggestion format. [Chris Adams] |
| 67 | + |
| 68 | +- Set install requirements for Django versions. [Chris Adams] |
| 69 | + |
| 70 | + This will prevent accidentally breaking apps when Django 1.10 is |
| 71 | + released. |
| 72 | + |
| 73 | + Closes #1375 |
| 74 | + |
| 75 | +- Avoid double-query for queries matching no results. [Chris Adams] |
| 76 | + |
| 77 | +- Update supported/tested Django versions. [Chris Adams] |
| 78 | + |
| 79 | + * setup.py install_requires uses `>=1.8` to match our current test |
| 80 | + matrix |
| 81 | + * Travis allows failures for Django 1.10 so we can start tracking the |
| 82 | + upcoming release |
| 83 | + |
66 | 84 | - Make backend subclassing easier. [Chris Adams]
|
67 | 85 |
|
68 | 86 | This change allows the backend build_search_kwargs to
|
@@ -92,6 +110,51 @@ Changes
|
92 | 110 | Fix
|
93 | 111 | ~~~
|
94 | 112 |
|
| 113 | +- Tests will fall back to the Apache archive server. [Chris Adams] |
| 114 | + |
| 115 | + The Apache 4.10.4 release was quietly removed from the mirrors without a |
| 116 | + redirect. Until we have time to add newer Solr releases to the test |
| 117 | + suite we'll download from the archive and let the Travis build cache |
| 118 | + store it. |
| 119 | + |
| 120 | +- Whoosh backend support for RAM_STORE (closes #1386) [Martin Owens] |
| 121 | + |
| 122 | + Thanks to @doctormo for the patch |
| 123 | + |
| 124 | +- Unsafe update_worker multiprocessing sessions. [Chris Adams] |
| 125 | + |
| 126 | + The `update_index` management command does not handle the |
| 127 | + `multiprocessing` environment safely. On POSIX systems, |
| 128 | + `multiprocessing` uses `fork()` which means that when called in a |
| 129 | + context such as the test suite where the connection has already been |
| 130 | + used some backends like pysolr or ElasticSearch may have an option |
| 131 | + socket connected to the search server and that leaves a potential race |
| 132 | + condition where HTTP requests are interleaved, producing unexpected |
| 133 | + errors. |
| 134 | + |
| 135 | + This commit resets the backend connection inside the workers and has |
| 136 | + been stable across hundreds of runs, unlike the current situation where |
| 137 | + a single-digit number of runs would almost certainly have at least one |
| 138 | + failure. |
| 139 | + |
| 140 | + Other improvements: |
| 141 | + * Improved sanity checks for indexed documents in management |
| 142 | + command test suite. This wasn’t actually the cause of the |
| 143 | + problem above but since I wrote it while tracking down the |
| 144 | + real problem there’s no reason not to use it. |
| 145 | + * update_index now checks that each block dispatched was |
| 146 | + executed to catch any possible silent failures. |
| 147 | + |
| 148 | + Closes #1376 |
| 149 | + See #1001 |
| 150 | + |
| 151 | +- Tests support PyPy. [Chris Adams] |
| 152 | + |
| 153 | + PyPy has an optimization which causes it to call __len__ when running a |
| 154 | + list comprehension, which is the same thing Python does for |
| 155 | + `list(iterable)`. This commit simply changes the test code to always use |
| 156 | + `list` the PyPy behaviour matches CPython. |
| 157 | + |
95 | 158 | - Avoid an extra query on empty spelling suggestions. [Chris Adams]
|
96 | 159 |
|
97 | 160 | None was being used as a placeholder to test whether to run
|
|
0 commit comments