Skip to content

Commit

Permalink
Merge pull request #1 from redlink-gmbh/Configurable_Solr_operator
Browse files Browse the repository at this point in the history
Remove hardcoded query operator
  • Loading branch information
markus-ebner authored Feb 7, 2022
2 parents 486339d + 24d275d commit 0c900f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/amsui/src/lib/solr-service/solr.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export abstract class SolrService implements OnDestroy {
protected searchResultsSubscription!: Subscription;
protected solrSearchURL = '';
protected solrSuggestURL = '';
protected operator = 'AND';
protected numOfFound = -1;
protected requestDebounceTime = 500;
protected numberOfResults = 20;
Expand Down Expand Up @@ -184,7 +185,7 @@ export abstract class SolrService implements OnDestroy {

const params = {
q: keyword,
'q.op': 'AND',
'q.op': this.operator,
'json.facet': JSON.stringify(facetConfigObject),
rows: this.numberOfResults,
start: this.offset,
Expand Down

0 comments on commit 0c900f5

Please sign in to comment.