Re: ways to check if document is in a huge search result set

2017-09-13 Thread Derek Poh
I see. Thank you. On 9/13/2017 2:36 PM, Michael Kuhlmann wrote: Am 13.09.2017 um 04:04 schrieb Derek Poh: Hi Michael "Then continue using binary search depending on the returned score values." May I know what do you mean by using binary search? An example algorithm is in Java method

Re: ways to check if document is in a huge search result set

2017-09-13 Thread Michael Kuhlmann
Am 13.09.2017 um 04:04 schrieb Derek Poh: > Hi Michael > > "Then continue using binary search depending on the returned score > values." > > May I know what do you mean by using binary search? An example algorithm is in Java method java.util.Arrays::binarySearch. Or more detailed:

Re: ways to check if document is in a huge search result set

2017-09-12 Thread Derek Poh
Hi Michael "Then continue using binary search depending on the returned score values." May I know what do you mean by using binary search? On 9/12/2017 3:08 PM, Michael Kuhlmann wrote: So you're looking for a solution to validate the result output. You have two ways: 1. Assuming you're

Re: ways to check if document is in a huge search result set

2017-09-12 Thread Michael Kuhlmann
So you're looking for a solution to validate the result output. You have two ways: 1. Assuming you're sorting by the default "score" sort option: Find the result you're looking for by setting the fq filter clause accordingly, and add "score" the the fl field list. Then do the normal unfiltered

Re: ways to check if document is in a huge search result set

2017-09-11 Thread Derek Poh
Some additional information. I have a query from user that a supplier's product(s) is not in the search result. I debugged by adding a fq on the supplier id to the query to verify the supplier's product is in thesearch result. The products do existin the search result. I want to tell user in

Re: ways to check if document is in a huge search result set

2017-09-11 Thread Mikhail Khludnev
You can request facet field, query facet, filter or even explainOther. On Mon, Sep 11, 2017 at 5:12 AM, Derek Poh wrote: > Hi > > I have a collection of productdocument. > Each productdocument has supplier information in it. > > I need to check if a supplier's products

Re: ways to check if document is in a huge search result set

2017-09-11 Thread Michael Kuhlmann
Maybe I don't understand your problem, but why don't you just filter by "supplier information"? -Michael Am 11.09.2017 um 04:12 schrieb Derek Poh: > Hi > > I have a collection of productdocument. > Each productdocument has supplier information in it. > > I need to check if a supplier's products

ways to check if document is in a huge search result set

2017-09-10 Thread Derek Poh
Hi I have a collection of productdocument. Each productdocument has supplier information in it. I need to check if a supplier's products is return in a search resultcontaining over 100,000 products and in which page (assuming pagination is 20 products per page). Itis time-consuming and