This commit is contained in:
Ben Bosman
2019-10-03 13:12:52 +02:00
parent b1f31cef9c
commit bc38bcdc86

View File

@@ -53,6 +53,13 @@ public class DiscoveryConfiguration implements InitializingBean {
private boolean spellCheckEnabled; private boolean spellCheckEnabled;
private boolean indexAlways = false; private boolean indexAlways = false;
/**
* The `indexAlways` property determines whether the configuration should always be included when indexing items.
* The default value is false which implies the configuration is only used when it matches the collection or if
* it's the default configuration
* When set to true, the configuration is also used to index an item without a specific collection mapping
* This can be used for displaying different facets depending on the type of item instead of the collection
*/
public boolean isIndexAlways() { public boolean isIndexAlways() {
return indexAlways; return indexAlways;
} }