hensei-api/app/blueprints/api/v1/search_blueprint.rb
Justin Edmund c0b2c9502f
Implement all-entity search to support tagging objects (#117)
* Add table for multisearch

* Add new route for searching all entities

* Make models multisearchable

We're going to start with Character, Summon, Weapon and Jobs

* Add method to Search controller

This will search with trigram first, and then if there aren't enough results, search with prefixed text search

* Add support for Japanese all-entity search
2023-07-05 21:19:48 -07:00

10 lines
224 B
Ruby

# frozen_string_literal: true
module Api
module V1
class SearchBlueprint < Blueprinter::Base
identifier :searchable_id
fields :searchable_type, :granblue_id, :name_en, :name_jp, :element
end
end
end