search: let wildcard searches match up to 100 tags.
Let searching for things like *_legwear match up to 100 tags. Previously the limit was 25.
This commit is contained in:
@@ -249,8 +249,8 @@ class Tag < ApplicationRecord
|
||||
name_matches(name).or(alias_matches(name))
|
||||
end
|
||||
|
||||
def wildcard_matches(tag, limit: 25)
|
||||
nonempty.name_matches(tag).order(post_count: :desc, name: :asc).limit(limit).pluck(:name)
|
||||
def wildcard_matches(tag)
|
||||
nonempty.name_matches(tag).order(post_count: :desc, name: :asc)
|
||||
end
|
||||
|
||||
def abbreviation_matches(abbrev)
|
||||
|
||||
Reference in New Issue
Block a user