mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-09-16 15:55:34 -04:00
26 lines
896 B
Go
26 lines
896 B
Go
package parity
|
|
|
|
import (
|
|
"github.com/opencloud-eu/opencloud/services/search/pkg/search"
|
|
)
|
|
|
|
func titleGroup() queryGroup {
|
|
return queryGroup{
|
|
name: "title",
|
|
fixtures: []search.Resource{
|
|
fixtureDoc("q1.html", withMime("text/html"), withTitle("quarterly report")),
|
|
},
|
|
cases: []queryCase{
|
|
{id: 1, query: `Title:"quarterly report"`, want: []string{"q1.html"}},
|
|
{id: 2, query: `Title:quarterly`, want: []string{"q1.html"}},
|
|
{id: 3, query: `Title:QUARTERLY`, want: []string{"q1.html"}},
|
|
{id: 4, query: `Title:quarterl*`, want: []string{"q1.html"}},
|
|
{id: 5, query: `Title:"*ly rep*"`, want: []string{"q1.html"}},
|
|
{id: 6, query: `title:quarterly`, want: []string{"q1.html"}},
|
|
{id: 7, query: `Title:"QUARTERLY REPORT"`, want: []string{"q1.html"}},
|
|
{id: 8, query: `Title="quarterly report"`, want: []string{"q1.html"}},
|
|
{id: 9, query: `Title="quarterly"`},
|
|
},
|
|
}
|
|
}
|