Re: Break up a supplier's documents (products) from dominating search result.

2016-12-01 Thread Derek Poh
While testing with groupparam(i think it apply to field collapse as well), I encountered a scenario where the number of suppliers in a result is less than the number of items to display per page (user select). Eg. Products per page to display is 80. The search result has 182 matching productswh

Re: Break up a supplier's documents (products) from dominating search result.

2016-11-28 Thread Alexandre Rafalovitch
You can use expand and it will provide several documents per group (but in a different data structure in the response). Then it is up to you how to sequence or interleave the results in your UI. You do need to deal with edge-cases like what happens if you say 3 products per group, but then one gro

Re: Break up a supplier's documents (products) from dominating search result.

2016-11-28 Thread Derek Poh
Is there a way where we do not have to change the page UI? This is the search page for your reference. http://www.globalsources.com/gsol/GeneralManager?hostname=www.globalsources.com&point_search=on&page=search%2FProductSearchResults&article_search=off&apclick=&qType=PRODUCT&language=en&type=new&

Re: Break up a supplier's documents (products) from dominating search result.

2016-11-28 Thread Walter Underwood
We used something like field collapsing, but it wasn’t with Solr or Lucene. They had not been invented at the time. This was a feature of the Ultraseek engine from Infoseek, probably in 1997 or 1998. With field collapsing, you provide a link to show more results from that source. wunder Walter Un

Re: Break up a supplier's documents (products) from dominating search result.

2016-11-28 Thread Derek Poh
Hi Walter You used field collapsing for your case as well? For my case the search result page is listing of products. There is a option to select the number of products to display per page. Let's say 40 products per page is selected. A search result has 100 matching products but these products

Re: Break up a supplier's documents (products) from dominating search result.

2016-11-28 Thread Walter Underwood
We had a similar feature in the Ultraseek search engine. One of our customers was a magazine publisher, and they wanted the best hit from each magazine on the first page. I expect that field collapsing would work for this. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.

Re: Break up a supplier's documents (products) from dominating search result.

2016-11-28 Thread Derek Poh
Alex Hope I understand what you meant by positive business requirements. With a few supplier's products dominating the first page of a search result, the sales will not be able to convince prospectiveor existing clients to sign up. They would like the results tofeature other supplier's product

Re: Break up a supplier's documents (products) from dominating search result.

2016-11-28 Thread Alexandre Rafalovitch
Is it technically possible to expose it in Solr? Because there was also http://stackoverflow.com/questions/40831474/randomize-result-set-between-the-brands-in-solr/40835382#40835382 . Seems a popular request (or I misread different things in the same way). Regards, Alex. http://www.solr-s

Re: Break up a supplier's documents (products) from dominating search result.

2016-11-28 Thread Shalin Shekhar Mangar
There is a related work done in Lucene land which hasn't been exposed in Solr yet. It is called DiversifiedTopDocsCollector. See https://issues.apache.org/jira/browse/LUCENE-6066 On Mon, Nov 28, 2016 at 2:39 PM, Derek Poh wrote: > Hi > > We have a business requirement to breakupa supplier's produ

Re: Break up a supplier's documents (products) from dominating search result.

2016-11-28 Thread Alexandre Rafalovitch
You have described your _negative_ business requirements, but not the _positive_ ones. So, it is hard to see what they want to happen. It is easy enough to promote or demote a particular filter matches. But you want to partially limit them. On a first page? What about on the second? I suspect you