public class SolrResultPage<T> extends org.springframework.data.domain.PageImpl<T> implements FacetPage<T>, HighlightPage<T>, FacetAndHighlightPage<T>, ScoredPage<T>, GroupPage<T>, StatsPage<T>, SpellcheckedPage<T>
SpellcheckQueryResult.Alternative
Constructor and Description |
---|
SolrResultPage(List<T> content) |
SolrResultPage(List<T> content,
org.springframework.data.domain.Pageable pageable,
long total,
Float maxScore) |
Modifier and Type | Method and Description |
---|---|
void |
addAllFacetFieldResultPages(Map<Field,org.springframework.data.domain.Page<FacetFieldEntry>> pageMap) |
void |
addAllFacetPivotFieldResult(Map<PivotField,List<FacetPivotFieldEntry>> resultMap) |
void |
addAllRangeFacetFieldResultPages(Map<Field,org.springframework.data.domain.Page<FacetFieldEntry>> pageMap) |
void |
addFacetPivotResultPage(List<FacetPivotFieldEntry> result,
PivotField field) |
void |
addFacetResultPage(org.springframework.data.domain.Page<FacetFieldEntry> page,
Field field) |
void |
addRangeFacetResultPage(org.springframework.data.domain.Page<FacetFieldEntry> page,
Field field) |
void |
addSuggestions(String term,
List<SpellcheckQueryResult.Alternative> suggestions) |
Collection<org.springframework.data.domain.Page<? extends FacetEntry>> |
getAllFacets() |
Collection<SpellcheckQueryResult.Alternative> |
getAlternatives()
Get all
SpellcheckQueryResult.Alternative s; |
Collection<SpellcheckQueryResult.Alternative> |
getAlternatives(String term)
Get the
SpellcheckQueryResult.Alternative s for a given term. |
protected <U> List<U> |
getConvertedContent(Function<? super T,? extends U> arg0) |
Collection<Field> |
getFacetFields()
Get Fields contained in Result.
|
Collection<PivotField> |
getFacetPivotFields()
Get Pivot Fields contained in Result.
|
org.springframework.data.domain.Page<FacetQueryEntry> |
getFacetQueryResult() |
org.springframework.data.domain.Page<FacetFieldEntry> |
getFacetResultPage(Field field)
Get Facet results for field with given field
|
org.springframework.data.domain.Page<FacetFieldEntry> |
getFacetResultPage(String fieldname)
Get Facet results for field with given name
|
Collection<org.springframework.data.domain.Page<FacetFieldEntry>> |
getFacetResultPages() |
FieldStatsResult |
getFieldStatsResult(Field field)
Get the stats result done for the given
Field . |
FieldStatsResult |
getFieldStatsResult(String fieldName)
Get the stats result done for the field with the given fieldName.
|
Map<String,FieldStatsResult> |
getFieldStatsResults()
Get all field stats results for this page.
|
GroupResult<T> |
getGroupResult(Field field)
Get a group result done for the given
Field . |
GroupResult<T> |
getGroupResult(Function function)
Get a group result done for the given
Function . |
GroupResult<T> |
getGroupResult(Query query)
Get a group result done for the given
Query . |
GroupResult<T> |
getGroupResult(String name)
Get a group result with the given name.
|
List<HighlightEntry<T>> |
getHighlighted() |
List<HighlightEntry.Highlight> |
getHighlights(T entity) |
Float |
getMaxScore()
Returns the scoring of the topmost document (max score).
|
List<FacetPivotFieldEntry> |
getPivot(PivotField field)
Get Facet Pivot results for fields with given fields.
|
List<FacetPivotFieldEntry> |
getPivot(String fieldName)
Get Facet Pivot results for fields with given fields.
|
org.springframework.data.domain.Page<FacetFieldEntry> |
getRangeFacetResultPage(Field field)
Get Range Facet results for a given field with given name
|
org.springframework.data.domain.Page<FacetFieldEntry> |
getRangeFacetResultPage(String fieldname)
Get Range Facet results for field with given name
|
Collection<String> |
getSuggestions()
Get all suggestions.
|
Collection<String> |
getSuggestions(String term)
Get the suggestions for a given term.
|
void |
setFacetQueryResultPage(List<FacetQueryEntry> facetQueryResult) |
void |
setFieldStatsResults(Map<String,FieldStatsResult> fieldStatsResults) |
void |
setGroupResults(Map<Object,GroupResult<T>> groupResults) |
void |
setHighlighted(List<HighlightEntry<T>> highlighted) |
equals, getTotalElements, getTotalPages, hashCode, hasNext, isLast, map, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
empty, empty, getTotalElements, getTotalPages, map
getContent, getNumber, getNumberOfElements, getPageable, getSize, getSort, hasContent, hasNext, hasPrevious, isFirst, isLast, nextPageable, previousPageable
filter, flatMap, of, of, of, stream
forEach, iterator, spliterator
public final org.springframework.data.domain.Page<FacetFieldEntry> getFacetResultPage(String fieldname)
FacetQueryResult
getFacetResultPage
in interface FacetQueryResult<T>
fieldname
- must not be null.public final org.springframework.data.domain.Page<FacetFieldEntry> getRangeFacetResultPage(String fieldname)
FacetQueryResult
getRangeFacetResultPage
in interface FacetQueryResult<T>
fieldname
- field name (must not be null)public final org.springframework.data.domain.Page<FacetFieldEntry> getFacetResultPage(Field field)
FacetQueryResult
getFacetResultPage
in interface FacetQueryResult<T>
public final org.springframework.data.domain.Page<FacetFieldEntry> getRangeFacetResultPage(Field field)
FacetQueryResult
getRangeFacetResultPage
in interface FacetQueryResult<T>
public List<FacetPivotFieldEntry> getPivot(String fieldName)
FacetQueryResult
getPivot
in interface FacetQueryResult<T>
public List<FacetPivotFieldEntry> getPivot(PivotField field)
FacetQueryResult
getPivot
in interface FacetQueryResult<T>
public final void addFacetResultPage(org.springframework.data.domain.Page<FacetFieldEntry> page, Field field)
public final void addRangeFacetResultPage(org.springframework.data.domain.Page<FacetFieldEntry> page, Field field)
page
- field
- public final void addFacetPivotResultPage(List<FacetPivotFieldEntry> result, PivotField field)
public void addAllFacetFieldResultPages(Map<Field,org.springframework.data.domain.Page<FacetFieldEntry>> pageMap)
public void addAllRangeFacetFieldResultPages(Map<Field,org.springframework.data.domain.Page<FacetFieldEntry>> pageMap)
pageMap
- public void addAllFacetPivotFieldResult(Map<PivotField,List<FacetPivotFieldEntry>> resultMap)
public Collection<org.springframework.data.domain.Page<FacetFieldEntry>> getFacetResultPages()
getFacetResultPages
in interface FacetQueryResult<T>
public final void setFacetQueryResultPage(List<FacetQueryEntry> facetQueryResult)
public org.springframework.data.domain.Page<FacetQueryEntry> getFacetQueryResult()
getFacetQueryResult
in interface FacetQueryResult<T>
public Collection<Field> getFacetFields()
FacetQueryResult
getFacetFields
in interface FacetQueryResult<T>
public Collection<PivotField> getFacetPivotFields()
FacetQueryResult
getFacetPivotFields
in interface FacetQueryResult<T>
public Collection<org.springframework.data.domain.Page<? extends FacetEntry>> getAllFacets()
getAllFacets
in interface FacetQueryResult<T>
public List<HighlightEntry<T>> getHighlighted()
getHighlighted
in interface HighlightQueryResult<T>
public void setHighlighted(List<HighlightEntry<T>> highlighted)
public List<HighlightEntry.Highlight> getHighlights(T entity)
getHighlights
in interface HighlightQueryResult<T>
public void setGroupResults(Map<Object,GroupResult<T>> groupResults)
groupResults
- public Float getMaxScore()
ScoredPage
getMaxScore
in interface ScoredPage<T>
public GroupResult<T> getGroupResult(Field field)
GroupPage
Field
.getGroupResult
in interface GroupPage<T>
public GroupResult<T> getGroupResult(Function function)
GroupPage
Function
.getGroupResult
in interface GroupPage<T>
public GroupResult<T> getGroupResult(Query query)
GroupPage
Query
.getGroupResult
in interface GroupPage<T>
public GroupResult<T> getGroupResult(String name)
GroupPage
getGroupResult
in interface GroupPage<T>
public void setFieldStatsResults(Map<String,FieldStatsResult> fieldStatsResults)
public FieldStatsResult getFieldStatsResult(Field field)
StatsPage
Field
.getFieldStatsResult
in interface StatsPage<T>
public FieldStatsResult getFieldStatsResult(String fieldName)
StatsPage
getFieldStatsResult
in interface StatsPage<T>
public Map<String,FieldStatsResult> getFieldStatsResults()
StatsPage
getFieldStatsResults
in interface StatsPage<T>
public Collection<String> getSuggestions(String term)
SpellcheckQueryResult
getSuggestions
in interface SpellcheckQueryResult
term
- must not be null.public Collection<String> getSuggestions()
SpellcheckQueryResult
getSuggestions
in interface SpellcheckQueryResult
public void addSuggestions(String term, List<SpellcheckQueryResult.Alternative> suggestions)
addSuggestions
in interface SpellcheckQueryResult
public Collection<SpellcheckQueryResult.Alternative> getAlternatives()
SpellcheckQueryResult
SpellcheckQueryResult.Alternative
s;getAlternatives
in interface SpellcheckQueryResult
public Collection<SpellcheckQueryResult.Alternative> getAlternatives(String term)
SpellcheckQueryResult
SpellcheckQueryResult.Alternative
s for a given term.getAlternatives
in interface SpellcheckQueryResult
term
- must not be null.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.