Re: [Neo4j] Lucene result sorting

2010-10-20 Thread Balazs E. Pataki
Hi Andrés, Thanks for the answer, looks cool :-) I give it a try immediately! Regards, --- balazs On 10/19/10 8:37 PM, Mattias Persson wrote: 2010/10/19 Andres Taylorandres.tay...@neotechnology.com Hi Balazs, We've been working on a new lucene-index module just these last days. The new

Re: [Neo4j] Lucene result sorting

2010-10-20 Thread Balazs E. Pataki
Hi Andrés, I just quickly read through the code and have an idea for an additional sorting solution via QueryContext: a user provided sorter, which is invoked right after lucene search has been executed, but before the lucene results are turned into neo4j Nodes. This would give developers the

Re: [Neo4j] Lucene result sorting

2010-10-20 Thread Mattias Persson
2010/10/20 Balazs E. Pataki pat...@dsd.sztaki.hu Hi Andrés, I just quickly read through the code and have an idea for an additional sorting solution via QueryContext: a user provided sorter, which is invoked right after lucene search has been executed, but before the lucene results are

Re: [Neo4j] Lucene result sorting

2010-10-20 Thread Balazs E. Pataki
Yes, the idea is to overcome the limitations of Lucene sorting. The current solution I use is to get the IndexHits from LuceneIndex and then sort the neo4j Node's by their properties. But this requires loading all nodes in the hit list. Rather than doing this, sorting the Lucene Documents,

Re: [Neo4j] Lucene result sorting

2010-10-20 Thread Mattias Persson
2010/10/20 Balazs E. Pataki pat...@dsd.sztaki.hu Yes, the idea is to overcome the limitations of Lucene sorting. The current solution I use is to get the IndexHits from LuceneIndex and then sort the neo4j Node's by their properties. But this requires loading all nodes in the hit list. Rather

[Neo4j] Lucene result sorting

2010-10-19 Thread Balazs E. Pataki
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

Re: [Neo4j] Lucene result sorting

2010-10-19 Thread Andres Taylor
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

Re: [Neo4j] Lucene result sorting

2010-10-19 Thread Mattias Persson
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