Skip to content

Commit

Permalink
update the class index_doc to not save arrays for no multi_language_f…
Browse files Browse the repository at this point in the history
…ields
  • Loading branch information
syphax-bouazzouni committed Dec 13, 2023
1 parent 1cfaf44 commit 1af13e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/ontoportal-lirmm/goo.git
revision: 74ea47defc7f6260b045a6c6997bbe6a59c7bf62
revision: 03da25b671d2ffa515b5dce51c6bd35980ae60c7
branch: master
specs:
goo (0.0.2)
Expand Down Expand Up @@ -32,7 +32,7 @@ GEM
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
addressable (2.8.5)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
ansi (1.5.0)
ast (2.4.2)
Expand Down Expand Up @@ -103,7 +103,7 @@ GEM
method_source (1.0.0)
mime-types (3.5.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2023.1003)
mime-types-data (3.2023.1205)
mini_mime (1.1.5)
minitest (4.7.5)
minitest-reporters (0.14.24)
Expand All @@ -114,7 +114,7 @@ GEM
multi_json (1.15.0)
multipart-post (2.3.0)
net-http-persistent (2.9.4)
net-imap (0.4.7)
net-imap (0.4.8)
date
net-protocol
net-pop (0.1.2)
Expand Down Expand Up @@ -149,7 +149,7 @@ GEM
addressable (>= 2.2)
redis (5.0.8)
redis-client (>= 0.17.0)
redis-client (0.18.0)
redis-client (0.19.0)
connection_pool
regexp_parser (2.8.3)
request_store (1.5.1)
Expand All @@ -162,7 +162,7 @@ GEM
rexml (3.2.6)
rsolr (1.1.2)
builder (>= 2.1.2)
rubocop (1.58.0)
rubocop (1.59.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
Expand Down
2 changes: 1 addition & 1 deletion lib/ontologies_linked_data/models/class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def index_doc(to_set=nil)
doc[att] = cur_val.values.flatten # index all values of each language
cur_val.each { |lang, values| doc["#{att}_#{lang}".to_sym] = values } # index values per language
else
cur_val = cur_val.values.flatten
doc[att] = cur_val.values.flatten.first
end
end

Expand Down

0 comments on commit 1af13e4

Please sign in to comment.