Skip to content

Commit

Permalink
fix: use submit_search_query to call SOLR using POST not GET limited …
Browse files Browse the repository at this point in the history
…by URI length (#79)
  • Loading branch information
syphax-bouazzouni authored May 24, 2024
1 parent a2cdc3c commit c8b7ac3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ GEM
base64 (0.2.0)
bcrypt (3.1.20)
bcrypt_pbkdf (1.1.1)
bcrypt_pbkdf (1.1.1-x86_64-darwin)
bigdecimal (1.4.2)
builder (3.2.4)
capistrano (3.18.1)
Expand Down Expand Up @@ -197,6 +198,7 @@ GEM
google-cloud-env (2.1.1)
faraday (>= 1.0, < 3.a)
google-cloud-errors (1.4.0)
google-protobuf (3.25.3-x86_64-darwin)
google-protobuf (3.25.3-x86_64-linux)
googleapis-common-protos (1.5.0)
google-protobuf (~> 3.18)
Expand All @@ -211,6 +213,9 @@ GEM
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (>= 0.16, < 2.a)
grpc (1.64.0-x86_64-darwin)
google-protobuf (~> 3.25)
googleapis-common-protos-types (~> 1.0)
grpc (1.64.0-x86_64-linux)
google-protobuf (~> 3.25)
googleapis-common-protos-types (~> 1.0)
Expand Down Expand Up @@ -407,6 +412,7 @@ GEM
hashdiff (>= 0.4.0, < 2.0.0)

PLATFORMS
x86_64-darwin-23
x86_64-linux

DEPENDENCIES
Expand Down Expand Up @@ -464,4 +470,4 @@ DEPENDENCIES
webmock (~> 3.19.1)

BUNDLED WITH
2.3.23
2.4.22
2 changes: 1 addition & 1 deletion helpers/search_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def populate_classes_from_search(classes, ontology_acronyms=nil)
params["fq"] << " AND #{get_quoted_field_query_param(class_ids, "OR", "resource_id")}"
params["rows"] = 99999
# Replace fake query with wildcard
resp = LinkedData::Models::Class.search("*:*", params)
resp = LinkedData::Models::Class.submit_search_query("*:*", params)

classes_hash = {}
resp["response"]["docs"].each do |doc|
Expand Down
1 change: 1 addition & 0 deletions test/controllers/test_search_models_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def self.after_suite
LinkedData::Models::Agent.indexClear
LinkedData::Models::Class.indexClear
LinkedData::Models::OntologyProperty.indexClear
Goo.init_search_connection(:ontology_data)
end

def setup
Expand Down

0 comments on commit c8b7ac3

Please sign in to comment.