lucenenet-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy" <>
Subject RE: Simple question
Date Fri, 30 Oct 2009 20:18:54 GMT
Sorting on a large index can be very costly. I think you can use TermEnum to
get the terms of "another_field" (note that terms are stored sorted in the
index) and using the "TermDocs" you can get the corresponding docs of those

See the discusssion "Alternative to looping through Hits".


-----Original Message-----
From: André Maldonado [] 
Sent: Friday, October 30, 2009 6:57 PM
Subject: Simple question


This can be a simple question, but I can't figure out the solution.

I need to search my index in something like "SELECT TOP 5 ... ORDER BY
another_field". But this is an empty query because I want to search in all

How can I do it?


View raw message