Re: Setting preferred replica for query/read

2018-06-10 Thread Zheng Lin Edwin Yeo
Hi Shawn, Thanks for the info. Looking forward to having this functionality in Solr 7.4.0. Regards, Edwin On 9 June 2018 at 23:02, Shawn Heisey wrote: > On 6/9/2018 8:14 AM, Zheng Lin Edwin Yeo wrote: > >> Just to confirm my understanding, if I have 2 replicas, I should set both >> of them to

Re: Setting preferred replica for query/read

2018-06-09 Thread Shawn Heisey
On 6/9/2018 8:14 AM, Zheng Lin Edwin Yeo wrote: Just to confirm my understanding, if I have 2 replicas, I should set both of them to either NRT replicas or TLOG replicas, and not one of each. Then I set one of them to be PULL replica, which will be used for searching? There are multiple possibl

Re: Setting preferred replica for query/read

2018-06-09 Thread Zheng Lin Edwin Yeo
Hi Shawn, Just to confirm my understanding, if I have 2 replicas, I should set both of them to either NRT replicas or TLOG replicas, and not one of each. Then I set one of them to be PULL replica, which will be used for searching? Regards, Edwin On 8 June 2018 at 12:54, Shawn Heisey wrote: > O

Re: Setting preferred replica for query/read

2018-06-07 Thread Shawn Heisey
On 6/7/2018 9:17 PM, Zheng Lin Edwin Yeo wrote: Thanks for your reply. As currently we are looking at having a replica to do indexing, and another replica to be use for searching, these 2 requests looks like it can archive this purpose. Will this be implemented in the Solr 7.4 release? SOLR-1

Re: Setting preferred replica for query/read

2018-06-07 Thread Zheng Lin Edwin Yeo
Hi Ere, Thanks for your reply. As currently we are looking at having a replica to do indexing, and another replica to be use for searching, these 2 requests looks like it can archive this purpose. Will this be implemented in the Solr 7.4 release? Regards, Edwin On 7 June 2018 at 16:00, Ere Ma

Re: Setting preferred replica for query/read

2018-06-07 Thread Ere Maijala
Hi, What I did in SOLR-11982 was meant to be used with replica types. The idea is that you could have a set of NRT replicas used for indexing and a set of PULL replicas used for queries. That's the easiest way to split the work since PULL replicas never do indexing work, and then you can say

Re: Setting preferred replica for query/read

2018-06-04 Thread Zheng Lin Edwin Yeo
Hi, SOLR-8146 has not been updated since January last year, but I have just commented it. So we need both to be updated in order to achieve the full functionality of setting preferred replica for query/read? Currently, is there a way to achieve this by other means? Regards, Edwin On 4 June 2018

Re: Setting preferred replica for query/read

2018-06-04 Thread Ere Maijala
Hi, Well, SOLR-11982 adds server-side support for part of what SOLR-8146 aims to do (shards.preference=replica.location:[something]). It doesn't do regular expressions or snitches at the moment, though it would be easy to add. So, it looks to me like SOLR-8146 would need to be updated in this