[
https://issues.apache.org/jira/browse/SOLR-11982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16370495#comment-16370495
]
Erick Erickson commented on SOLR-11982:
---------------------------------------
[~emaijala] Is this bit a typo in the docs? Shouldn't it be
"preferReplicaTypes=PULL,TLOG" rather than "preferLocalShards"???
Solr allows you to pass an optional string parameter named `preferReplicaTypes`
to indicate that a distributed query should prefer replicas of given types when
available. In other words, if a query includes e.g.
`*preferLocalShards*=PULL,TLOG`,...
[~cpoerschke] One trick for whitespace bits if you use IntelliJ is to
> apply the patch
> command-9 to show local changes
> bring the context menu up on the first one and select diff...
> up in the upper left there's a drop-down and one of the choices is "ignore
> whitespace/newlines" or something like that.
I agree though it's better to not reformat lots of whitespace....
Also, one option in IntelliJ that should be clicked is to auto-format only
lines changed. There's an option somewhere in the IntelliJ preferences to
insure this....
> Add support for preferReplicaTypes parameter
> --------------------------------------------
>
> Key: SOLR-11982
> URL: https://issues.apache.org/jira/browse/SOLR-11982
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: SolrCloud
> Affects Versions: master (8.0), 7.3
> Reporter: Ere Maijala
> Priority: Minor
> Labels: patch-available, patch-with-test
> Attachments: SOLR-11982.patch
>
>
> It would be nice to have the possibility to easily prefer certain replica
> types in a similar fashion to preferLocalShards. I'll be coming up with a
> patch that allows one to specify e.g. preferReplicaTypes=PULL,TLOG which
> would mean that NRT replicas wouldn't be hit with queries unless they're the
> only ones available.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]