Bug 12478: add the lenient option to the query_string query
It doesn't really help. Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
5fbdfd48c0
commit
0d0c8cd2c8
|
|
@ -76,7 +76,6 @@ sub update_index {
|
|||
%$params,
|
||||
index_settings => $self->get_elasticsearch_settings(),
|
||||
index_mappings => $self->get_elasticsearch_mappings(),
|
||||
#trace_calls => 1,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
@ -119,7 +118,6 @@ sub delete_index {
|
|||
%$params,
|
||||
index_settings => $self->get_elasticsearch_settings(),
|
||||
index_mappings => $self->get_elasticsearch_mappings(),
|
||||
trace_calls => 1,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
@ -159,7 +157,6 @@ sub drop_index {
|
|||
%$params,
|
||||
index_settings => $self->get_elasticsearch_settings(),
|
||||
index_mappings => $self->get_elasticsearch_mappings(),
|
||||
#trace_calls => 1,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ provides something that can be given to elasticsearch to get answers.
|
|||
|
||||
use base qw(Class::Accessor);
|
||||
use Carp;
|
||||
use JSON;
|
||||
use List::MoreUtils qw/ each_array /;
|
||||
use Modern::Perl;
|
||||
use URI::Escape;
|
||||
|
|
@ -87,8 +88,9 @@ sub build_query {
|
|||
query_string => {
|
||||
query => $query,
|
||||
fuzziness => $fuzzy_enabled ? 'auto' : '0',
|
||||
default_operator => "AND",
|
||||
default_field => "_all",
|
||||
default_operator => 'AND',
|
||||
default_field => '_all',
|
||||
lenient => JSON::true,
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ sub search {
|
|||
}
|
||||
$self->store(
|
||||
Catmandu::Store::ElasticSearch->new(
|
||||
%$params, trace_calls => 1,
|
||||
%$params,
|
||||
)
|
||||
) unless $self->store;
|
||||
my $error;
|
||||
|
|
|
|||
Loading…
Reference in New Issue