Add labels to "Relevance" facet in Search.js
@@ -285,7 +285,10 @@ class Search extends React.Component {
const enabled = this.state.searchEnabled;
const message = this.state.message;
-
+ let labels = {
+ "target":"Relevant",
+ "negative": "Irrelevant"
+ }
return (
<div>
{ !enabled ?
@@ -297,7 +300,7 @@ class Search extends React.Component {
<div className="row">
<div className="col-sm-3">
- <RefinementListFilter id="filter_relevance" title="Relevance" field="_type" size={2} operator="OR" />
+ <RefinementListFilter id="filter_relevance" title="Relevance" field="_type" size={2} operator="OR" translations={labels} />
<RefinementListFilter id="filter_domain" title="Domain" field="domain" size={15} operator="OR" />
{/*
<RefinementListFilter id="filter_words" title="Words" field="words" size={5}/>
