Coder Social home page Coder Social logo

export to CSV about elasticsearch-head HOT 4 CLOSED

mobz avatar mobz commented on June 22, 2024
export to CSV

from elasticsearch-head.

Comments (4)

mobz avatar mobz commented on June 22, 2024

I have implemented partial support for this from the structuredQuery screen - at the moment it just prints the csv onto the page - can you have a look at this and check the format of the csv - I have not really used csv for many years (or with excel ) - eg line separator (using \r\n ), cell separator (using \t ) should I be quoting strings? - what do I do if there is data containing tabs or \r\n??- how should a csv handle sparse data? not sure the best format for some of this.

from elasticsearch-head.

tomekkaczanowski avatar tomekkaczanowski commented on June 22, 2024

Hi, sorry for my late response!

I'm not an expert on CSV format myself, but I think you should simply use some CSV-parsing/writing library which will do the job for you. And IMHO, it does not really matter which "format" you use. I would be happy regardless of the format, if only I had data in CSV.

Cheers!

from elasticsearch-head.

mobz avatar mobz commented on June 22, 2024

csv is a tricky format if you want excel compatibility. Different versions of excel handle utf-8 and characters like " and \t differently - and depending on whether you import the csv into an existing document or just open the file.

The format I've chosen works pretty well unless you have non-latin characters. As a work around - you can open the file in Google docs or Numbers then export as an excel file, then it works pretty well

from elasticsearch-head.

mobz avatar mobz commented on June 22, 2024

Also note that you can download up to 25000 rows of data at once - the csv conversion is done in the browser, which pushes the browser pretty hard - don't try it in ie7.

from elasticsearch-head.

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.