Hi,Michael Hung, I am new to neo4j, I saw the way you teach to import the cvs to neo4j last time, but when I wanted to review it today, I can't open the http://docs.neo4j.org/chunked/milestone/import-importing-data-from-a-single-csv-file.html, do you know what happened to it ? Thanks!
> > > > > > > On Wed, Apr 2, 2014 at 4:16 AM, jlegelis <[email protected] > <javascript:>>wrote: > >> From >> http://docs.neo4j.org/chunked/milestone/import-importing-data-from-a-single-csv-file.html >> : >> >> LOAD CSV FROM >> >> "file:/jenkins/workspace/neo4j-2.1-release-candidate/target/community/cypher/cypher-docs/target/docs/dev/ql/import/csv-files/roles.csv" >> AS csvLine >> MERGE (p:Person { name: csvLine[0]}) >> MERGE (m:Movie { title: csvLine[1]}) >> CREATE (p)-[:PLAYED { role: csvLine[2]}]->(m) >> >> >> All the attributes above are imported in to the node as strings, but I >> have a use case where the attribute is an integer (for comparison later to >> other integer values in Cypher). Is there an option or workaround to >> support conversion or casting to integers or floats as per the following >> example? >> >> MERGE (m:Movie { year: toFInt(csvLine[3]) }) >> >> MERGE (m:Movie { cost: toFloat(csvLine[4]) }) >> >> >> Thx ! >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Neo4j" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
