Class QueryElevationComponent.Elevation
java.lang.Object
org.apache.solr.handler.component.QueryElevationComponent.Elevation
- Enclosing class:
QueryElevationComponent
Elevation of some documents in search results, with potential exclusion of others. Immutable.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionElevation(Set<org.apache.lucene.util.BytesRef> elevatedIds, Set<org.apache.lucene.util.BytesRef> excludedIds, String queryFieldName) Constructs an elevation.protectedElevation(Set<org.apache.lucene.util.BytesRef> elevatedIds, org.apache.lucene.search.BooleanQuery includeQuery, Set<org.apache.lucene.util.BytesRef> excludedIds, org.apache.lucene.search.TermQuery[] excludeQueries) -
Method Summary
Modifier and TypeMethodDescriptionprotected QueryElevationComponent.ElevationmergeWith(QueryElevationComponent.Elevation elevation) Merges thisQueryElevationComponent.Elevationwith another and creates a newQueryElevationComponent.Elevation.toString()
-
Field Details
-
elevatedIds
-
includeQuery
public final org.apache.lucene.search.BooleanQuery includeQuery -
excludedIds
-
excludeQueries
public final org.apache.lucene.search.TermQuery[] excludeQueries
-
-
Constructor Details
-
Elevation
public Elevation(Set<org.apache.lucene.util.BytesRef> elevatedIds, Set<org.apache.lucene.util.BytesRef> excludedIds, String queryFieldName) Constructs an elevation.- Parameters:
elevatedIds- The ids of the elevated documents that should appear on top of search results, in configured order; can benull.excludedIds- The ids of the excluded documents that should not appear in search results; can benull.queryFieldName- The field name to use to create query terms.
-
Elevation
-
-
Method Details
-
mergeWith
Merges thisQueryElevationComponent.Elevationwith another and creates a newQueryElevationComponent.Elevation.- Returns:
- A new instance containing the merging of the two elevations; or directly this
elevation if the other is
null.
-
toString
-