Replace space by +
This commit is contained in:
		@@ -20,7 +20,7 @@ export class AppComponent {
 | 
				
			|||||||
    if ( this.searchInput.length > 0 ) {
 | 
					    if ( this.searchInput.length > 0 ) {
 | 
				
			||||||
      this.displayOverlay = true;
 | 
					      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 = data;
 | 
				
			||||||
        this.results.sort( ( f, s ) => {
 | 
					        this.results.sort( ( f, s ) => {
 | 
				
			||||||
          if ( parseFloat( f.tfidf ) > parseFloat( s.tfidf ) ) {
 | 
					          if ( parseFloat( f.tfidf ) > parseFloat( s.tfidf ) ) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user