Hello,

I am trying to normalize values of a certain field, and then use them in a
function query. For that I need to know the maximum and minimum values the
field gets. I am thinking of using the scale(x, minTarget, maxTarget) query
function, but i read in solr book (Solr 1.4 enterprise search server by Eric
Pugh and David Smiley) that "*scale will traverse the entire document set
and evaluate the function to determine the smallest and largest values for
each query invocation, and it is not cached " *. What makes me ask two
questions:

   1. Is this also true for TrieFields (such as solr.TrieIntField), because
   as far as I understand it suppose to have the values sorted in some manner,
   so checking for the min and max val should happen in constant time
   complexity.
   2. why are the results are not cached?!?! is there any way to defined
   them to be cached?

the first question is far more important to me than the second..

thanks

*Omri Cohen*



Co-founder @ yotpo.com | o...@yotpo.com | +972-50-7235198 | +972-3-6036295




My profiles: [image: LinkedIn] <http://www.linkedin.com/in/omric> [image:
Twitter] <http://www.twitter.com/omricohe> [image:
WordPress]<http://omricohen.me>
 Please consider your environmental responsibility. Before printing this
e-mail message, ask yourself whether you really need a hard copy.
IMPORTANT: The contents of this email and any attachments are confidential.
They are intended for the named recipient(s) only. If you have received this
email by mistake, please notify the sender immediately and do not disclose
the contents to anyone or make copies thereof.
Signature powered by
<http://www.wisestamp.com/email-install?utm_source=extension&utm_medium=email&utm_campaign=footer>
WiseStamp<http://www.wisestamp.com/email-install?utm_source=extension&utm_medium=email&utm_campaign=footer>

Reply via email to