[Neo4j] How do I sort Lucene results by field value, and numerical range queries ?

2010-09-23 Thread Andreas Ronge
Hi In the example https://svn.neo4j.org/laboratory/components/lucene-index/trunk/src/test/java/org/neo4j/index/impl/lucene/TestLuceneIndex.java I only see how to sort by Sort.RELEVANCE and Sort.INDEXORDER. How do I sort ascending/ on different fields ? Another related question, how does neo4j

Re: [Neo4j] How do I sort Lucene results by field value, and numerical range queries ?

2010-09-23 Thread Paddy
Hi Andreas, Yes it looks like you don't need to wrap it in a padded string. I tried using myIndex.add(ndOne, time,1f); it will stills work. thanks Paddy On Thu, Sep 23, 2010 at 12:37 AM, Andreas Ronge andreas.ro...@jayway.sewrote: Hi Paddy Thanks for the response. But it would be nice to

Re: [Neo4j] How do I sort Lucene results by field value, and numerical range queries ?

2010-09-23 Thread Mattias Persson
It doesn't try to use NumericField... maybe that can be done somehow so that range queries can more easily be asked, I'll add that as a ticket 2010/9/23 Paddy paddyf...@gmail.com Hi Andreas, Yes it looks like you don't need to wrap it in a padded string. I tried using myIndex.add(ndOne,

Re: [Neo4j] How do I sort Lucene results by field value, and numerical range queries ?

2010-09-23 Thread Mattias Persson
Btw I don't think lucene can do that kind of multiple-field sorting for you, or can it? 2010/9/23 Mattias Persson matt...@neotechnology.com It doesn't try to use NumericField... maybe that can be done somehow so that range queries can more easily be asked, I'll add that as a ticket 2010/9/23

Re: [Neo4j] how to export neo4j data graph to OWL or RDF files

2010-09-23 Thread Francois Kassis
Hi Peter, I need to import neo4j data graph to PROTÉGÉ software. which opens RDF/XML or OWL/XML files. is that possible and how? THX in advance. Francois. -- -- Message: 4 Date: Wed, 22 Sep 2010 07:33:11 -0700 From:

Re: [Neo4j] How do I sort Lucene results by field value, and numerical range queries ?

2010-09-23 Thread Mattias Persson
2010/9/23 Mattias Persson matt...@neotechnology.com Btw I don't think lucene can do that kind of multiple-field sorting for you, or can it? Scratch that... you can do: myNodeIndex.query( new QueryContext( name:*...@gmail.com ).sort( new Sort( new SortField( name, SortField.STRING ) ) );

[Neo4j] Groovy and Unable to lock store..this is usually a result of..

2010-09-23 Thread Andrew Grealy
Hi All, I have been on the learning path for Neo4J. I came across a problem people are experiencing. If you write groovy scripts to learn how to use Noe4j, then if they bomb out you are left with the 'unable to lock store problem'. I was playing with groovy code from:

Re: [Neo4j] How do I sort Lucene results by field value, and numerical range queries ?

2010-09-23 Thread Mattias Persson
2010/9/23 Andreas Ronge andreas.ro...@jayway.se That's really good news ! Does it also work if it was not indexes as Strings ? ( so that we can sort integers or floats without any padding) I guess that requires that neo4j-lucene adds NumericField instances to the lucene document. Exactly,

[Neo4j] Lucene queries via neo4j.py

2010-09-23 Thread Chris Diehl
Hi All, I saw the email traffic from not long ago about the recent additions to neo4j.py that now support Lucene queries. Is there any documentation available that describes how to use it? Cheers, Chris ___ Neo4j mailing list User@lists.neo4j.org

Re: [Neo4j] BatchInserter usage with neo4j-lucene-index

2010-09-23 Thread Mattias Persson
Your code doesn't use the new index framework, but there might be a CLASSPATH issue where the neo4j-index 1.1 uses lucene 2.9.2 and neo4j-lucene-index 0.1-SNAPSHOT uses lucene 3.0.1. If you've got 'em both on the classpath there might be problems, so please use the one or the other. Or you could

Re: [Neo4j] Minor change to neo4j-rest for major advantage

2010-09-23 Thread Mattias Persson
2010/9/21 Jacob Hansson ja...@voltvoodoo.com Hey all, I'm looking into modifying the DatabaseLocator class in neo4j-rest to allow connecting to remote databases (ie. letting neo4j-rest expose RemoteGraphDatabases via REST, enabling monitoring and management via webadmin of completely

Re: [Neo4j] Lucene queries via neo4j.py

2010-09-23 Thread Andres Taylor
Hi Chris, If you go to this page: http://components.neo4j.org/neo4j.py/ and scroll down to the part titled Indexes, you'll find some documentation. Let me know if you need more information. Andrés On Thu, Sep 23, 2010 at 12:18 PM, Chris Diehl di...@alumni.cmu.edu wrote: Hi All, I saw the

Re: [Neo4j] Groovy and Unable to lock store..this is usually a result of..

2010-09-23 Thread Mattias Persson
The cause of this problem (for the OverlappingFileLockException) is that there's another Neo4j kernel instance already running withing the same JVM for that particular store. I also improved the exception to say that. 2010/9/23 Andrew Grealy iag...@yahoo.com Hi All, I have been on the

Re: [Neo4j] BatchInserter usage with neo4j-lucene-index

2010-09-23 Thread Paddy
Hi Mattias, i just had neo4j-lucene-index 0.1-SNAPSHOT in the CLASSPATH when i got the first error but when i include 1.2-SNAPSHOT 0.1-SNAPSHOT and query the graph created using: IndexNode myIndex = provider.nodeIndex(fulltext, LuceneIndexProvider.FULLTEXT_CONFIG); for (Node searchHit :