Ektron Reference


>>Helping Users Navigate Your Web Site > Using Search > Understanding Search Server Controls > SiteSearch Model

SiteSearch Model

The SiteSearch Model's properties are listed in the table below.

You can use the properties with Eval statements to display aspects of content search results. For example, <%# Eval("Summary") %> displays the summary for content being returned by the search. See Also: Displaying Search Results, Data Fields Available to an Eval Statement

Property Fields and description Use with these controls

AdvancedQueryText

See Using the Advanced Query Text Parameter. SiteSearchController
ElapsedTime The time required to execute a search. SiteSearchResultsView

ExactPhrase

Sets an EXACT ORDER relationship among search terms. SiteSearchInputView
Fields
  • Label
  • Name
  • Xpath

Retrieve information from XML Smart Forms. See XMLSearch Server Controls.

 

PageInfo

Display information about search result numbers, such as Displaying results 11 through 20 of 35.

    CurrentPageIndex - current page

    EndCount - number of results found

    NumberOfPages - number of results divided by results per page See Also: EktronUI:Pager

    PageCount - The number of the page being viewed currently

    ResultCount - The number of the results returned for the search terms

IMPORTANT: The result count is only an estimate. The count
becomes more accurate you get closer to the final page.

    ResultsPerPage - number of results displayed per page

    StartCount- one

SiteSearchResultsView

QueryText

String site visitor entered to begin search.

SiteSearchInputView,

SiteSearchResultsView

Results

Fields returned of type SearchResultsData. Display these inside a ListView or Repeater.

  • Date - last edit date
  • Summary - content summary, up to a maximum of 400 characters
  • Title
  • Url
  • Type: Content, forms, managed assets, etc.
    For a full list, enter SiteSearchResultType into the Object Browser.
SiteSearchResultsView

SearchType

  • Advanced
  • Basic
  • None - no search yet
  • XmlSearch
SiteSearchResultsView
State
  • initialized - search has not been run yet
  • no results - no search results were returned
  • search results - search results were returned
SiteSearchResultsView
Suggested Results

Fields returned of type SearchResultsData for Suggested Results. Display inside a ListView or Repeater.

  • Summary - content summary, a maximum of 400 characters
  • Title
  • Url

See Also: Displaying Suggested Results

SiteSearchResultsView
Suggested Spellings

Displays a list of words that are similar to the entered search phrase.

For a sample of using this, open site root\workarea\FrameworkUI\Templates
\Search\SiteSearchResultsView.ascx
and find Eval("SuggestedSpellings").

SiteSearchResultsView

WithAllWords

Sets an AND relationship among search terms. SiteSearchInputView

WithAnyWord

Sets an OR relationship among search terms. SiteSearchInputView

WIthoutWords

Sets a NOT relationship among search terms. SiteSearchInputView

XmlConfigId

Long Integer- If content is an XML Smart Form, the ID of its configuration. See Also: Adding a Smart Form

Ektron Version 8.5, Doc. Rev. 2.0 (Dec. 2011)
Visit the
Ektron Dev Center at http://dev.ektron.com 1–866–4–EKTRON
Ektron Documentation, © 2011 Ektron, Inc.