Skip to content

Commit

Permalink
Make sure we search against full_identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed May 8, 2024
1 parent 4b948e1 commit c0c56ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/has_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def build_basic_search
@search = model.search(
params[:search] || '*',
includes: model.search_includes,
fields: ['identifier^20', 'title^10', 'description'], # Boost
fields: ['full_identifier^20', 'identifier^20', 'title^10', 'description'], # Boost
match: :word_start,

aggs: model.search_agg_fields,
Expand Down

0 comments on commit c0c56ad

Please sign in to comment.