Skip to content

Commit faaa6ec

Browse files
committed
Improve default result ordering
1 parent 7d58ff1 commit faaa6ec

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/FairDOElasticSearch.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ export function FairDOElasticSearch({
115115
view={(props) => (
116116
<div>
117117
Showing {props.start} -{props.end} out of {props.totalResults}
118-
{props.searchTerm && ` - Searching for "${props.searchTerm}"`}
119118
</div>
120119
)}
121120
/>

src/stories/FairDOElasticSearch.stories.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ const demoConfig3: FairDOConfig = {
9494
],
9595
initialState: {
9696
sortList: [
97+
{
98+
field: "_score",
99+
direction: "desc"
100+
},
97101
{
98102
field: "name.keyword",
99103
direction: "asc"

0 commit comments

Comments
 (0)