1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 03:12:41 +01:00
phorge-phorge/src/applications/search/engine
Chad Horohoe 9374ace602 Ensure dateCreated property exists at index creation time
Summary:
Since the default query will sort on this when no query string is
attached we want to make sure the property at least exists.

Otherwise Elasticsearch yells at you: "No mapping found for [dateCreated]
in order to sort on" when you try to search for documents that haven't
been indexed yet.

Test Plan:
Searched for Mocks and Initiatives (no such documents exist in my index)
and got the error. After patching and reinitializing the index, the error
during querying went away.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D11056
2014-12-30 02:46:17 -08:00
..
PhabricatorApplicationSearchEngine.php Rename AphrontQueryException subclasses 2014-08-06 07:51:21 +10:00
PhabricatorJumpNavHandler.php Modernize documentation links 2014-03-17 15:01:31 -07:00
PhabricatorSearchEngine.php Properly create Elasticsearch index 2014-12-22 13:10:52 -08:00
PhabricatorSearchEngineElastic.php Ensure dateCreated property exists at index creation time 2014-12-30 02:46:17 -08:00
PhabricatorSearchEngineMySQL.php Properly create Elasticsearch index 2014-12-22 13:10:52 -08:00