Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7623357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:41:12+00:00 2026-05-31T04:41:12+00:00

I am trying to upgrade the clojure-solr library to 1.3 (I did not write

  • 0

I am trying to upgrade the clojure-solr library to 1.3 (I did not write it originally, this is a fork) and I am encountering a problem when interacting to apache-solr-3.5.0. Here is the updated library on github:

https://github.com/antler/clojure-solr

It is a very simple one file project that basically just imports the barebones java classes. I am trying to connect to the solr example app that comes bundled with the solr 3.5.0 release (this is one mirror):

http://www.fightrice.com/mirrors/apache//lucene/solr/3.5.0/

In this release I cd into example/ and run

java -jar start.jar

This seems to work fine. Then, from the repl in the clojure-solr project (after running lein deps):

(use 'clojure-solr)

(with-connection (connect "http://127.0.0.1:8983/solr") 
  (add-document! {"id" "testdoc", "name" "A Test Document"})
  (add-documents! [{"id" "testdoc.2", "name" "Another test"}
                   {"id" "testdoc.3", "name" "a final test"}])
  (commit!)
  (search "test")
  (search "test" :rows 2))

This is from the example given in the library originally. The call to connect runs fine, but fails on add with the following exception:

IllegalArgumentException No matching field found: add 
  for class org.apache.solr.client.solrj.impl.CommonsHttpSolrServer

I checked in the solr docs and the add method is definitely there:

http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/impl/CommonsHttpSolrServer.html

What am I missing here? Thanks for any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:41:13+00:00Added an answer on May 31, 2026 at 4:41 am

    clojure-solr turns the vector of documents into an array in add-documents!. However there is no .add method of CommonsHttpSolrServer for an array.

    Changing clojure-solr to pass on a vector might fix the issue since a vector implements java.util.List – and thusly java.util.Collection. Not tested. Just a guess.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am encountering this problem when trying to upgrade a legacy project from Flex
I'm trying to upgrade to Node v0.6.17. I followed the instructions in this post:
Hi I'm trying to upgrade my ruby 1.9.2 to 1.9.3 using RVM. This is
I´m trying to upgrade trac! from 0.10.3 to 0.12. Need help, i basiclally did
I'm trying to upgrade jQuery from 1.4.1 to 1.7.1 and found a problem with
I am trying to upgrade Apache commons lang from 2.4 to 3.1 in my
I'm trying to upgrade my subversion server (I have it hosted with Dreamhost) This
I'm trying to upgrade my project and so I've come to transactions. This is
I'm trying to upgrade to JIRA 4.1.2. I did a back up on the
I trying to upgrade from OrbeonForms version 3.8 to 3.9. I'm using PriorityResourceManagerFactory as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.