i mentioned ie, it has size n.
>>>> i will check count api.
>>>>
>>>> Best regards
>>>>
>>>>
>>>> *From:* Adrien Grand mailto:jpou
t;>>> ScoreDoc array is ok as i mentioned ie, it has size n.
>>>> i will check count api.
>>>>
>>>> Best regards
>>>>
>>>>
y is ok as i mentioned ie, it has size n.
>>>> i will check count api.
>>>>
>>>> Best regards
>>>>
>>>>
>>>> *From:* Adri
bout the lucene's performance.
> >>>>
> >>>> if lucene collects thousands of hits instead of actually n (<<< a
> >>>> couple of 1000s) hits, then this creates performance issue.
> >>>>
> >>>> ScoreDoc array is ok as i men
* Tuesday, June 8, 2021 2:46 AM
*To:* Lucene Users Mailing List
*Cc:* Baris Kazar
*Subject:* Re: An interesting case
When you call IndexSearcher#search(Query query, int n), there are two
cases:
- either your query matches n hits or more, and the TopDocs object
will have a ScoreDoc[] array that conta
1 2:46 AM
*To:* Lucene Users Mailing List
*Cc:* Baris Kazar
*Subject:* Re: An interesting case
When you call IndexSearcher#search(Query query, int n), there are two
cases:
- either your query matches n hits or more, and the TopDocs object
will have a ScoreDoc[] array that contains the n best sco
k as i mentioned ie, it has size n.
> > i will check count api.
> >
> > Best regards
> >
> > *From:* Adrien Grand
> > *Sent:* Tuesday, June 8, 2021 2:46 AM
> > *To:* Lucene Users Maili
t regards
*From:* Adrien Grand
*Sent:* Tuesday, June 8, 2021 2:46 AM
*To:* Lucene Users Mailing List
*Cc:* Baris Kazar
*Subject:* Re: An interesting case
When you call IndexSearcher#search(Query query, int n), there are two
cases:
- either your query matches n hit
t regards
From: Adrien Grand
Sent: Tuesday, June 8, 2021 2:46 AM
To: Lucene Users Mailing List
Cc: Baris Kazar
Subject: Re: An interesting case
When you call IndexSearcher#search(Query query, int n), there are two cases:
- either your query matches n hits or more, and the TopDocs object
When you call IndexSearcher#search(Query query, int n), there are two cases:
- either your query matches n hits or more, and the TopDocs object will
have a ScoreDoc[] array that contains the n best scoring hits sorted by
descending score,
- or your query matches less then n hits and then the
https://stackoverflow.com/questions/50368313/relation-between-topdocs-totalhits-and-parameter-n-of-indexsearcher-search
looks like someone else also had this problem, too.
Any suggestions please?
Best regards
On 6/8/21 1:36 AM, baris.ka...@oracle.com wrote:
Hi,-
I use IndexSearcher.search
Hi,-
I use IndexSearcher.search API with two parameters like Query and int
number (i set as 20).
However, when i look at the TopDocs object which is the result of this
above API call
i see thousands of hits from totalhits. Is this inaccurate or Lucene is
doing actually search based on
12 matches
Mail list logo