Class QueryElevationComponent.Elevation
- java.lang.Object
-
- org.apache.solr.handler.component.QueryElevationComponent.Elevation
-
- Enclosing class:
- QueryElevationComponent
protected static class QueryElevationComponent.Elevation extends Object
Elevation of some documents in search results, with potential exclusion of others.
-
-
Field Summary
Fields Modifier and Type Field Description Set<org.apache.lucene.util.BytesRef>
elevatedIds
Set<org.apache.lucene.util.BytesRef>
excludedIds
org.apache.lucene.search.TermQuery[]
excludeQueries
org.apache.lucene.search.BooleanQuery
includeQuery
-
-
-
Field Detail
-
elevatedIds
public final Set<org.apache.lucene.util.BytesRef> elevatedIds
-
includeQuery
public final org.apache.lucene.search.BooleanQuery includeQuery
-
excludedIds
public final Set<org.apache.lucene.util.BytesRef> excludedIds
-
excludeQueries
public final org.apache.lucene.search.TermQuery[] excludeQueries
-
-
Constructor Detail
-
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; can benull
. In configured order.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.
-
-