You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by io...@group.novartis.com on 2004/07/13 15:45:51 UTC

How to retrive last N docs sorted by sertain field from index ?

Can somebody mail me a code how to retrive last N docs sorted by sertain 
field  from index .
i.e. smth like

openIndex();
setOrderByField(field);
for(i;i++;i<N){
getDoc(i);
}


Thanks in advance


J.