Package lumis.search

Class SearchHit


  • @Deprecated
    @StableMinor(version="15.0",
                 sinceVersion="4.0")
    public abstract class SearchHit
    extends java.lang.Object
    Deprecated.
    Since 8.1.0, lumis.search was replaced by lumis.portal.bigdata.
    An item of a SearchResults object. It represents an indexed information that match a query that was executed.

    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: 25304 $ $Date: 2022-10-22 22:51:05 -0300 (Sat, 22 Oct 2022) $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected SearchAttributes attributes
      Deprecated.
       
      protected float rank
      Deprecated.
       
      protected java.lang.String snippet
      Deprecated.
       
      protected java.lang.String subtitle
      Deprecated.
       
      protected java.lang.String title
      Deprecated.
       
      protected java.lang.String url
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      SearchHit()
      Deprecated.
      Constructs an instance with null URL, title and subtitle predefined fields.
      SearchHit​(java.lang.String url, java.lang.String title, java.lang.String subtitle)
      Deprecated.
      Constructs an instance with the given URL, title and subtitle predefined fields.