|
|
|
|
@ -3,14 +3,5 @@ class DoctrineJurisprudence < ApplicationRecord
|
|
|
|
|
|
|
|
|
|
belongs_to :doctrine, optional: false |
|
|
|
|
belongs_to :jurisprudence, class_name: "Cdao::Jurisprudence", optional: false |
|
|
|
|
|
|
|
|
|
searchable do |
|
|
|
|
integer :doctrine_id |
|
|
|
|
integer :jurisprudence_id |
|
|
|
|
|
|
|
|
|
join(:search_doc_date, :target => Cdao::Jurisprudence, :type => :date, :join => { :from => :id, :to => :jurisprudence_id }) |
|
|
|
|
join(:search_year, :target => Cdao::Jurisprudence, :type => :integer, :join => { :from => :id, :to => :jurisprudence_id }) |
|
|
|
|
join(:reference_number, :target => Cdao::Jurisprudence, :type => :string, :join => { :from => :id, :to => :jurisprudence_id }) |
|
|
|
|
join(:subject_ids, :target => Doctrine, :type => :integer, :multiple => true, :join => { :from => :id, :to => :doctrine_id }) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
end |
|
|
|
|
|