Yes, it does compute these distances for all the terms for the field
specified, but only once (per IndexReader). This is where the
techniques Solr employs comes in real handy... warming up caches by
running searches and sorts before putting a index into service.
Erik
On May 12, 2006, at 11:14 AM, Urvashi Gadi wrote:
I am looking at DistanceComparatorSource class (for csutom sorting)
and looks like it calculates the distance for each record in the
index and not just the records returned from search, making the
system very slow.
Is my observation correct? Are there ways to optimize this process?
Thanks,
Urvashi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]