Hi, Emir.

Please check callers of org.apache.lucene.search.HitQueue.HitQueue(int,
boolean), you may found an alternative usage you probably is looking for.

On Wed, Feb 5, 2020 at 3:01 PM Emir Arnautović <emir.arnauto...@sematext.com>
wrote:

> Hi Mikhail,
> I was thinking in that direction. Do you know where it is in the codebase
> or which structure is used - I am guessing some array of objects?
>
> Thanks,
> Emir
> --
> Monitoring - Log Management - Alerting - Anomaly Detection
> Solr & Elasticsearch Consulting Support Training - http://sematext.com/
>
>
>
> > On 5 Feb 2020, at 12:54, Mikhail Khludnev <m...@apache.org> wrote:
> >
> > Absolutely. Searcher didn't know number of hits a priory. It eagerly
> > allocate results heap before collecting results. The only cap I'm aware
> of
> > is maxDocs.
> >
> > On Wed, Feb 5, 2020 at 2:42 PM Emir Arnautović <
> emir.arnauto...@sematext.com>
> > wrote:
> >
> >> Hi,
> >> Does somebody know if requested number of rows is used internally to set
> >> some temp structures? In other words will query with rows=1000000 be
> more
> >> expensive than query with rows=1000 if number of hits is 1000?
> >>
> >> Thanks,
> >> Emir
> >> --
> >> Monitoring - Log Management - Alerting - Anomaly Detection
> >> Solr & Elasticsearch Consulting Support Training - http://sematext.com/
> >>
> >>
> >>
> >>
> >
> > --
> > Sincerely yours
> > Mikhail Khludnev
>
>

-- 
Sincerely yours
Mikhail Khludnev

Reply via email to