diff --git a/src/elasticsearch/Defaults.php b/src/elasticsearch/Defaults.php index 2f51d0d..134322b 100644 --- a/src/elasticsearch/Defaults.php +++ b/src/elasticsearch/Defaults.php @@ -17,7 +17,7 @@ class Defaults **/ static function fields() { - return array('post_content', 'post_title', 'post_type'); + return array('post_content', 'post_title', 'post_type', 'post_excerpt'); } /** diff --git a/tests/unit-tests/elasticsearch/ConfigTest.php b/tests/unit-tests/elasticsearch/ConfigTest.php index c1e076f..9141501 100644 --- a/tests/unit-tests/elasticsearch/ConfigTest.php +++ b/tests/unit-tests/elasticsearch/ConfigTest.php @@ -121,7 +121,7 @@ public function testRangesFieldFound() public function testFieldsDefault() { - $this->assertEquals(array('post_content', 'post_title', 'post_type', 'post_date'), Config::fields()); + $this->assertEquals(array('post_content', 'post_title', 'post_type', 'post_excerpt', 'post_date'), Config::fields()); } public function testFieldsDefined()