diff --git a/source/components/pages/RulesList.js b/source/components/pages/RulesList.js index d8696630e..dce3a5a08 100644 --- a/source/components/pages/RulesList.js +++ b/source/components/pages/RulesList.js @@ -29,13 +29,17 @@ export class SearchBar extends React.Component { componentWillMount() { var options = { keys: [ + { + name: 'name', + weight: 0.3 + }, { name: 'title', - weight: 0.5 + weight: 0.3 }, { name: 'espace', - weight: 0.3 + weight: 0.2 }, { name: 'description', @@ -44,9 +48,7 @@ export class SearchBar extends React.Component { ] } this.fuse = new Fuse( - rules.map( - pick(['title', 'espace', 'description', 'name', 'dottedName', 'ns']) - ), + rules.map(pick(['title', 'espace', 'description', 'name', 'dottedName'])), options ) } @@ -57,14 +59,17 @@ export class SearchBar extends React.Component { handleChange = selectedOption => { this.setState({ selectedOption }) } - renderOption = ({ title, ns }) => ( + renderOption = ({ title, dottedName }) => ( - - {ns} + + )