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 productswhichbelong to 13 suppliers.
Grouping by supplier idand 1 product per supplier, only 13 products will 
be return. Issuing anotherquery to getmore products to fill up the page 
will not help as there is no more suppliers.


Initial query parameters,
start=0=80=grout=P_SupplierSource:(1)=true=P_SupplierId=simple

issue another query to get more products to fill up. this will not 
return anyresult.

start=80=80=grout=P_SupplierSource:(1)=true=P_SupplierId=simple


Any suggestions/advice on how to address this scenario?

On 11/29/2016 11:01 AM, Alexandre Rafalovitch wrote:

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 group has only one and you don't have
enough items in a list, etc.

Regards,
Alex.

http://www.solr-start.com/ - Resources for Solr users, new and experienced


On 29 November 2016 at 12:56, Derek Poh  wrote:

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 belong to only 20 suppliers. The page will only
display 20 products (1 product per supplier).
We still need to fill up the remaining 20 empty products.
How can I handle this scenario?


On 11/29/2016 8:26 AM, Walter Underwood wrote:

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.org/  (my blog)



On Nov 28, 2016, at 4:19 PM, Derek Poh  wrote:

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 products as well.
To the extreme case, they were thinking of displaying the results tobe in
such order
Supplier A product
Supplier B product
Supplier C product
Supplier A product
Supplier B product
Supplier C product
...

Theyare alright with implementing this logic tothe first page only
andsubsequent pages will be as per current logic if it is not possible to
implement it to the entire search result.

Will take a lookat Collapse and Expandto seeif it can help.

On 11/28/2016 6:04 PM, Alexandre Rafalovitch wrote:

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 would have to have a slightly different interface to do
this effectively. And, most likely, using Collapse and Expand:

https://cwiki.apache.org/confluence/display/solr/Collapse+and+Expand+Results
.

Regards,
 Alex.

http://www.solr-start.com/ - Resources for Solr users, new and
experienced


On 28 November 2016 at 20:09, Derek Poh  wrote:

Hi

We have a business requirement to breakupa supplier's products from
dominating search resultso as to allow othersuppliers' products in the
search result to have exposure.
Business users are open to implementing this for the first page of the
search resultif it is not possible to apply tothe entire search result.

  From the sample keywords users have provided, I also discovered
thatmost of
the time a supplier's products that are listed consecutively in the
result
all have the same score.

Any advice/suggestions on how I cando it?

Please let me know if more information is require. Thank you.

Derek

--
CONFIDENTIALITY NOTICE
This e-mail (including any attachments) may contain confidential and/or
privileged information. If you are not the intended recipient or have
received this e-mail in error, please inform the sender immediately and
delete this e-mail (including any attachments) from your computer, and
you
must not use, disclose to anyone else or copy this e-mail (including
any
attachments), whether in whole or in part.
This e-mail and any reply to it may be monitored for security, legal,
regulatory compliance and/or other appropriate 

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 group has only one and you don't have
enough items in a list, etc.

Regards,
   Alex.

http://www.solr-start.com/ - Resources for Solr users, new and experienced


On 29 November 2016 at 12:56, Derek Poh  wrote:
> 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 belong to only 20 suppliers. The page will only
> display 20 products (1 product per supplier).
> We still need to fill up the remaining 20 empty products.
> How can I handle this scenario?
>
>
> On 11/29/2016 8:26 AM, Walter Underwood wrote:
>>
>> 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.org/  (my blog)
>>
>>
>>> On Nov 28, 2016, at 4:19 PM, Derek Poh  wrote:
>>>
>>> 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 products as well.
>>> To the extreme case, they were thinking of displaying the results tobe in
>>> such order
>>> Supplier A product
>>> Supplier B product
>>> Supplier C product
>>> Supplier A product
>>> Supplier B product
>>> Supplier C product
>>> ...
>>>
>>> Theyare alright with implementing this logic tothe first page only
>>> andsubsequent pages will be as per current logic if it is not possible to
>>> implement it to the entire search result.
>>>
>>> Will take a lookat Collapse and Expandto seeif it can help.
>>>
>>> On 11/28/2016 6:04 PM, Alexandre Rafalovitch wrote:

 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 would have to have a slightly different interface to do
 this effectively. And, most likely, using Collapse and Expand:

 https://cwiki.apache.org/confluence/display/solr/Collapse+and+Expand+Results
 .

 Regards,
 Alex.
 
 http://www.solr-start.com/ - Resources for Solr users, new and
 experienced


 On 28 November 2016 at 20:09, Derek Poh  wrote:
>
> Hi
>
> We have a business requirement to breakupa supplier's products from
> dominating search resultso as to allow othersuppliers' products in the
> search result to have exposure.
> Business users are open to implementing this for the first page of the
> search resultif it is not possible to apply tothe entire search result.
>
>  From the sample keywords users have provided, I also discovered
> thatmost of
> the time a supplier's products that are listed consecutively in the
> result
> all have the same score.
>
> Any advice/suggestions on how I cando it?
>
> Please let me know if more information is require. Thank you.
>
> Derek
>
> --
> CONFIDENTIALITY NOTICE
> This e-mail (including any attachments) may contain confidential and/or
> privileged information. If you are not the intended recipient or have
> received this e-mail in error, please inform the sender immediately and
> delete this e-mail (including any attachments) from your computer, and
> you
> must not use, disclose to anyone else or copy this e-mail (including
> any
> attachments), whether in whole or in part.
> This e-mail and any reply to it may be monitored for security, legal,
> regulatory compliance and/or other appropriate reasons.
>>>
>>>
>>> --
>>> CONFIDENTIALITY NOTICE
>>> This e-mail (including any attachments) may contain confidential and/or
>>> privileged information. If you are not the intended recipient or have
>>> received this e-mail in error, please inform the sender immediately and
>>> delete this e-mail (including any attachments) from your computer, and you
>>> must not use, disclose to anyone else or copy this 

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_search=on=search%2FProductSearchResults_search=off==PRODUCT=en=new=denim+fabric=en_id=300149681_id=23844==t=N=ProdSearch=GetPoint=DoFreeTextSearch_search=on_search=off=grid 



On 11/29/2016 10:04 AM, Walter Underwood wrote:

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 Underwood
wun...@wunderwood.org
http://observer.wunderwood.org/  (my blog)



On Nov 28, 2016, at 5:56 PM, Derek Poh  wrote:

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 belong to only 20 suppliers. The page will only 
display 20 products (1 product per supplier).
We still need to fill up the remaining 20 empty products.
How can I handle this scenario?

On 11/29/2016 8:26 AM, Walter Underwood wrote:

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.org/  (my blog)



On Nov 28, 2016, at 4:19 PM, Derek Poh  wrote:

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 products as well.
To the extreme case, they were thinking of displaying the results tobe in such 
order
Supplier A product
Supplier B product
Supplier C product
Supplier A product
Supplier B product
Supplier C product
...

Theyare alright with implementing this logic tothe first page only 
andsubsequent pages will be as per current logic if it is not possible to 
implement it to the entire search result.

Will take a lookat Collapse and Expandto seeif it can help.

On 11/28/2016 6:04 PM, Alexandre Rafalovitch wrote:

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 would have to have a slightly different interface to do
this effectively. And, most likely, using Collapse and Expand:
https://cwiki.apache.org/confluence/display/solr/Collapse+and+Expand+Results
.

Regards,
Alex.

http://www.solr-start.com/ - Resources for Solr users, new and experienced


On 28 November 2016 at 20:09, Derek Poh  wrote:

Hi

We have a business requirement to breakupa supplier's products from
dominating search resultso as to allow othersuppliers' products in the
search result to have exposure.
Business users are open to implementing this for the first page of the
search resultif it is not possible to apply tothe entire search result.

 From the sample keywords users have provided, I also discovered thatmost of
the time a supplier's products that are listed consecutively in the result
all have the same score.

Any advice/suggestions on how I cando it?

Please let me know if more information is require. Thank you.

Derek

--
CONFIDENTIALITY NOTICE
This e-mail (including any attachments) may contain confidential and/or
privileged information. If you are not the intended recipient or have
received this e-mail in error, please inform the sender immediately and
delete this e-mail (including any attachments) from your computer, and you
must not use, disclose to anyone else or copy this e-mail (including any
attachments), whether in whole or in part.
This e-mail and any reply to it may be monitored for security, legal,
regulatory compliance and/or other appropriate reasons.

--
CONFIDENTIALITY NOTICE
This e-mail (including any attachments) may contain confidential and/or 
privileged information. If you are not the intended recipient or have received 
this e-mail in error, please inform the sender immediately and delete this 
e-mail (including any attachments) from your computer, and you must not use, 
disclose to anyone else or copy this e-mail (including any attachments), 
whether in whole or in part.
This e-mail and any reply to it may be monitored for security, legal, 

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 Underwood
wun...@wunderwood.org
http://observer.wunderwood.org/  (my blog)


> On Nov 28, 2016, at 5:56 PM, Derek Poh  wrote:
> 
> 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 belong to only 20 suppliers. The page will only 
> display 20 products (1 product per supplier).
> We still need to fill up the remaining 20 empty products.
> How can I handle this scenario?
> 
> On 11/29/2016 8:26 AM, Walter Underwood wrote:
>> 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.org/  (my blog)
>> 
>> 
>>> On Nov 28, 2016, at 4:19 PM, Derek Poh  wrote:
>>> 
>>> 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 products as well.
>>> To the extreme case, they were thinking of displaying the results tobe in 
>>> such order
>>> Supplier A product
>>> Supplier B product
>>> Supplier C product
>>> Supplier A product
>>> Supplier B product
>>> Supplier C product
>>> ...
>>> 
>>> Theyare alright with implementing this logic tothe first page only 
>>> andsubsequent pages will be as per current logic if it is not possible to 
>>> implement it to the entire search result.
>>> 
>>> Will take a lookat Collapse and Expandto seeif it can help.
>>> 
>>> On 11/28/2016 6:04 PM, Alexandre Rafalovitch wrote:
 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 would have to have a slightly different interface to do
 this effectively. And, most likely, using Collapse and Expand:
 https://cwiki.apache.org/confluence/display/solr/Collapse+and+Expand+Results
 .
 
 Regards,
Alex.
 
 http://www.solr-start.com/ - Resources for Solr users, new and experienced
 
 
 On 28 November 2016 at 20:09, Derek Poh  wrote:
> Hi
> 
> We have a business requirement to breakupa supplier's products from
> dominating search resultso as to allow othersuppliers' products in the
> search result to have exposure.
> Business users are open to implementing this for the first page of the
> search resultif it is not possible to apply tothe entire search result.
> 
> From the sample keywords users have provided, I also discovered thatmost 
> of
> the time a supplier's products that are listed consecutively in the result
> all have the same score.
> 
> Any advice/suggestions on how I cando it?
> 
> Please let me know if more information is require. Thank you.
> 
> Derek
> 
> --
> CONFIDENTIALITY NOTICE
> This e-mail (including any attachments) may contain confidential and/or
> privileged information. If you are not the intended recipient or have
> received this e-mail in error, please inform the sender immediately and
> delete this e-mail (including any attachments) from your computer, and you
> must not use, disclose to anyone else or copy this e-mail (including any
> attachments), whether in whole or in part.
> This e-mail and any reply to it may be monitored for security, legal,
> regulatory compliance and/or other appropriate reasons.
>>> 
>>> --
>>> CONFIDENTIALITY NOTICE
>>> This e-mail (including any attachments) may contain confidential and/or 
>>> privileged information. If you are not the intended recipient or have 
>>> received this e-mail in error, please inform the sender immediately and 
>>> delete this e-mail (including any attachments) from your computer, and you 
>>> must not use, disclose to anyone else or copy this e-mail (including any 
>>> attachments), whether in whole or in part.
>>> This e-mail and any reply to it 

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 belong to only 20 suppliers. The 
page will only display 20 products (1 product per supplier).

We still need to fill up the remaining 20 empty products.
How can I handle this scenario?

On 11/29/2016 8:26 AM, Walter Underwood wrote:

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.org/  (my blog)



On Nov 28, 2016, at 4:19 PM, Derek Poh  wrote:

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 products as well.
To the extreme case, they were thinking of displaying the results tobe in such 
order
Supplier A product
Supplier B product
Supplier C product
Supplier A product
Supplier B product
Supplier C product
...

Theyare alright with implementing this logic tothe first page only 
andsubsequent pages will be as per current logic if it is not possible to 
implement it to the entire search result.

Will take a lookat Collapse and Expandto seeif it can help.

On 11/28/2016 6:04 PM, Alexandre Rafalovitch wrote:

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 would have to have a slightly different interface to do
this effectively. And, most likely, using Collapse and Expand:
https://cwiki.apache.org/confluence/display/solr/Collapse+and+Expand+Results
.

Regards,
Alex.

http://www.solr-start.com/ - Resources for Solr users, new and experienced


On 28 November 2016 at 20:09, Derek Poh  wrote:

Hi

We have a business requirement to breakupa supplier's products from
dominating search resultso as to allow othersuppliers' products in the
search result to have exposure.
Business users are open to implementing this for the first page of the
search resultif it is not possible to apply tothe entire search result.

 From the sample keywords users have provided, I also discovered thatmost of
the time a supplier's products that are listed consecutively in the result
all have the same score.

Any advice/suggestions on how I cando it?

Please let me know if more information is require. Thank you.

Derek

--
CONFIDENTIALITY NOTICE
This e-mail (including any attachments) may contain confidential and/or
privileged information. If you are not the intended recipient or have
received this e-mail in error, please inform the sender immediately and
delete this e-mail (including any attachments) from your computer, and you
must not use, disclose to anyone else or copy this e-mail (including any
attachments), whether in whole or in part.
This e-mail and any reply to it may be monitored for security, legal,
regulatory compliance and/or other appropriate reasons.


--
CONFIDENTIALITY NOTICE
This e-mail (including any attachments) may contain confidential and/or 
privileged information. If you are not the intended recipient or have received 
this e-mail in error, please inform the sender immediately and delete this 
e-mail (including any attachments) from your computer, and you must not use, 
disclose to anyone else or copy this e-mail (including any attachments), 
whether in whole or in part.
This e-mail and any reply to it may be monitored for security, legal, 
regulatory compliance and/or other appropriate reasons.




--
CONFIDENTIALITY NOTICE 

This e-mail (including any attachments) may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please inform the sender immediately and delete this e-mail (including any attachments) from your computer, and you must not use, disclose to anyone else or copy this e-mail (including any attachments), whether in whole or in part. 


This e-mail and any reply to it may be monitored for security, legal, 
regulatory compliance and/or other appropriate reasons.



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.org/  (my blog)


> On Nov 28, 2016, at 4:19 PM, Derek Poh  wrote:
> 
> 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 products as well.
> To the extreme case, they were thinking of displaying the results tobe in 
> such order
> Supplier A product
> Supplier B product
> Supplier C product
> Supplier A product
> Supplier B product
> Supplier C product
> ...
> 
> Theyare alright with implementing this logic tothe first page only 
> andsubsequent pages will be as per current logic if it is not possible to 
> implement it to the entire search result.
> 
> Will take a lookat Collapse and Expandto seeif it can help.
> 
> On 11/28/2016 6:04 PM, Alexandre Rafalovitch wrote:
>> 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 would have to have a slightly different interface to do
>> this effectively. And, most likely, using Collapse and Expand:
>> https://cwiki.apache.org/confluence/display/solr/Collapse+and+Expand+Results
>> .
>> 
>> Regards,
>>Alex.
>> 
>> http://www.solr-start.com/ - Resources for Solr users, new and experienced
>> 
>> 
>> On 28 November 2016 at 20:09, Derek Poh  wrote:
>>> Hi
>>> 
>>> We have a business requirement to breakupa supplier's products from
>>> dominating search resultso as to allow othersuppliers' products in the
>>> search result to have exposure.
>>> Business users are open to implementing this for the first page of the
>>> search resultif it is not possible to apply tothe entire search result.
>>> 
>>> From the sample keywords users have provided, I also discovered thatmost of
>>> the time a supplier's products that are listed consecutively in the result
>>> all have the same score.
>>> 
>>> Any advice/suggestions on how I cando it?
>>> 
>>> Please let me know if more information is require. Thank you.
>>> 
>>> Derek
>>> 
>>> --
>>> CONFIDENTIALITY NOTICE
>>> This e-mail (including any attachments) may contain confidential and/or
>>> privileged information. If you are not the intended recipient or have
>>> received this e-mail in error, please inform the sender immediately and
>>> delete this e-mail (including any attachments) from your computer, and you
>>> must not use, disclose to anyone else or copy this e-mail (including any
>>> attachments), whether in whole or in part.
>>> This e-mail and any reply to it may be monitored for security, legal,
>>> regulatory compliance and/or other appropriate reasons.
>> 
> 
> 
> --
> CONFIDENTIALITY NOTICE 
> This e-mail (including any attachments) may contain confidential and/or 
> privileged information. If you are not the intended recipient or have 
> received this e-mail in error, please inform the sender immediately and 
> delete this e-mail (including any attachments) from your computer, and you 
> must not use, disclose to anyone else or copy this e-mail (including any 
> attachments), whether in whole or in part. 
> This e-mail and any reply to it may be monitored for security, legal, 
> regulatory compliance and/or other appropriate reasons.



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 products as well.
To the extreme case, they were thinking of displaying the results tobe 
in such order

Supplier A product
Supplier B product
Supplier C product
Supplier A product
Supplier B product
Supplier C product
...

Theyare alright with implementing this logic tothe first page only 
andsubsequent pages will be as per current logic if it is not possible 
to implement it to the entire search result.


Will take a lookat Collapse and Expandto seeif it can help.

On 11/28/2016 6:04 PM, Alexandre Rafalovitch wrote:

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 would have to have a slightly different interface to do
this effectively. And, most likely, using Collapse and Expand:
https://cwiki.apache.org/confluence/display/solr/Collapse+and+Expand+Results
.

Regards,
Alex.

http://www.solr-start.com/ - Resources for Solr users, new and experienced


On 28 November 2016 at 20:09, Derek Poh  wrote:

Hi

We have a business requirement to breakupa supplier's products from
dominating search resultso as to allow othersuppliers' products in the
search result to have exposure.
Business users are open to implementing this for the first page of the
search resultif it is not possible to apply tothe entire search result.

 From the sample keywords users have provided, I also discovered thatmost of
the time a supplier's products that are listed consecutively in the result
all have the same score.

Any advice/suggestions on how I cando it?

Please let me know if more information is require. Thank you.

Derek

--
CONFIDENTIALITY NOTICE
This e-mail (including any attachments) may contain confidential and/or
privileged information. If you are not the intended recipient or have
received this e-mail in error, please inform the sender immediately and
delete this e-mail (including any attachments) from your computer, and you
must not use, disclose to anyone else or copy this e-mail (including any
attachments), whether in whole or in part.
This e-mail and any reply to it may be monitored for security, legal,
regulatory compliance and/or other appropriate reasons.





--
CONFIDENTIALITY NOTICE 

This e-mail (including any attachments) may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please inform the sender immediately and delete this e-mail (including any attachments) from your computer, and you must not use, disclose to anyone else or copy this e-mail (including any attachments), whether in whole or in part. 


This e-mail and any reply to it may be monitored for security, legal, 
regulatory compliance and/or other appropriate reasons.

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-start.com/ - Resources for Solr users, new and experienced


On 29 November 2016 at 00:48, Shalin Shekhar Mangar
 wrote:
> 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 products from
>> dominating search resultso as to allow othersuppliers' products in the
>> search result to have exposure.
>> Business users are open to implementing this for the first page of the
>> search resultif it is not possible to apply tothe entire search result.
>>
>> From the sample keywords users have provided, I also discovered thatmost of
>> the time a supplier's products that are listed consecutively in the result
>> all have the same score.
>>
>> Any advice/suggestions on how I cando it?
>>
>> Please let me know if more information is require. Thank you.
>>
>> Derek
>>
>> --
>> CONFIDENTIALITY NOTICE
>> This e-mail (including any attachments) may contain confidential and/or
>> privileged information. If you are not the intended recipient or have
>> received this e-mail in error, please inform the sender immediately and
>> delete this e-mail (including any attachments) from your computer, and you
>> must not use, disclose to anyone else or copy this e-mail (including any
>> attachments), whether in whole or in part.
>> This e-mail and any reply to it may be monitored for security, legal,
>> regulatory compliance and/or other appropriate reasons.
>
>
>
> --
> Regards,
> Shalin Shekhar Mangar.


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 products from
> dominating search resultso as to allow othersuppliers' products in the
> search result to have exposure.
> Business users are open to implementing this for the first page of the
> search resultif it is not possible to apply tothe entire search result.
>
> From the sample keywords users have provided, I also discovered thatmost of
> the time a supplier's products that are listed consecutively in the result
> all have the same score.
>
> Any advice/suggestions on how I cando it?
>
> Please let me know if more information is require. Thank you.
>
> Derek
>
> --
> CONFIDENTIALITY NOTICE
> This e-mail (including any attachments) may contain confidential and/or
> privileged information. If you are not the intended recipient or have
> received this e-mail in error, please inform the sender immediately and
> delete this e-mail (including any attachments) from your computer, and you
> must not use, disclose to anyone else or copy this e-mail (including any
> attachments), whether in whole or in part.
> This e-mail and any reply to it may be monitored for security, legal,
> regulatory compliance and/or other appropriate reasons.



-- 
Regards,
Shalin Shekhar Mangar.


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 would have to have a slightly different interface to do
this effectively. And, most likely, using Collapse and Expand:
https://cwiki.apache.org/confluence/display/solr/Collapse+and+Expand+Results
.

Regards,
   Alex.

http://www.solr-start.com/ - Resources for Solr users, new and experienced


On 28 November 2016 at 20:09, Derek Poh  wrote:
> Hi
>
> We have a business requirement to breakupa supplier's products from
> dominating search resultso as to allow othersuppliers' products in the
> search result to have exposure.
> Business users are open to implementing this for the first page of the
> search resultif it is not possible to apply tothe entire search result.
>
> From the sample keywords users have provided, I also discovered thatmost of
> the time a supplier's products that are listed consecutively in the result
> all have the same score.
>
> Any advice/suggestions on how I cando it?
>
> Please let me know if more information is require. Thank you.
>
> Derek
>
> --
> CONFIDENTIALITY NOTICE
> This e-mail (including any attachments) may contain confidential and/or
> privileged information. If you are not the intended recipient or have
> received this e-mail in error, please inform the sender immediately and
> delete this e-mail (including any attachments) from your computer, and you
> must not use, disclose to anyone else or copy this e-mail (including any
> attachments), whether in whole or in part.
> This e-mail and any reply to it may be monitored for security, legal,
> regulatory compliance and/or other appropriate reasons.


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

2016-11-28 Thread Derek Poh

Hi

We have a business requirement to breakupa supplier's products from 
dominating search resultso as to allow othersuppliers' products in the 
search result to have exposure.
Business users are open to implementing this for the first page of the 
search resultif it is not possible to apply tothe entire search result.


From the sample keywords users have provided, I also discovered thatmost 
of the time a supplier's products that are listed consecutively in the 
result all have the same score.


Any advice/suggestions on how I cando it?

Please let me know if more information is require. Thank you.

Derek

--
CONFIDENTIALITY NOTICE 

This e-mail (including any attachments) may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please inform the sender immediately and delete this e-mail (including any attachments) from your computer, and you must not use, disclose to anyone else or copy this e-mail (including any attachments), whether in whole or in part. 


This e-mail and any reply to it may be monitored for security, legal, 
regulatory compliance and/or other appropriate reasons.