Skip to content

Commit 107ac2e

Browse files
Break SearchRequestHandler configuration into composites
1 parent da7f74f commit 107ac2e

4 files changed

Lines changed: 46 additions & 104 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
SearchRequestHandler::$searchClasses[Laddr\ProjectBuzz::class] = [
4+
'fields' => [
5+
[
6+
'field' => 'Headline',
7+
'method' => 'like'
8+
],
9+
[
10+
'field' => 'Handle',
11+
'method' => 'like'
12+
],
13+
[
14+
'field' => 'URL',
15+
'method' => 'like'
16+
],
17+
[
18+
'field' => 'Summary',
19+
'method' => 'like'
20+
]
21+
]
22+
];
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
SearchRequestHandler::$searchClasses[Laddr\ProjectUpdate::class] = [
4+
'fields' => [
5+
[
6+
'field' => 'Body',
7+
'method' => 'like'
8+
]
9+
]
10+
];
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
SearchRequestHandler::$searchClasses[Laddr\Project::class] = [
4+
'fields' => [
5+
[
6+
'field' => 'Title',
7+
'method' => 'like'
8+
],
9+
[
10+
'field' => 'Handle',
11+
'method' => 'like'
12+
]
13+
]
14+
];

php-config/SearchRequestHandler.config.php

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)