Module: Hyrax::V2GraphIndexer::NestedCollectionQueryServiceDecorator::ClassMethods
- Defined in:
- lib/hyrax/v2_graph_indexer.rb
Instance Method Summary collapse
Instance Method Details
#query_solr(collection:, access:, scope:, limit_to_id:, nest_direction:) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/hyrax/v2_graph_indexer.rb', line 33 def query_solr(collection:, access:, scope:, limit_to_id:, nest_direction:) query_builder = Hyrax::Dashboard::NestedCollectionsSearchBuilder.new( access: access, collection: collection, scope: scope, nesting_attributes: nil, nest_direction: nest_direction ) query_builder.where(id: limit_to_id.to_s) if limit_to_id query = clean_lucene_error(builder: query_builder) scope.repository.search(query) end |