QueryContext isn't exposing that, but you could do:
// Sort and SortField are lucene classes.
// , true says that it should be reversed
QueryContext query = new QueryContext( "name:*" ).sort( new Sort(
new SortField( "name",
SortField.STRING, true ) ) );
myIndex.query( query );
2011/8/24 Freeman <[email protected]>
> Hi,
> is it possible to do get REVERSED sorted results form LuceneIndex Query?
> I'm trying to find the way but without luck.
>
> However, what is the best way to sort and paginate a list of nodes (A)
> related to a particular node User (sorting based on the properties of the
> node A)?
>
> Thanks
>
> --
> View this message in context:
> http://neo4j-community-discussions.438527.n3.nabble.com/Best-way-to-sort-and-Lucene-result-reversed-sorting-tp3280235p3280235.html
> Sent from the Neo4j Community Discussions mailing list archive at
> Nabble.com.
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
--
Mattias Persson, [[email protected]]
Hacker, Neo Technology
www.neotechnology.com
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user