Replace space by +
This commit is contained in:
parent
9347c36883
commit
1b2c44eb83
@ -20,7 +20,7 @@ export class AppComponent {
|
||||
if ( this.searchInput.length > 0 ) {
|
||||
this.displayOverlay = true;
|
||||
|
||||
this.http.get( environment.baseUrl + this.searchInput ).subscribe( ( data: [{ url: string, tfidf: string }] ) => {
|
||||
this.http.get( environment.baseUrl + this.searchInput.replace( ' ', '+' ) ).subscribe( ( data: [ { url: string, tfidf: string } ] ) => {
|
||||
this.results = data;
|
||||
this.results.sort( ( f, s ) => {
|
||||
if ( parseFloat( f.tfidf ) > parseFloat( s.tfidf ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user