<commit_before><?php

namespace ScoutElastic;

use ScoutElastic\Builders\SearchBuilder;

class SearchRule
{
    protected $builder;

    public function __construct(SearchBuilder $builder)
    {
        $this->builder = $builder;
    }

    public function isApplicable()
    {
        return true;
    }

    public function buildQueryPayload()
    {
        return [
            'must' => [
                'match' => [
                    '_all' => $this->builder->query
                ]
            ]
        ];
    }
}<commit_msg>Changed default search rule query.<commit_after><?php

namespace ScoutElastic;

use ScoutElastic\Builders\SearchBuilder;

class SearchRule
{
    protected $builder;

    public function __construct(SearchBuilder $builder)
    {
        $this->builder = $builder;
    }

    public function isApplicable()
    {
        return true;
    }

    public function buildQueryPayload()
    {
        return [
            'must' => [
                'query_string' => [
                    'query' => $this->builder->query
                ]
            ]
        ];
    }
}
{'fraction_non_alphanumeric': 0.1044504995458674, 'fraction_numerical': 0.0, 'mean_word_length': 1.6618357487922706, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6025634', 'n_tokens_mistral': 313, 'n_tokens_neox': 297, 'n_words': 60}