What's the best strategy to do fulltext search on every node and relationship?

34 views
Skip to first unread message

Noppanit

unread,
Mar 8, 2012, 7:13:50 PM3/8/12
to ne...@googlegroups.com
As the subject says, what's the best way to index every node and relationship to do fulltext search. I thought of this because, neo4j uses lucene. 

Peter Neubauer

unread,
Mar 9, 2012, 3:40:11 AM3/9/12
to ne...@googlegroups.com
Do you need everything searchable with AND and OR or separate fulltext
indexes for every attribute?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j 1.6 released                 - dzone.com/6S4K
The Neo4j Heroku Challenge   - http://neo4j-challenge.herokuapp.com/

Noppanit

unread,
Mar 9, 2012, 7:17:47 AM3/9/12
to ne...@googlegroups.com
Thanks for your reply. I need everyting to be searchable including relationship by AND or OR. That'd be really nice.

Michael Hunger

unread,
Mar 9, 2012, 7:23:48 AM3/9/12
to ne...@googlegroups.com
Just curious, what is your use-case for that?

Noppanit

unread,
Mar 9, 2012, 12:27:18 PM3/9/12
to ne...@googlegroups.com
Hi,

I was just wondering if i could do that. So, i have nodes and relationships, but i want to implement search functionality like google search. For examples i have nodes that have attribute "title" and each node connected by "owner" relationship and "tag" which connect to node tags of that content which might be tag "owner" When i search for ""owner" i should search through the attribute "title" and for tags as well. I believe i could do that in cypher, but i thought of that if i could use lucene to index relationship name, tags and every attribute for me then i could get relevent nodes back.

Not sure if i'm just talking gibberish.

This is just my curiosity. :)

Mattias Persson

unread,
Mar 14, 2012, 8:48:22 AM3/14/12
to ne...@googlegroups.com
It sounds like you're only using the index then and not anything in the graph model really. What I'm thinking about is a query parser which translates such a query into a traversal... which sounds a lot like Cypher :)

2012/3/9 Noppanit <noppa...@gmail.com>



--
Mattias Persson, [mat...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
Reply all
Reply to author
Forward
0 new messages