mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-07 22:12:53 +00:00
fix: rebase cleanup
fix: rebase cleanup fix: rebase cleanup
This commit is contained in:
@@ -1,18 +1,14 @@
|
||||
# [1.0.0](https://gitlab.com/openstapps/backend/compare/v0.6.0...v1.0.0) (2023-05-08)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* openapi docs generation ([4ebe44a](https://gitlab.com/openstapps/backend/commit/4ebe44a5a7a1b7bfd0aa5b84d47d4056d3068ffe))
|
||||
* rename deprecated Gitlab CI variables ([3471591](https://gitlab.com/openstapps/backend/commit/3471591a7d458df70447c8dac91f96f3c83e763c))
|
||||
* semster boosting ([515a6ee](https://gitlab.com/openstapps/backend/commit/515a6eeea56305a37510d99b9f84a6b118b66f8a))
|
||||
|
||||
- openapi docs generation ([4ebe44a](https://gitlab.com/openstapps/backend/commit/4ebe44a5a7a1b7bfd0aa5b84d47d4056d3068ffe))
|
||||
- rename deprecated Gitlab CI variables ([3471591](https://gitlab.com/openstapps/backend/commit/3471591a7d458df70447c8dac91f96f3c83e763c))
|
||||
- semster boosting ([515a6ee](https://gitlab.com/openstapps/backend/commit/515a6eeea56305a37510d99b9f84a6b118b66f8a))
|
||||
|
||||
### Features
|
||||
|
||||
* update to of elasticsearch 8.4 ([c9b83b5](https://gitlab.com/openstapps/backend/commit/c9b83b5d71610f82bd1d99e837e29ad445758aea))
|
||||
|
||||
|
||||
- update to of elasticsearch 8.4 ([c9b83b5](https://gitlab.com/openstapps/backend/commit/c9b83b5d71610f82bd1d99e837e29ad445758aea))
|
||||
|
||||
# [0.6.0](https://gitlab.com/openstapps/backend/compare/v0.5.0...v0.6.0) (2023-01-30)
|
||||
|
||||
|
||||
@@ -22,9 +22,10 @@ you with everything you need to run this backend.
|
||||
# Local usage for development purposes
|
||||
|
||||
## Requirements
|
||||
|
||||
- Elasticsearch (8.4)
|
||||
* [ICU analysis plugin](https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-icu.html)
|
||||
* OR Docker
|
||||
- [ICU analysis plugin](https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-icu.html)
|
||||
- OR Docker
|
||||
- Node.js (~14) / NPM
|
||||
|
||||
### Startup Behaviour
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
*/
|
||||
import {QueryDslQueryContainer} from '@elastic/elasticsearch/lib/api/types';
|
||||
import {SCConfigFile, SCSearchQuery} from '@openstapps/core';
|
||||
import {ElasticsearchConfig} from '../types/elasticsearch-config';
|
||||
import {buildFilter} from './filter';
|
||||
import {buildScoringFunctions} from './boost/scoring-functions';
|
||||
import {ElasticsearchConfig} from '../types/elasticsearch-config.js';
|
||||
import {buildFilter} from './filter.js';
|
||||
import {buildScoringFunctions} from './boost/scoring-functions.js';
|
||||
|
||||
/**
|
||||
* Builds body for Elasticsearch requests
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
*/
|
||||
import {Sort} from '@elastic/elasticsearch/lib/api/types';
|
||||
import {SCSearchSort} from '@openstapps/core';
|
||||
import {buildDistanceSort} from './sort/distance';
|
||||
import {buildDucetSort} from './sort/ducet';
|
||||
import {buildGenericSort} from './sort/generic';
|
||||
import {buildPriceSort} from './sort/price';
|
||||
import {buildDistanceSort} from './sort/distance.js';
|
||||
import {buildDucetSort} from './sort/ducet.js';
|
||||
import {buildGenericSort} from './sort/generic.js';
|
||||
import {buildPriceSort} from './sort/price.js';
|
||||
|
||||
/**
|
||||
* converts query to
|
||||
@@ -28,14 +28,18 @@ import {buildPriceSort} from './sort/price';
|
||||
export function buildSort(sorts: SCSearchSort[]): Sort {
|
||||
return sorts.map(sort => {
|
||||
switch (sort.type) {
|
||||
case 'generic':
|
||||
case 'generic': {
|
||||
return buildGenericSort(sort);
|
||||
case 'ducet':
|
||||
}
|
||||
case 'ducet': {
|
||||
return buildDucetSort(sort);
|
||||
case 'distance':
|
||||
}
|
||||
case 'distance': {
|
||||
return buildDistanceSort(sort);
|
||||
case 'price':
|
||||
}
|
||||
case 'price': {
|
||||
return buildPriceSort(sort);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user