summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/resources/configdefinitions/strict-contracts.def
blob: f7af59792ae4055acd10db76a5b1d6960a9b51fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
version=2
namespace=search.federation

## A config to control whether to activate strict adherence to public contracts
## in the container. Usually, the container tries to do a best effort of hiding
## some undesirable effects of the the public contracts. Modifying this config
## signals the basic contract is sufficient, and allows the container to
## activate optimizations based on this knowledge.

## Strict contracts for search chains, do not clone the query if it at all
## can be construed to be unnecessary.
searchchains bool default=false

# WARNING: Beta feature, might be removed soon.
# Propagate source.(sourceName).{QueryProperties.PER_SOURCE_QUERY_PROPERTIES} and
#           provider.(providerName).{QueryProperties.PER_SOURCE_QUERY_PROPERTIES}
# to the outgoing query.
# All means all in QueryProperties.PER_SOURCE_QUERY_PROPERTIES
# OFFSET_HITS means  {Query.HITS, Query.OFFSET}
# NONE means {}
propagateSourceProperties enum {ALL, OFFSET_HITS, NONE} default=ALL