protected static class QueryElevationComponent.Elevation extends Object
Modifier and Type | Field and Description |
---|---|
Set<BytesRef> |
elevatedIds |
Set<BytesRef> |
excludedIds |
TermQuery[] |
excludeQueries |
BooleanQuery |
includeQuery |
Modifier | Constructor and Description |
---|---|
protected |
Elevation(Set<BytesRef> elevatedIds,
BooleanQuery includeQuery,
Set<BytesRef> excludedIds,
TermQuery[] excludeQueries) |
|
Elevation(Set<BytesRef> elevatedIds,
Set<BytesRef> excludedIds,
String queryFieldName)
Constructs an elevation.
|
Modifier and Type | Method and Description |
---|---|
protected QueryElevationComponent.Elevation |
mergeWith(QueryElevationComponent.Elevation elevation)
Merges this
QueryElevationComponent.Elevation with another and creates a new QueryElevationComponent.Elevation . |
String |
toString() |
public final BooleanQuery includeQuery
public final TermQuery[] excludeQueries
public Elevation(Set<BytesRef> elevatedIds, Set<BytesRef> excludedIds, String queryFieldName)
elevatedIds
- The ids of the elevated documents that should appear on top of search results, in configured order;
can be null
.excludedIds
- The ids of the excluded documents that should not appear in search results; can be null
.queryFieldName
- The field name to use to create query terms.protected QueryElevationComponent.Elevation mergeWith(QueryElevationComponent.Elevation elevation)
QueryElevationComponent.Elevation
with another and creates a new QueryElevationComponent.Elevation
.null
.Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.