UseCase "Manage querying indexes"
Component1261227271
Jump to navigation
Jump to search
|
Content
IsCarriedOutBy SearchEngineer
DataspectsMainAPI < Sinatra::Base
contains several endpoints.
Endpoint post '/_search'
- gets local config
- gets request params
- loads local plugins
- 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
.