cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Fulltext Index missing numeric properties

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?

1 ACCEPTED SOLUTION

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.

View solution in original post

1 REPLY 1

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.