Apostrophe CMS Main Site Forum Home

Apostrophe-elasticsearch version 2.1.3: robust fix for bad arguments to search filter


For those who are not familiar, apostrophe-elasticsearch allows the use of Elasticsearch as a drop-in replacement for the built-in MongoDB search capabilities of ApostropheCMS. This often yields nice performance wins as well as better search result quality.

In the past it has been possible to cause a crash by passing undefined to the search filter when apostrophe-elasticsearch is installed. The fix in version 2.1.2 was insufficiently tested.

The new fix in version 2.1.3 comes with extensive unit and functional tests to be quite sure that arguments that don’t coerce to a nonempty string are rejected.

Thanks to GiuseppeCM for staying in the loop with us as we debugged this.