Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Multilevel index and TimelineIndex
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Luanne Coutinho  
View profile  
 More options Oct 15 2012, 12:06 am
From: Luanne Coutinho <luanne.couti...@gmail.com>
Date: Mon, 15 Oct 2012 09:36:21 +0530
Local: Mon, Oct 15 2012 12:06 am
Subject: Multilevel index and TimelineIndex

Hi,

I was going to use the multilevel index described in
http://docs.neo4j.org/chunked/milestone/cypher-cookbook-path-tree.html tie
events to a timeline and write queries to fetch certain types of events
within a date range.
Noticed that there is a LuceneTimeline in org.neo4.index.lucene.
It appears that this is useful for getting all entities within a range
irrespective of the type of entity (determined by relations/properties etc)?
Is there any place that has more documentation/examples/usage for
LuceneTimeline? Would like to understand fully what it's used for before I
go build a multilevel index.

Thanks
Luanne


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mattias Persson  
View profile  
 More options Oct 15 2012, 7:19 am
From: Mattias Persson <matt...@neotechnology.com>
Date: Mon, 15 Oct 2012 13:19:56 +0200
Local: Mon, Oct 15 2012 7:19 am
Subject: Re: [Neo4j] Multilevel index and TimelineIndex

LuceneTimeline is just a tiny abstraction of a normal index where it
indexes entities given timestamps, using the numerical functionality of
Lucene (and inherently the Lucene backed neo4j indexes). Also querying uses
Lucene range queries to find the entities within the given timestamps. All
that's in there can be done using normal Lucene backed neo4j indexes. See
https://github.com/neo4j/community/blob/master/lucene-index/src/main/...

2012/10/15 Luanne Coutinho <luanne.couti...@gmail.com>

--
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luanne Coutinho  
View profile  
 More options Oct 15 2012, 7:38 am
From: Luanne Coutinho <luanne.couti...@gmail.com>
Date: Mon, 15 Oct 2012 17:08:36 +0530
Local: Mon, Oct 15 2012 7:38 am
Subject: Re: [Neo4j] Multilevel index and TimelineIndex

Hmm so I can just as well index various events by type, and use this to
fetch them.
Are there any performance gains/losses using one way or the other?

I think initially, for a spike, the LuceneTimeline will be simple enough.
If my timeline grows to be more complicated, I can always introduce the
multilevel index.

Thanks
Luanne

On Mon, Oct 15, 2012 at 4:49 PM, Mattias Persson
<matt...@neotechnology.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luanne Coutinho  
View profile  
 More options Oct 17 2012, 2:28 pm
From: Luanne Coutinho <luanne.couti...@gmail.com>
Date: Wed, 17 Oct 2012 23:58:21 +0530
Local: Wed, Oct 17 2012 2:28 pm
Subject: Re: [Neo4j] Multilevel index and TimelineIndex

Mattias, how do I get a handle back to a LuceneTimeline I've created? I
just see a constructor.

Thanks
Luanne

On Mon, Oct 15, 2012 at 5:08 PM, Luanne Coutinho
<luanne.couti...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mattias Persson  
View profile  
 More options Oct 24 2012, 1:54 pm
From: Mattias Persson <matt...@neotechnology.com>
Date: Wed, 24 Oct 2012 19:54:10 +0200
Local: Wed, Oct 24 2012 1:54 pm
Subject: Re: [Neo4j] Multilevel index and TimelineIndex

That sounded like a pretty basic Java question, am I right? You construct
the timeline index and keep a reference to it, which you use for adding,
removing and querying the timeline index. Like so:

  TimelineIndex index = new LuceneTimeline( db, db.index().forNodes(
"my-timeline" ) );
  // and then later on adding to it...
  index.add( myNode, timestampForMyNode );

2012/10/17 Luanne Coutinho <luanne.couti...@gmail.com>

--
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luanne Coutinho  
View profile  
 More options Oct 24 2012, 10:11 pm
From: Luanne Coutinho <luanne.couti...@gmail.com>
Date: Thu, 25 Oct 2012 07:41:32 +0530
Local: Wed, Oct 24 2012 10:11 pm
Subject: Re: [Neo4j] Multilevel index and TimelineIndex

No, didn't mean that...I can create the index and add stuff to it. Question
is do I need to keep like a static reference to it to be accessed in other
parts of the application? Or if my app and db are shut down, how do I get
back my index (just like you can do db.index().forNodes(regular neo4j
index))? The LuceneTimeline does not seem to be named so not sure how I get
it back to actually query it.

Hope this explanation is clearer :-)

Regards
Luanne

On Wed, Oct 24, 2012 at 11:24 PM, Mattias Persson <matt...@neotechnology.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mattias Persson  
View profile  
 More options Oct 25 2012, 4:24 am
From: Mattias Persson <matt...@neotechnology.com>
Date: Thu, 25 Oct 2012 10:23:59 +0200
Local: Thurs, Oct 25 2012 4:23 am
Subject: Re: [Neo4j] Multilevel index and TimelineIndex

2012/10/25 Luanne Coutinho <luanne.couti...@gmail.com>

> No, didn't mean that...I can create the index and add stuff to it.
> Question is do I need to keep like a static reference to it to be accessed
> in other parts of the application? Or if my app and db are shut down, how
> do I get back my index (just like you can do db.index().forNodes(regular
> neo4j index))? The LuceneTimeline does not seem to be named so not sure how
> I get it back to actually query it.

> Hope this explanation is clearer :-)

Now it's crystal clear, thanks. So... a LuceneTimeline has no state of its
own, it's merely a wrapper around a Lucene backed
org.neo4j.graphdb.index.Index hence it's perfectly fine to create new
instances over time. Even one per add/remove/query should work.

--
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luanne Coutinho  
View profile  
 More options Oct 25 2012, 4:27 am
From: Luanne Coutinho <luanne.couti...@gmail.com>
Date: Thu, 25 Oct 2012 13:57:46 +0530
Local: Thurs, Oct 25 2012 4:27 am
Subject: Re: [Neo4j] Multilevel index and TimelineIndex

Ah okay, I shall try it out, thank you!

On Thu, Oct 25, 2012 at 1:53 PM, Mattias Persson
<matt...@neotechnology.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »