On Mon, Jun 23, 2014 at 5:02 PM, Costi Muraru <costimur...@gmail.com> wrote:
> q=*:*&fq={!cost=1}type:purchase&{!frange u=0 cost=3}mycustomfunction()
> The function is applied on all documents, instead of only those that match
> the *purchase* type. I verified this assumption, by checking the query time
> and also by debugging the custom function.

Not sure the syntax above is correct (is it ...&fq={!frange...}?), but
I wanted to add one bit of information. If you are caching the filter
query (yes, by default), then it applies to the full set of documents.
Because otherwise, it cannot be reused next time. So, if you say
cache=false it should be checked only against the documents matching
the other criteria (based on costs ordering).

Regards,
   Alex.


Personal website: http://www.outerthoughts.com/
Current project: http://www.solr-start.com/ - Accelerating your Solr proficiency

Reply via email to