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:
parent
565ad79887
commit
6cfc26f856
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue