Re: An interesting case

2021-06-08 Thread baris . kazar
i mentioned ie, it has size n. >>>> i will check count api. >>>> >>>> Best regards >>>> >>>> >>>> *From:* Adrien Grand mailto:jpou

Re: An interesting case

2021-06-08 Thread baris . kazar
t;>>> ScoreDoc array is ok as i mentioned ie, it has size n. >>>> i will check count api. >>>> >>>> Best regards >>>> >>>>

Re: An interesting case

2021-06-08 Thread baris . kazar
y is ok as i mentioned ie, it has size n. >>>> i will check count api. >>>> >>>> Best regards >>>> >>>> >>>> *From:* Adri

Re: An interesting case

2021-06-08 Thread Adrien Grand
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

Re: An interesting case

2021-06-08 Thread baris . kazar
* 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

Re: An interesting case

2021-06-08 Thread baris . kazar
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

Re: An interesting case

2021-06-08 Thread Adrien Grand
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

Re: An interesting case

2021-06-08 Thread baris . kazar
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

Re: An interesting case

2021-06-08 Thread Baris Kazar
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

Re: An interesting case

2021-06-08 Thread Adrien Grand
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

Re: An interesting case

2021-06-07 Thread baris . kazar
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

An interesting case

2021-06-07 Thread baris . kazar
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