Class SearchResultItem

java.lang.Object
org.craftercms.studio.model.search.SearchResultItem

public class SearchResultItem extends Object
Holds the data of a single search result
Author:
joseross
  • Field Details

    • path

      protected String path
      The path of the file
    • name

      protected String name
      The name of the item
    • type

      protected String type
      The type of the file
    • mimeType

      protected String mimeType
      The mime type of the file
    • previewUrl

      protected String previewUrl
      The preview URL of the file
    • lastModifier

      protected String lastModifier
      The last user that modified the file
    • lastModified

      protected Instant lastModified
      The last date that the file was modified
    • size

      protected long size
      The size of the file, in bytes
    • snippets

      protected List<String> snippets
      Snippets relevant to the search query
    • additionalFields

      protected Map<String,Object> additionalFields
      Additional fields requested
  • Constructor Details

    • SearchResultItem

      public SearchResultItem()
  • Method Details

    • getPath

      public String getPath()
    • setPath

      public void setPath(String path)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getMimeType

      public String getMimeType()
    • setMimeType

      public void setMimeType(String mimeType)
    • getPreviewUrl

      public String getPreviewUrl()
    • setPreviewUrl

      public void setPreviewUrl(String previewUrl)
    • getLastModifier

      public String getLastModifier()
    • setLastModifier

      public void setLastModifier(String lastModifier)
    • getLastModified

      public Instant getLastModified()
    • setLastModified

      public void setLastModified(Instant lastModified)
    • getSize

      public long getSize()
    • setSize

      public void setSize(long size)
    • getSnippets

      public List<String> getSnippets()
    • setSnippets

      public void setSnippets(List<String> snippets)
    • getAdditionalFields

      public Map<String,Object> getAdditionalFields()
    • setAdditionalFields

      public void setAdditionalFields(Map<String,Object> additionalFields)