neo4j/neo4j — pull request #1790 by apcj (2014-01-06 15:25:02+00:00)
Title: Defer unique constraint verification for better performance.

o Reading from index for before adding each new entry is expensive,
so delay verification until the end.
o Use IndexReader.terms() to iterate though all index entries in
sorted order and verify that total number of unique terms matches
expected number of entries.
o Group together property encoding logic into Enums.
o Store numbers as oridinary fields and make number encoding explicit.
o Use normal TermQuery instead of RangeQuery.