search for "dog" crashes arclight

18 views
Skip to first unread message

Mike Taylor

unread,
Apr 5, 2024, 11:50:31 AMApr 5
to arclight-community
Hi, I have a test instance of arclight running at http://34.221.212.18:3000/. It seems to work as expected except when I search with the term "dog" (Weird, I know). From the home page a default or keyword search results in:

 Showing /home/ubuntu/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/arclight-1.1.2/app/views/catalog/_document_list.html.erb where line #7 raised:

id must be present for all documents and components

Extracted source (around line #23):

    def normalize
      raise Arclight::Exceptions::IDNotFound if id.blank?

      id.strip.tr('.', '-')
    end

Trace of template inclusion: #<ActionView::Template /home/ubuntu/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/blacklight-8.1.0/app/views/catalog/_search_results.html.erb locals=[]>, #<ActionView::Template /home/ubuntu/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/arclight-1.1.2/app/views/catalog/index.html.erb locals=[]>

Rails.root: /home/ubuntu/arclight

------------------------------------------------------------------------------------------------------------------
and then a Trace dump. Limiting the search to other fields works as expected. A search from within a Collection works fine as well. The repository is made up of 600+ xml ead 2002 files and was ingested with this command:
DIR=cline-sca SOLR_URL=http://127.0.0.1:8983/solr/blacklight-core REPOSITORY_ID=cline-sca bundle exec rake arclight:index_dir
Running the search from the solr admin web interface also works.

All other searches seem to work fine.
Can you suggest ways to troubleshoot and/or tell me what the error means ( Arclight::Exceptions::IDNotFound)
Ubuntu 22.04
Ruby 3.3.0
Rails 7.1.3.2
solr_wrapper solr 9.5
Thanks

Cory Lown

unread,
Apr 5, 2024, 1:27:30 PMApr 5
to Mike Taylor, arclight-community

Hi Mike,

 

My guess is that you have indexed an EAD file that is missing a value in the eadid element. You may be able to find it by querying Solr directly for a collection document without an eadid_ssi field. It’s also possible it’s an empty string.

 

Solr query for collection document missing ead_ssi field:

/select?fq=-ead_ssi%3A*&fq=level_ssim%3ACollection&indent=true&q.op=OR&q=*%3A*

 

Solr query for collection with a present but empty ead_ssi field:

/select?fq=ead_ssi%3A""&fq=level_ssim%3ACollection&indent=true&q.op=OR&q=*%3A*

 

I may be able to provide more synchronous help figuring this out via the Code4Lib #arclight Slack channel. Feel free to reach out there.

 

Cory

 

Cory Lown (he/him)

Digital Library Software Developer

Digital Library Systems and Services

Stanford Libraries

 

--
You received this message because you are subscribed to the Google Groups "arclight-community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arclight-commun...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/arclight-community/c56e2dd6-1271-4006-a4ce-397c5a1adf43n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages