Skip to content

Commit 08c2483

Browse files
committed
Dictionary can have custom defined stopWords filter
1 parent 95c294e commit 08c2483

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Mapping/Analyzer/AbstractDictionary.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@ abstract class AbstractDictionary
1212
*/
1313
protected $filter;
1414

15+
/**
16+
* @var \Spameri\ElasticQuery\Mapping\Filter\Stop
17+
*/
18+
protected $stopFilter;
19+
20+
21+
public function __construct(
22+
?\Spameri\ElasticQuery\Mapping\Filter\Stop $stopFilter = NULL
23+
)
24+
{
25+
$this->stopFilter = $stopFilter;
26+
}
27+
1528

1629
public function key() : string
1730
{

0 commit comments

Comments
 (0)