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
Message from discussion Multilevel index and TimelineIndex
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
 
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, 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:

>> 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:

>>> 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>

>>>>  Hi,

>>>> I was going to use the multilevel index described in
>>>> http://docs.neo4j.org/chunked/milestone/cypher-cookbook-path-tree.htm... 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

>>>> --

>>> --
>>> Mattias Persson, [matt...@neotechnology.com]
>>> Hacker, Neo Technology
>>> www.neotechnology.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.