Skip to content
Prev Previous commit
Next Next commit
Improve search ranking
  • Loading branch information
joepio committed Feb 28, 2021
commit 250db34832b2a7a94e8812aaa2aba36057c0c0b0
2 changes: 1 addition & 1 deletion src/helpers/useSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function constructIndex(store: Store): SearchIndex {
return '';
}
// QuickScore can't handle URLs as keys, so I serialize all values of propvals to a single string. https://github.com/fwextensions/quick-score/issues/11
const propvalsString = JSON.stringify(Array.from(resource.getPropVals().values()).sort().join('\n'));
const propvalsString = JSON.stringify(Array.from(resource.getPropVals().values()).sort().join(' \n '));
const searchResource: FoundResource = {
subject: resource.getSubject(),
valuesArray: propvalsString,
Expand Down