This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit c869d772 authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

Verbesserungen Suche: Es werden am Anfang im MetaDatenRepository _alle_

Metadaten geladen und an der Oberfläche die Suche ausgelöst, sobald
Eingaben da sind (nicht nur Volltext)
parent 681470ee
Branches
2 merge requests!17Initial Merge to Prepare Release 1.0.0,!1Resolve "Metadaten konsolideren"
......@@ -153,6 +153,9 @@ public class MetaDataRepository {
reloadedCachedCompletions.put(SearchRepositoryConstants.METADATA_PROGRAMMING_LANGUAGES, new TreeMap<>());
SearchRequest searchRequest = new SearchRequest(SearchRepositoryConstants.INDEX_METADATA);
SearchSourceBuilder sourceBuilder = new SearchSourceBuilder().size(1000).from(0);
searchRequest.source(sourceBuilder);
SearchResponse searchResponse = elasticsearchClient.search(searchRequest, RequestOptions.DEFAULT);
ObjectMapper objectMapper = new ObjectMapper();
......
......@@ -34,7 +34,7 @@ export class MockSearchComponent implements OnInit {
}
private search(): void {
if (this.searchInput.fulltextQuery) {
if (this.searchInput.fulltextQuery || this.searchInput.metadata.programmingLanguage || this.searchInput.metadata.keyword || this.searchInput.metadata.author || this.searchInput.metadata.license) {
this.searchService.searchPageDetails(this.searchInput).subscribe(
(data: SearchResultsDTO) => {
const searchResults = this.parseSearchResultsDTO(data);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment