Package lumis.search
Class SearchHit
- java.lang.Object
-
- lumis.search.SearchHit
-
@Deprecated @StableMinor(version="14.0", sinceVersion="4.0") public abstract class SearchHit extends Object
Deprecated.Since 8.1.0, lumis.search was replaced by lumis.portal.bigdata.An item of aSearchResults
object. It represents an indexed information that match aquery
that wasexecuted
.A SearchHit object returns some of the predefined fields (Title, Subtitle, URL) of the original indexed information, and the following additional fields:
- Snippet: A snippet of the matched information. For example, a set of sample text intervals that contain the given searched keywords. It can be used to help the user to identify the relevance of the hit in comparison to other search result items;
- Rank: A float number that indicates the relevante of the matched information. It can be used to compare the relevance of different hits.
- Since:
- 4.0.4
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
-
-
Constructor Summary
Constructors Constructor Description SearchHit()
Deprecated.Constructs an instance with null URL, title and subtitle predefined fields.SearchHit(String url, String title, String subtitle)
Deprecated.Constructs an instance with the given URL, title and subtitle predefined fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SearchAttributes
getAttributes()
Deprecated.Returns the hit'sattributes
.String
getParentId()
Deprecated.Returns the identifier of the parent of this hit.float
getRank()
Deprecated.Returns the rank value.SearchContent
getSearchContent()
Deprecated.Returns aSearchContent
object related to the hit, containing allfields
.String
getSnippet()
Deprecated.Returns the snippet value.String
getSubtitle()
Deprecated.Returns the subtitle field value.String
getTitle()
Deprecated.Returns the title field value.String
getUrl()
Deprecated.Returns the URL field value.void
setParentId(String parentId)
Deprecated.Sets the parent identifier of this hit.void
setRank(float rank)
Deprecated.Sets the rank value.void
setSnippet(String snippet)
Deprecated.Sets the the snippet value.void
setSubtitle(String subtitle)
Deprecated.Sets the subtitle field value.void
setTitle(String title)
Deprecated.Sets the title field value.void
setUrl(String url)
Deprecated.Sets the URL field value.
-
-
-
Field Detail
-
url
protected String url
Deprecated.
-
title
protected String title
Deprecated.
-
subtitle
protected String subtitle
Deprecated.
-
snippet
protected String snippet
Deprecated.
-
rank
protected float rank
Deprecated.
-
attributes
protected SearchAttributes attributes
Deprecated.
-
-
Constructor Detail
-
SearchHit
public SearchHit()
Deprecated.Constructs an instance with null URL, title and subtitle predefined fields.- Since:
- 4.0.4
- See Also:
SearchContentField.FIELDNAME_URL
,SearchContentField.FIELDNAME_TITLE
,SearchContentField.FIELDNAME_SUBTITLE
-
SearchHit
public SearchHit(String url, String title, String subtitle)
Deprecated.Constructs an instance with the given URL, title and subtitle predefined fields.- Parameters:
url
- URL field valuetitle
- title fieldsubtitle
- subtitle field- Since:
- 4.0.4
- See Also:
SearchContentField.FIELDNAME_URL
,SearchContentField.FIELDNAME_TITLE
,SearchContentField.FIELDNAME_SUBTITLE
-
-
Method Detail
-
getUrl
public String getUrl()
Deprecated.Returns the URL field value.- Returns:
- URL field value
- Since:
- 4.0.4
- See Also:
SearchContentField.FIELDNAME_URL
-
setUrl
public void setUrl(String url)
Deprecated.Sets the URL field value.- Parameters:
url
- URL field value- Since:
- 4.0.4
- See Also:
SearchContentField.FIELDNAME_URL
-
getTitle
public String getTitle()
Deprecated.Returns the title field value.- Returns:
- title field value
- Since:
- 4.0.4
- See Also:
SearchContentField.FIELDNAME_TITLE
-
setTitle
public void setTitle(String title)
Deprecated.Sets the title field value.- Parameters:
title
- title field value- Since:
- 4.0.4
- See Also:
SearchContentField.FIELDNAME_TITLE
-
getSubtitle
public String getSubtitle()
Deprecated.Returns the subtitle field value.- Returns:
- subtitle field value
- Since:
- 4.0.4
- See Also:
SearchContentField.FIELDNAME_SUBTITLE
-
setSubtitle
public void setSubtitle(String subtitle)
Deprecated.Sets the subtitle field value.- Parameters:
subtitle
- subtitle field value- Since:
- 4.0.4
- See Also:
SearchContentField.FIELDNAME_SUBTITLE
-
getRank
public float getRank()
Deprecated.Returns the rank value.- Returns:
- the rank value
- Since:
- 4.0.4
-
setRank
public void setRank(float rank)
Deprecated.Sets the rank value.- Parameters:
rank
- rank value- Since:
- 4.0.4
-
getSnippet
public String getSnippet()
Deprecated.Returns the snippet value.- Returns:
- the snippet value
- Since:
- 4.0.4
-
setSnippet
public void setSnippet(String snippet)
Deprecated.Sets the the snippet value.- Parameters:
snippet
- snippet value- Since:
- 4.0.4
-
getParentId
public String getParentId()
Deprecated.Returns the identifier of the parent of this hit. When aSearchContent
is indexed, the indexer may divide it into multiple entries. In this case a primary one should be set as the parent of the others.- Returns:
- the identifier of the parent search content, or
null
if this is a primary hit. - Since:
- 4.2.2
-
setParentId
public void setParentId(String parentId)
Deprecated.Sets the parent identifier of this hit.- Parameters:
parentId
- the parent identifier to set.- Since:
- 4.2.2
- See Also:
getParentId()
-
getAttributes
public SearchAttributes getAttributes()
Deprecated.Returns the hit'sattributes
.Attributes contain additional information returned by the search engine in a
query
execution
.- Returns:
- hit's
attributes
- Since:
- 4.0.4
-
getSearchContent
public SearchContent getSearchContent() throws UnsupportedOperationException
Deprecated.Returns aSearchContent
object related to the hit, containing allfields
.Implementations that do not support this operation will throw an
UnsupportedOperationException
.- Returns:
SearchContent
object related to the hit.- Throws:
UnsupportedOperationException
- Since:
- 4.0.4
-
-