indexing - neo4j.rb: How can I implement text searches using neo4j.rb? -



indexing - neo4j.rb: How can I implement text searches using neo4j.rb? -

i using neo4j.rb orm rails app, talking simple neo4j schema. have bunch of person nodes , each node has 2 fields name , bio.

my goal able (a) search people using fuzzy name search case insensitive; (b) able total text search of bio.

i confused how indexing/searching works in neo4j. not sure understand difference between 'schema' , 'legacy' indexing, or how lucene fits of this. importantly, not understand features neo4j.rb supports.

thanks in advance.

i'm 1 of maintainers of neo4jrb project. indexing pretty confusing can break downwards pretty you.

the gem doesn't deal legacy indexing @ all. "legacy" designation suggests it's not going around forever , coupled fact it's bit clunky utilize led decide not implement it. in gem uses labels , property indexes, lucene exact indexes under hood.

when comes search, if want case insensitive and/or full-text search, can in cypher , gem it's going work outside of indexes , may sluggish. depends on data. this shows how regex cypher. in gem, can this:

user.where(name: /?ob/) # or user.as(:u).where("u.name =~ '?ob`")

my personal suggestion utilize searchkick gem provide these features. uses elasticsearch, uses lucene, neo4j using anyway, you'll more command , same performance legacy indexing. downside have 1 more moving part of setup, think it's worth it.

hope clears up. i'm going add together area wiki since it's pretty mutual question. post here, open issue on github, or shoot me email if want talk more it.

edit: added this documentation.

indexing lucene neo4j full-text-search neo4j.rb

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -