defaut search on kw,wrdl

without this, the search is done on kw, and truncation is not possible.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Paul POULAIN 2007-10-24 13:34:11 -05:00 committed by Joshua Ferraro
parent 565ad79887
commit 6cfc26f856
3 changed files with 11 additions and 3 deletions

View File

@ -608,7 +608,7 @@ sub buildQuery {
}
if ( $operands[$i] ) {
$operand =~ s/^(and |or |not )//i;
$operand =~ s/^(and |or |not )//i;
# STEMMING FIXME: need to refine the field weighting so stemmed operands don't disrupt the query ranking
if ($stemming) {

View File

@ -337,7 +337,11 @@ my @operators;
# indexes are query qualifiers, like 'title', 'author', etc. They
# can be simple or complex
my @indexes;
@indexes = split("\0",$params->{'idx'}) if $params->{'idx'};
if ($params->{'idx'}) {
@indexes = split("\0",$params->{'idx'});
} else {
$indexes[0] = 'kw,wrdl';
}
# an operand can be a single term, a phrase, or a complete ccl query
my @operands;

View File

@ -370,7 +370,11 @@ my @operators;
# indexes are query qualifiers, like 'title', 'author', etc. They
# can be simple or complex
my @indexes;
@indexes = split( "\0", $params->{'idx'} ) if $params->{'idx'};
if ($params->{'idx'}) {
@indexes = split("\0",$params->{'idx'});
} else {
$indexes[0] = 'kw,wrdl';
}
# an operand can be a single term, a phrase, or a complete ccl query
my @operands;