Change /api/v1/peers/search to be case-insensitive when using Elasticsearch (#26268)
parent
266bbfc884
commit
32f9b3d3af
|
@ -27,7 +27,7 @@ class Api::V1::Peers::SearchController < Api::BaseController
|
|||
@domains = InstancesIndex.query(function_score: {
|
||||
query: {
|
||||
prefix: {
|
||||
domain: params[:q],
|
||||
domain: TagManager.instance.normalize_domain(params[:q].strip),
|
||||
},
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue