Re: How to reduce enumerating docs

2014-04-29 Thread ??????
docsEnum = sub_reader.termDocsEnum(aterm); -- Original -- From: "Alexandre Rafalovitch";; Send time: Tuesday, Apr 29, 2014 5:13 PM To: "solr-user"; Subject: Re: How to reduce enumerating docs Can't you just specify the length range a

Re: How to reduce enumerating docs

2014-04-29 Thread Alexandre Rafalovitch
Can't you just specify the length range as a filter query? If your length type is tint/tlong, Solr already has optimized code that uses multiple resolutions depth to efficiently filter through the numbers. Regards, Alex. Personal website: http://www.outerthoughts.com/ Current project: http://ww

How to reduce enumerating docs

2014-04-29 Thread ??????
Hi all, My doc has two fileds namely "length" and "fingerprint", which stand for the length and text of the doc. I have a custom SearchComponent that enum all the docs according to the term to search the fingerprint. That could be very slow because the number of docs is very huge and the o