Package com.liferay.portal.kernel.search
Class HitsImpl
Object
com.liferay.portal.kernel.search.HitsImpl
- All Implemented Interfaces:
Hits
,Serializable
- Author:
- Brian Wing Shun Chan, Bruno Farache
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addGroupedHits
(String groupValue, Hits hits) void
addStatsResults
(StatsResults statsResults) void
doc
(int n) Document[]
getDocs()
int
getQuery()
String[]
String[]
float[]
float
String[]
long
getStart()
boolean
float
score
(int n) void
setCollatedSpellCheckResult
(String collatedSpellCheckResult) void
void
setLength
(int length) void
void
setQuerySuggestions
(String[] querySuggestions) void
setQueryTerms
(String[] queryTerms) void
setScores
(float[] scores) void
setSearchTime
(float time) void
setSnippets
(String[] snippets) void
setSpellCheckResults
(Map<String, List<String>> spellCheckResults) void
setStart
(long start) snippet
(int n) toList()
toString()
-
Constructor Details
-
HitsImpl
public HitsImpl()
-
-
Method Details
-
addGroupedHits
- Specified by:
addGroupedHits
in interfaceHits
-
addStatsResults
- Specified by:
addStatsResults
in interfaceHits
-
copy
-
doc
-
getCollatedSpellCheckResult
- Specified by:
getCollatedSpellCheckResult
in interfaceHits
-
getDocs
-
getGroupedHits
- Specified by:
getGroupedHits
in interfaceHits
-
getLength
public int getLength() -
getQuery
-
getQuerySuggestions
- Specified by:
getQuerySuggestions
in interfaceHits
-
getQueryTerms
- Specified by:
getQueryTerms
in interfaceHits
-
getScores
-
getSearchTime
public float getSearchTime()- Specified by:
getSearchTime
in interfaceHits
-
getSnippets
- Specified by:
getSnippets
in interfaceHits
-
getSpellCheckResults
- Specified by:
getSpellCheckResults
in interfaceHits
-
getStart
public long getStart() -
getStatsResults
- Specified by:
getStatsResults
in interfaceHits
-
hasGroupedHits
public boolean hasGroupedHits()- Specified by:
hasGroupedHits
in interfaceHits
-
score
public float score(int n) -
setCollatedSpellCheckResult
- Specified by:
setCollatedSpellCheckResult
in interfaceHits
-
setDocs
-
setLength
public void setLength(int length) -
setQuery
-
setQuerySuggestions
- Specified by:
setQuerySuggestions
in interfaceHits
-
setQueryTerms
- Specified by:
setQueryTerms
in interfaceHits
-
setScores
public void setScores(float[] scores) -
setSearchTime
public void setSearchTime(float time) - Specified by:
setSearchTime
in interfaceHits
-
setSnippets
- Specified by:
setSnippets
in interfaceHits
-
setSpellCheckResults
- Specified by:
setSpellCheckResults
in interfaceHits
-
setStart
public void setStart(long start) -
snippet
-
toList
-
toString
-