UseCase "Manage querying indexes"

From SMW CindyKate - Main
Component1261227271
Jump to: navigation, search

Content

IsCarriedOutBy SearchEngineer

DataspectsMainAPI < Sinatra::Base contains several endpoints.

Endpoint post '/_search'

  1. gets local config
  2. gets request params
  3. loads local plugins
  4. instantiates a Dataspects::SearchRequest and returns its .html
Dataspects::SearchRequest.html returns
#{aHtml.join()}

aHtml = oRFTIF.aOf_html_searchResults

oRFTIF.aOf_html_searchResults gets aElasticsearchHits from ElasticsearchQueries.aElasticsearchHits_standardSearch and passes each aElasticsearchHits to HTMLComponents.html_individualSearchResult and returns aSearchResultsItems.join()

HTMLComponents.html_individualSearchResult gets direct oElasticsearchHit fields and @oElasticsearchHitAnnotations = ElasticsearchHitAnnotations.new(@hHit['_source']['HasEntityAnnotations']). It places a oElasticsearchHit.htmlEntityAnnotationsTable which is @oElasticsearchHitAnnotations.htmlEntityAnnotationsTable.

@oElasticsearchHitAnnotations