Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-01-2020 12:39 AM
Hi,
I have created a fulltext index like so:
CALL db.index.fulltext.createNodeIndex("PersonIndex",["Person"],["age"])
the "age" is a numeric property. query on this index not worked.
If we consider age as a string property, then range searching like "age:[20 TO 30]" does not give the correct answer.
What is the best solution for storing numeric properties?
Solved! Go to Solution.
03-01-2020 01:26 AM
By design fulltext indexes operate solely on string properties, see https://neo4j.com/docs/cypher-manual/current/administration/indexes-for-full-text-search/.
You could either use a schema index (via CREATE INDEX ...
) to index numeric values or convert the property values to strings and apply a full text index.
03-01-2020 01:26 AM
By design fulltext indexes operate solely on string properties, see https://neo4j.com/docs/cypher-manual/current/administration/indexes-for-full-text-search/.
You could either use a schema index (via CREATE INDEX ...
) to index numeric values or convert the property values to strings and apply a full text index.
All the sessions of the conference are now available online