View | Details | Raw Unified | Return to bug 19559
Collapse All | Expand All

(-)a/t/db_dependent/Koha_SearchEngine_Elasticsearch_Search.t (-2 / +15 lines)
Lines 81-87 subtest 'json2marc' => sub { Link Here
81
};
81
};
82
82
83
subtest 'build_query tests' => sub {
83
subtest 'build_query tests' => sub {
84
    plan tests => 18;
84
    plan tests => 20;
85
85
86
    t::lib::Mocks::mock_preference('DisplayLibraryFacets','both');
86
    t::lib::Mocks::mock_preference('DisplayLibraryFacets','both');
87
    my $query = $builder->build_query();
87
    my $query = $builder->build_query();
Lines 172-177 subtest 'build_query tests' => sub { Link Here
172
        "query of specific field is truncated"
172
        "query of specific field is truncated"
173
    );
173
    );
174
174
175
    ( undef, $query ) = $builder->build_query_compat( undef, ['Local-number:"123456"'] );
176
    is(
177
        $query->{query}{query_string}{query},
178
        '(Local-number:"123456")',
179
        "query of specific field including hyphen and quoted is not truncated"
180
    );
181
182
    ( undef, $query ) = $builder->build_query_compat( undef, ['Local-number:123456'] );
183
    is(
184
        $query->{query}{query_string}{query},
185
        '(Local-number:123456*)',
186
        "query of specific field including hyphen and not quoted is truncated"
187
    );
188
175
    ( undef, $query ) = $builder->build_query_compat( undef, ['title:"donald duck"'] );
189
    ( undef, $query ) = $builder->build_query_compat( undef, ['title:"donald duck"'] );
176
    is(
190
    is(
177
        $query->{query}{query_string}{query},
191
        $query->{query}{query_string}{query},
178
- 

Return to bug 19559