Class QueryElevationComponent.ElevationBuilder
- java.lang.Object
-
- org.apache.solr.handler.component.QueryElevationComponent.ElevationBuilder
-
- Enclosing class:
- QueryElevationComponent
public class QueryElevationComponent.ElevationBuilder extends Object
Builds anQueryElevationComponent.Elevation
. This class is used to start defining query elevations, but allowing the merge of multiple elevations for the same query.
-
-
Constructor Summary
Constructors Constructor Description ElevationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryElevationComponent.ElevationBuilder
addElevatedIds(List<String> ids)
QueryElevationComponent.ElevationBuilder
addExcludedIds(Collection<String> ids)
QueryElevationComponent.Elevation
build()
QueryElevationComponent.ElevationBuilder
merge(QueryElevationComponent.ElevationBuilder elevationBuilder)
org.apache.lucene.util.BytesRef
toBytesRef(String id)
-
-
-
Method Detail
-
addElevatedIds
public QueryElevationComponent.ElevationBuilder addElevatedIds(List<String> ids)
-
addExcludedIds
public QueryElevationComponent.ElevationBuilder addExcludedIds(Collection<String> ids)
-
toBytesRef
public org.apache.lucene.util.BytesRef toBytesRef(String id)
-
merge
public QueryElevationComponent.ElevationBuilder merge(QueryElevationComponent.ElevationBuilder elevationBuilder)
-
build
public QueryElevationComponent.Elevation build()
-
-