2010/10/19 Andres Taylor <andres.tay...@neotechnology.com> > Hi Balazs, > > We've been working on a new lucene-index module just these last days. The > new index module allows sorting, through the QueryContext-class. You can > look in svn <https://svn.neo4j.org/components/lucene-index/trunk/>, if you > are so inclined, or wait for the next milestone release (Thursday). >
Exactly, an example could be: Index<Node> myNodeIndex = ... for ( Node hit : myNodeIndex.query( new QueryContext( "name:Balazs" ).sort( "name" ) ) ) { System.out.println( hit.getProperty( "name" ) ); } > HTH, > > Andrés > > On Tue, Oct 19, 2010 at 5:41 PM, Balazs E. Pataki <pat...@dsd.sztaki.hu > >wrote: > > > Hi, > > > > Is it possible to do get sorted results form LuceneIndex#query()? > > > > It would be really helpful if results would be sorted at "lucene time" > > according to one or more indexed fields rather than loading the actual > > neo4j nodes and than iterating over them for sorting. > > > > Currently, it seems that sorting is not supported by LuceneIndex, but > > are there plans regarding this? > > > > Thanks for any hints, > > --- > > balazs > > _______________________________________________ > > Neo4j mailing list > > User@lists.neo4j.org > > https://lists.neo4j.org/mailman/listinfo/user > > > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user