Giter Site home page Giter Site logo

Comments (6)

moshe avatar moshe commented on August 17, 2024

Hi @peio,
Did you add the --type flag?
from the error, I can see that you already have json type in your index so add --type=json (es7 requires only one type per index and the default if _doc)

from elasticsearch_loader.

peio avatar peio commented on August 17, 2024

Hi @moshe
Yes, the command I execute is:

elasticsearch_loader.exe --index bgnews --http-auth elastic:XXXXX --es-host https://XXXXX.us-east-1.aws.found.io:9243 --type json json 24chasa-2019-05-31.json --lines

I have also noted difference on the behavior of the command parsing library on Windows 10 (Powershell) and Fedora Linux. It is separate issue, related to the parsing of the wildcard (*.json) but might be indication where the cause is.

Thank you,
Peio

from elasticsearch_loader.

moshe avatar moshe commented on August 17, 2024

can you try to change the type to _doc?
elasticsearch_loader.exe --index bgnews --http-auth elastic:XXXXX --es-host https://XXXXX.us-east-1.aws.found.io:9243 --type _doc json 24chasa-2019-05-31.json --lines

from elasticsearch_loader.

peio avatar peio commented on August 17, 2024

Oh, --type _doc makes much more sense. It will take me a while to do a setup, because I am loading with a patched elasticsearch_loader on a prod setup, but will do a test setup as soon as I can.

from elasticsearch_loader.

peio avatar peio commented on August 17, 2024

Yep, confirmed. --type _doc is the right argument.
Only thing I can do is an documentation improvement.

Thank you!

from elasticsearch_loader.

moshe avatar moshe commented on August 17, 2024

Actually, it is documented in the --help message:

  --type TEXT                     Docs type. TYPES WILL BE DEPRECATED IN APIS
                                  IN ELASTICSEARCH 7, AND COMPLETELY REMOVED
                                  IN 8.  [required]

I will write a better help message + warning if using es7 with type argument.

Thanks @peio

from elasticsearch_loader.

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.