Append * on simple query like "somephrase23" or "attribute23: somephrase23"
This commit is contained in:
parent
e81d871b01
commit
78a98ab51e
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ return search result
|
||||||
# add * on simple query like "somephrase23" or "attribute: somephrase23"
|
# add * on simple query like "somephrase23" or "attribute: somephrase23"
|
||||||
if query.present?
|
if query.present?
|
||||||
query.strip!
|
query.strip!
|
||||||
if query =~ /^([[:alpha:],0-9]+|[[:alpha:]]+\:\s+[[:alpha:],0-9]+)$/
|
if query =~ /^([[:alpha:],0-9]+|[[:alpha:],0-9]+\:\s+[[:alpha:],0-9]+)$/
|
||||||
query += '*'
|
query += '*'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue