2016-10-14 03:30:05 +02:00
|
|
|
SilverStripe\ORM\Tests\Search\SearchContextTest\Person:
|
|
|
|
person1:
|
|
|
|
Name: James
|
|
|
|
Email: james@example.com
|
|
|
|
HairColor: brown
|
|
|
|
EyeColor: brown
|
|
|
|
person2:
|
|
|
|
Name: John
|
|
|
|
Email: john@example.com
|
|
|
|
HairColor: blond
|
|
|
|
EyeColor: blue
|
|
|
|
person3:
|
|
|
|
Name: Jane
|
|
|
|
Email: jane@example.com
|
|
|
|
HairColor: brown
|
|
|
|
EyeColor: green
|
|
|
|
person4:
|
|
|
|
Name: Hemi
|
|
|
|
Email: hemi@example.com
|
|
|
|
HairColor: black
|
|
|
|
EyeColor: brown
|
|
|
|
person5:
|
|
|
|
Name: Sara
|
|
|
|
Email: sara@example.com
|
|
|
|
HairColor: black
|
|
|
|
EyeColor: green
|
2008-08-09 05:54:55 +02:00
|
|
|
|
2016-10-14 03:30:05 +02:00
|
|
|
SilverStripe\ORM\Tests\Search\SearchContextTest\Action:
|
|
|
|
action1:
|
|
|
|
Description: Get search context working
|
|
|
|
SolutionArea: technical
|
|
|
|
action2:
|
|
|
|
Description: Get relationship editor working
|
|
|
|
SolutionArea: design
|
|
|
|
action3:
|
|
|
|
Description: Get RSS feeds working
|
|
|
|
SolutionArea: technical
|
|
|
|
action4:
|
|
|
|
Description: New logotype
|
|
|
|
SolutionArea: design
|
2008-08-09 06:53:34 +02:00
|
|
|
|
|
|
|
|
2016-10-14 03:30:05 +02:00
|
|
|
SilverStripe\ORM\Tests\Search\SearchContextTest\Deadline:
|
|
|
|
deadline1:
|
|
|
|
CompletionDate: 2008-05-29 09:00:00
|
|
|
|
deadline2:
|
|
|
|
CompletionDate: 2008-05-20 09:00:00
|
2008-08-09 06:06:52 +02:00
|
|
|
|
2016-10-14 03:30:05 +02:00
|
|
|
SilverStripe\ORM\Tests\Search\SearchContextTest\Project:
|
|
|
|
project1:
|
|
|
|
Name: CRM Application
|
|
|
|
DeadlineID: =>SilverStripe\ORM\Tests\Search\SearchContextTest\Deadline.deadline1
|
|
|
|
Actions:
|
|
|
|
- =>SilverStripe\ORM\Tests\Search\SearchContextTest\Action.action1
|
|
|
|
- =>SilverStripe\ORM\Tests\Search\SearchContextTest\Action.action2
|
|
|
|
project2:
|
|
|
|
Name: Blog Website
|
|
|
|
DeadlineID: =>SilverStripe\ORM\Tests\Search\SearchContextTest\Deadline.deadline2
|
|
|
|
Actions:
|
|
|
|
- =>SilverStripe\ORM\Tests\Search\SearchContextTest\Action.action3
|
|
|
|
- =>SilverStripe\ORM\Tests\Search\SearchContextTest\Action.action4
|
2008-08-09 06:06:52 +02:00
|
|
|
|
2016-10-14 03:30:05 +02:00
|
|
|
SilverStripe\ORM\Tests\Search\SearchContextTest\AllFilterTypes:
|
|
|
|
filter1:
|
|
|
|
ExactMatch: Match me exactly
|
|
|
|
PartialMatch: Match me partially
|
|
|
|
Negation: Shouldnt match me
|
|
|
|
HiddenValue: Filtered value
|
|
|
|
CollectionMatch: ExistingCollectionValue
|
|
|
|
StartsWith: 12345-6789 CamelCase
|
|
|
|
EndsWith: abcd-efgh-ijkl
|
|
|
|
FulltextField: one two three
|
2022-02-09 21:40:16 +01:00
|
|
|
|
|
|
|
SilverStripe\ORM\Tests\Search\SearchContextTest\Customer:
|
|
|
|
customer1:
|
|
|
|
FirstName: Bill
|
2022-08-01 02:19:02 +02:00
|
|
|
MatchAny: Some arbitrary Value
|
2022-06-30 03:26:35 +02:00
|
|
|
customer2:
|
|
|
|
FirstName: Bailey
|
|
|
|
customer3:
|
|
|
|
FirstName: Billy
|
2022-02-09 21:40:16 +01:00
|
|
|
|
|
|
|
SilverStripe\ORM\Tests\Search\SearchContextTest\Address:
|
|
|
|
address1:
|
|
|
|
FirstName: Bob
|
2022-06-30 03:26:35 +02:00
|
|
|
address2:
|
|
|
|
FirstName: Barley
|
|
|
|
address3:
|
|
|
|
FirstName: Billy
|
2022-02-09 21:40:16 +01:00
|
|
|
|
|
|
|
SilverStripe\ORM\Tests\Search\SearchContextTest\Order:
|
|
|
|
order1:
|
2022-06-30 03:26:35 +02:00
|
|
|
Name: 'Jane'
|
2022-02-09 21:40:16 +01:00
|
|
|
Customer: =>SilverStripe\ORM\Tests\Search\SearchContextTest\Customer.customer1
|
|
|
|
ShippingAddress: =>SilverStripe\ORM\Tests\Search\SearchContextTest\Address.address1
|
2022-06-30 03:26:35 +02:00
|
|
|
order2:
|
|
|
|
Name: 'Jill'
|
|
|
|
Customer: =>SilverStripe\ORM\Tests\Search\SearchContextTest\Customer.customer2
|
|
|
|
ShippingAddress: =>SilverStripe\ORM\Tests\Search\SearchContextTest\Address.address1
|
|
|
|
order3:
|
|
|
|
Name: 'Jack'
|
|
|
|
Customer: =>SilverStripe\ORM\Tests\Search\SearchContextTest\Customer.customer3
|
|
|
|
ShippingAddress: =>SilverStripe\ORM\Tests\Search\SearchContextTest\Address.address3
|
2022-08-01 02:19:02 +02:00
|
|
|
|
|
|
|
SilverStripe\ORM\Tests\Search\SearchContextTest\GeneralSearch:
|
|
|
|
general0:
|
|
|
|
Name: General Zero
|
|
|
|
DoNotUseThisField: omitted
|
|
|
|
HairColor: blue
|
|
|
|
ExcludeThisField: excluded
|
|
|
|
ExactMatchField: Some specific value here
|
|
|
|
PartialMatchField: A partial match is allowed for this field
|
|
|
|
MatchAny1: Some match any field
|
|
|
|
MatchAny2: Another match any field
|
|
|
|
Customer: =>SilverStripe\ORM\Tests\Search\SearchContextTest\Customer.customer2
|
|
|
|
general1:
|
|
|
|
Name: General One
|
|
|
|
DoNotUseThisField: omitted
|
|
|
|
HairColor: brown
|
|
|
|
ExcludeThisField: excluded
|
|
|
|
ExactMatchField: This requires an exact match
|
|
|
|
PartialMatchField: This explicitly allows partial matches
|
|
|
|
MatchAny1: first match
|
|
|
|
MatchAny2: second match
|
|
|
|
Customer: =>SilverStripe\ORM\Tests\Search\SearchContextTest\Customer.customer1
|
|
|
|
general2:
|
|
|
|
Name: MatchNothing
|
|
|
|
DoNotUseThisField: MatchNothing
|
|
|
|
HairColor: MatchNothing
|
|
|
|
ExcludeThisField: MatchNothing
|
|
|
|
ExactMatchField: MatchNothing
|
|
|
|
PartialMatchField: MatchNothing
|
|
|
|
MatchAny1: MatchNothing
|
|
|
|
MatchAny2: MatchNothing
|