com.gisgraphy.domain.valueobject
Class FulltextResultsDto
java.lang.Object
com.gisgraphy.domain.valueobject.FulltextResultsDto
public class FulltextResultsDto
- extends java.lang.Object
DTO (data transfer object) that contains a list of SolrResponseDto
and other metaData like the maximum score, The time the query has take
- Author:
- David Masclet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FulltextResultsDto
public FulltextResultsDto(org.apache.solr.client.solrj.response.QueryResponse response)
- Parameters:
response
- The QueryResponse
to build the DTO
FulltextResultsDto
public FulltextResultsDto()
- Default Constructor
getResults
public java.util.List<SolrResponseDto> getResults()
- Returns:
- The list of
SolrResponseDto
getNumFound
public long getNumFound()
- Returns:
- the number of results that match the query. It is different from
getResultsSize()
: due to pagination the numFound can be
greater than the value returned by getResultsSize()
getQTime
public int getQTime()
- Returns:
- The execution time in ms
getResultsSize
public int getResultsSize()
- Returns:
- The size of the results. It is different form
numFound
It is different from getResultsSize()
: due to
pagination the numFound can be greater than the value returned by
getResultsSize()
getMaxScore
public java.lang.Float getMaxScore()
- Returns:
- the maxScore
getSuggestionMap
public java.util.Map<java.lang.String,org.apache.solr.client.solrj.response.SpellCheckResponse.Suggestion> getSuggestionMap()
- Returns:
- the suggestionMap<
String
,SpellCheckResponse.Suggestion
> with the
entered searched term as key and a SpellCheckResponse.Suggestion as
value that contains several information (see SolRj javadoc). it
will never return null but an empty map if there is no suggestion
getCollatedResult
public java.lang.String getCollatedResult()
- Returns:
- the collatedResult returned by Solr
getSpellCheckProposal
public java.lang.String getSpellCheckProposal()
- Returns:
- a string for the best proposal for spellChecking
Copyright © 2010. All Rights Reserved.