app/react/SemanticSearch/components/specs/__snapshots__/DocumentResults.spec.js.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`DocumentResults render should render results summary and snippets above threshold in SnippetsList 1`] = `
<Fragment>
<div
className="view"
>
<div
className="item-info"
>
<div>
<Icon
className="item-icon item-icon-center"
/>
<h1
className="item-name"
>
<Connect(DocumentLanguage)
doc={
Immutable.Map {
"semanticSearch": Immutable.Map {
"results": Immutable.List [
Immutable.Map {
"score": 0.6,
"text": "bio two",
"page": "bio",
},
Immutable.Map {
"score": 0.5,
"text": "page one",
"page": "1",
},
Immutable.Map {
"score": 0.2,
"text": "page two",
"page": "2",
},
Immutable.Map {
"score": 0.1,
"text": "bio one",
"page": "bio",
},
],
"relevantRate": 0.5,
"numRelevant": 2,
"totalResults": 4,
},
"avgScore": 0.4,
}
}
/>
</h1>
</div>
<Connect(TemplateLabel) />
</div>
<dl
className="metadata-type-text"
>
<dt
className="item-header"
>
<Connect(Translate)>
Threshold
</Connect(Translate)>
30.00
%
</dt>
<dd>
<Connect(Form)
model="semanticSearch.resultsFilters"
>
<NumericRangeSlide
delay={200}
max={1}
maxLabel="Precision"
min={0.3}
minLabel="Exploration"
model=".threshold"
step={0.01}
/>
</Connect(Form)>
</dd>
</dl>
<dl
className="metadata-type-numeric"
>
<dt>
<Connect(Translate)>
Number of sentences above threshold
</Connect(Translate)>
</dt>
<dd>
2
</dd>
</dl>
<dl
className="metadata-type-numeric"
>
<dt>
<Connect(Translate)>
% of sentences above threshold
</Connect(Translate)>
</dt>
<dd>
50.00
%
</dd>
</dl>
</div>
<Connect(SnippetList)
doc={
Immutable.Map {
"semanticSearch": Immutable.Map {
"results": Immutable.List [
Immutable.Map {
"score": 0.6,
"text": "bio two",
"page": "bio",
},
Immutable.Map {
"score": 0.5,
"text": "page one",
"page": "1",
},
Immutable.Map {
"score": 0.2,
"text": "page two",
"page": "2",
},
Immutable.Map {
"score": 0.1,
"text": "bio one",
"page": "bio",
},
],
"relevantRate": 0.5,
"numRelevant": 2,
"totalResults": 4,
},
"avgScore": 0.4,
}
}
documentViewUrl="/entity/undefined"
searchTerm=""
selectSnippet={[Function]}
snippets={
Immutable.Map {
"count": 2,
"metadata": Immutable.List [
Immutable.Map {
"field": "Biography",
"texts": Immutable.List [
"bio two (60.00%)",
],
},
],
"fullText": Immutable.List [
Immutable.Map {
"page": 1,
"text": "page one (50.00%)",
},
],
}
}
/>
</Fragment>
`;