-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge ElasticSearch and Solr custom criterion, sort clause and aggreg…
…ation Criteria, sort clauses and aggregations don't depend on the search engine, only their visitors and other handlers do.
- Loading branch information
1 parent
7a05c67
commit 4028a27
Showing
33 changed files
with
137 additions
and
216 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
code_samples/search/custom/config/aggregation_services.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
services: | ||
app.search.solr.query.aggregation_visitor.priority_range_aggregation: | ||
class: Ibexa\Solr\Query\Common\AggregationVisitor\PriorityRangeAggregationVisitor | ||
factory: [ '@Ibexa\Solr\Query\Common\AggregationVisitor\Factory\ContentFieldAggregationVisitorFactory', 'createRangeAggregationVisitor' ] | ||
arguments: | ||
$aggregationClass: 'App\Query\Aggregation\Solr\PriorityRangeAggregation' | ||
$searchIndexFieldName: 'priority_i' | ||
tags: | ||
- { name: ibexa.search.solr.query.content.aggregation.visitor } | ||
- { name: ibexa.search.solr.query.location.aggregation.visitor } | ||
|
||
app.search.elasticsearch.query.aggregation_visitor.priority_range_aggregation: | ||
class: Ibexa\Elasticsearch\Query\AggregationVisitor\PriorityRangeAggregationVisitor | ||
factory: [ '@Ibexa\Elasticsearch\Query\AggregationVisitor\Factory\SearchFieldAggregationVisitorFactory', 'createRangeAggregationVisitor' ] | ||
arguments: | ||
$aggregationClass: 'App\Query\Aggregation\Elasticsearch\PriorityRangeAggregation' | ||
$searchIndexFieldName: 'priority_i' | ||
tags: | ||
- { name: ibexa.search.elasticsearch.query.location.aggregation.visitor } | ||
- { name: ibexa.search.elasticsearch.query.content.aggregation.visitor } | ||
|
||
app.search.solr.query.aggregation_result_extractor.priority_range_aggregation: | ||
class: Ibexa\Solr\ResultExtractor\AggregationResultExtractor\RangeAggregationResultExtractor | ||
arguments: | ||
$aggregationClass: 'App\Query\Aggregation\Solr\PriorityRangeAggregation' | ||
$keyMapper: 'Ibexa\Solr\ResultExtractor\AggregationResultExtractor\RangeAggregationKeyMapper\IntRangeAggregationKeyMapper' | ||
tags: | ||
- { name: ibexa.search.solr.query.location.aggregation.result.extractor } | ||
- { name: ibexa.search.solr.query.content.aggregation.result.extractor } | ||
|
||
app.search.elasticsearch.query.aggregation_result_extractor.priority_range_aggregation: | ||
class: Ibexa\Elasticsearch\Query\ResultExtractor\AggregationResultExtractor\RangeAggregationResultExtractor | ||
arguments: | ||
$aggregationClass: 'App\Query\Aggregation\Elasticsearch\PriorityRangeAggregation' | ||
tags: | ||
- { name: ibexa.search.elasticsearch.query.location.aggregation.result.extractor } | ||
- { name: ibexa.search.elasticsearch.query.content.aggregation.result.extractor } | ||
|
||
App\Query\Aggregation\Solr\PriorityRangeAggregationVisitor: | ||
tags: | ||
- { name: ibexa.search.solr.query.location.aggregation.visitor } | ||
- { name: ibexa.search.solr.query.content.aggregation.visitor } | ||
|
||
App\Query\Aggregation\Solr\PriorityRangeAggregationResultExtractor: | ||
tags: | ||
- { name: ibexa.search.solr.query.location.aggregation.result.extractor } | ||
- { name: ibexa.search.solr.query.content.aggregation.result.extractor } | ||
|
||
App\Query\Aggregation\Elasticsearch\PriorityRangeAggregationVisitor: | ||
tags: | ||
- { name: ibexa.search.elasticsearch.query.location.aggregation.visitor } | ||
- { name: ibexa.search.elasticsearch.query.content.aggregation.visitor } | ||
|
||
App\Query\Aggregation\Elasticsearch\PriorityRangeAggregationResultExtractor: | ||
tags: | ||
- { name: ibexa.search.elasticsearch.query.location.aggregation.result.extractor } | ||
- { name: ibexa.search.elasticsearch.query.content.aggregation.result.extractor } |
5 changes: 5 additions & 0 deletions
5
...sticsearch/config/criterion_services.yaml → ...rch/custom/config/criterion_services.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
...icsearch/config/sort_clause_services.yaml → ...h/custom/config/sort_clause_services.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
10 changes: 0 additions & 10 deletions
10
code_samples/search/elasticsearch/config/aggregation_services.yaml
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...les/search/elasticsearch/src/Query/Aggregation/Elasticsearch/PriorityRangeAggregation.php
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
...es/search/elasticsearch/src/Query/Criterion/Elasticsearch/CameraManufacturerCriterion.php
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
code_samples/search/elasticsearch/src/Query/SortClause/Elasticsearch/ScoreSortClause.php
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.