Meep !
Another problem with the documentation.
I'm not sure to understand : http://components.neo4j.org/index-util/

    // re-create an already existing index
    Node indexNode = //... get the underlying index node
    // we can pass in null as name if the index already exist (name will then
    // be loaded from the underlying node)
    Index myIndex = new SingleValueIndex( null, indexNode, neo );

Does it delete the old index  and recreate from scratch ?

What if i want to add more node in this index when i relaunch the app
to add new data ?
eg :
Run 1 :
  "This is the first run"
  "initialize some stuff"
  "create index"
  loop
    "create node" + "index node" + "create relationship"
  endloop
  "clean shutdown"

Run 2:
  "not the first run"
  "get some info about last job"
  "get the index node"
  loop
    check in index if a node with the same "myProperty" already exist
      if exist : next loop;
      else : "create node" + "index node" + "create relationship"
  endloop
clean shutdown

How... and BTW : using null ad index name raise an IllegalArgumentException.

-- 
ker2x
_______________________________________________
Neo mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to