diff --git a/CITATION.cff b/CITATION.cff
index 83bfbb734..7a9700856 100644
--- a/CITATION.cff
+++ b/CITATION.cff
@@ -36,5 +36,5 @@ keywords:
- natural language processing
license: MIT
commit: fb80497
-version: 4.0.3
+version: 4.1.2
date-released: '2023-06-21'
diff --git a/backend/corpora/goodreads/goodreads.py b/backend/corpora/goodreads/goodreads.py
index 6e865b4b8..b767304f8 100644
--- a/backend/corpora/goodreads/goodreads.py
+++ b/backend/corpora/goodreads/goodreads.py
@@ -214,31 +214,6 @@ def sources(self, start, end):
),
es_mapping={'type': 'keyword'}
),
- Field(
- name='author',
- display_name='Author',
- description='Author of the review.',
- extractor=CSV(
- field='author',
- ),
- es_mapping={'type': 'keyword'},
- csv_core=True,
- ),
- Field(
- name='author_gender',
- display_name='Reviewer gender',
- description='Gender of the reviewer, guessed based on name.',
- extractor=CSV(
- field='author_gender',
- ),
- es_mapping={'type': 'keyword'},
- search_filter=MultipleChoiceFilter(
- description='Accept only reviews made by authors of these genders. Note that gender was guessed based on username',
- option_count=6
- ),
- csv_core=True,
- visualizations=['resultscount', 'termfrequency'],
- ),
Field(
name='rating_text',
display_name='Goodreads rating',
diff --git a/frontend/src/app/filter/range-filter.component.html b/frontend/src/app/filter/range-filter.component.html
index ba498e929..854df6d66 100644
--- a/frontend/src/app/filter/range-filter.component.html
+++ b/frontend/src/app/filter/range-filter.component.html
@@ -1,5 +1,5 @@
-
+
{{data.min}} - {{data.max}}
-
+
diff --git a/frontend/src/app/filter/range-filter.component.ts b/frontend/src/app/filter/range-filter.component.ts
index 162c2ab7f..77ecf8807 100644
--- a/frontend/src/app/filter/range-filter.component.ts
+++ b/frontend/src/app/filter/range-filter.component.ts
@@ -17,10 +17,6 @@ export class RangeFilterComponent extends BaseFilterComponent
{
this.max = filter.defaultData.max;
}
- getDisplayData(filterData: RangeFilterData): [number, number] {
- return [filterData.min, filterData.max];
- }
-
getFilterData(value: [number, number]): RangeFilterData {
return {
min: value[0],
diff --git a/frontend/src/app/search/search-results.component.ts b/frontend/src/app/search/search-results.component.ts
index 65cf78dfd..086e7fbcf 100644
--- a/frontend/src/app/search/search-results.component.ts
+++ b/frontend/src/app/search/search-results.component.ts
@@ -8,6 +8,8 @@ import * as _ from 'lodash';
import { faBookOpen, faArrowLeft, faArrowRight, faLink } from '@fortawesome/free-solid-svg-icons';
import { makeContextParams } from '../utils/document-context';
+const MAXIMUM_DISPLAYED = 10000;
+
@Component({
selector: 'ia-search-results',
templateUrl: './search-results.component.html',
@@ -45,7 +47,6 @@ export class SearchResultsComponent implements OnChanges {
public resultsPerPage = 20;
public totalResults: number;
- private maximumDisplayed: number;
public fromIndex = 0;
@@ -76,7 +77,6 @@ export class SearchResultsComponent implements OnChanges {
ngOnChanges() {
if (this.queryModel) {
this.fromIndex = 0;
- this.maximumDisplayed = this.user.downloadLimit ? this.user.downloadLimit : 10000;
this.search();
this.queryModel.update.subscribe(() => this.search());
}
@@ -97,7 +97,7 @@ export class SearchResultsComponent implements OnChanges {
this.results = results;
this.results.documents.map((d, i) => d.position = i + 1);
this.searched(this.queryModel.queryText, this.results.total.value);
- this.totalResults = this.results.total.value <= this.maximumDisplayed ? this.results.total.value : this.maximumDisplayed;
+ this.totalResults = this.results.total.value <= MAXIMUM_DISPLAYED ? this.results.total.value : MAXIMUM_DISPLAYED;
}, error => {
this.showError = {
date: (new Date()).toISOString(),
diff --git a/package.json b/package.json
index 782a5ed47..445d6727b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "i-analyzer",
- "version": "4.1.0",
+ "version": "4.1.2",
"license": "MIT",
"scripts": {
"postinstall": "yarn install-back && yarn install-front",