Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-24-2019 09:48 AM
Hi everyone,
I have created a fulltext index like so:
CALL db.index.fulltext.createNodeIndex("ads",["Ad"],["age", "gender", "interests"])
and I can successfully search for "MALE" for example (value in "gender" which is a String)
BUT:
"age" is a numeric property and for example a range search like "age:[20 TO 30]" does not yield a result
ALSO:
"interests" is a string array property like ["travel", "fashion", "electronics"] and none of these searches yield a result:
"electronics"
"interests:electronics"
"elec*"
and so on....
Are numeric and array properties simply not indexed in the fulltext (Lucene) index or am I missing a config setting to enable this? THX!
07-24-2019 01:53 PM
Fulltext indexes in 3.5 do not operate on numeric properties nor on arrays. They are solely for string properties.
For age
I'd use a string with leading zeros. For interests
just concatenate its values.
07-25-2019 12:31 AM
Hi Stefan, thx for your answer!
Will have to work around....
All the sessions of the conference are now available online