Bug 1807 - Commenting out flawed nested queries implementation, now users can search using ()
This commit is contained in:
parent
f25b5624a4
commit
111bdfddfa
1 changed files with 9 additions and 7 deletions
16
C4/Search.pm
16
C4/Search.pm
|
@ -852,13 +852,15 @@ sub buildQuery {
|
||||||
|
|
||||||
# pass nested queries directly
|
# pass nested queries directly
|
||||||
# FIXME: need better handling of some of these variables in this case
|
# FIXME: need better handling of some of these variables in this case
|
||||||
if ( $query =~ /(\(|\))/ ) {
|
# Nested queries aren't handled well and this implementation is flawed and causes users to be
|
||||||
return (
|
# unable to search for anything containing () commenting out, will be rewritten for 3.4.0
|
||||||
undef, $query, $simple_query, $query_cgi,
|
# if ( $query =~ /(\(|\))/ ) {
|
||||||
$query, $limit, $limit_cgi, $limit_desc,
|
# return (
|
||||||
$stopwords_removed, 'ccl'
|
# undef, $query, $simple_query, $query_cgi,
|
||||||
);
|
# $query, $limit, $limit_cgi, $limit_desc,
|
||||||
}
|
# $stopwords_removed, 'ccl'
|
||||||
|
# );
|
||||||
|
# }
|
||||||
|
|
||||||
# Form-based queries are non-nested and fixed depth, so we can easily modify the incoming
|
# Form-based queries are non-nested and fixed depth, so we can easily modify the incoming
|
||||||
# query operands and indexes and add stemming, truncation, field weighting, etc.
|
# query operands and indexes and add stemming, truncation, field weighting, etc.
|
||||||
|
|
Loading…
Reference in a new issue