Giter VIP home page Giter VIP logo

Comments (4)

tjj5036 avatar tjj5036 commented on July 28, 2024

I just tested this and was able to insert 50,000 documents fine, so I'm guessing it's a problem with your solr config. Can you also test with this alternative solr doc manager and tell me if you get the same results? https://github.com/thomascirca/mongo-connector-solr-doc-manager/blob/master/solr_doc_manager.py

from mongo-connector.

cheebo avatar cheebo commented on July 28, 2024

I tested with alternative solr doc manager and it works (after modification).

I cloned alternative solr_doc_manager repository and installed it as shown in readme.

Modification:
in alternative solr_doc_manager.py I've changed this code

from mongo_connector.util import verify_url, retry_until_ok

to this

from util import verify_url, retry_until_ok

because of the error:

INFO - Beginning Mongo Connector
Traceback (most recent call last):
  File "mongo_connector.py", line 474, in <module>
    main()
  File "mongo_connector.py", line 459, in main
    auth_username=options.admin_name)
  File "mongo_connector.py", line 53, in __init__
    doc_manager = imp.load_source('DocManager', doc_manager)
  File "/opt/solr/dm/solr_doc_manager.py", line 32, in <module>
    from mongo_connector.util import verify_url, retry_until_ok
ImportError: No module named util

It imports too slow, but correct. I've changed auto_commit to false in upsert method of alternative solr_doc_manager, but when import finished, I had to do a manually request http://localhost:8983/solr/update/?commit=true. And over 52200 records were in solr. Cool!

from mongo-connector.

tjj5036 avatar tjj5036 commented on July 28, 2024

@buskar Yes sorry about that import- that was assuming a different version of mongo-connector (which should be released soon). glad it worked for you! Can I close the issue?

from mongo-connector.

cheebo avatar cheebo commented on July 28, 2024

Thank you for your help.

from mongo-connector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.