zoekt: 5 files / 13 matches / 0.3ms neogrok: 5 files / 13 matches
github.com/sourcegraph/zoektshards/shards.go 2 matches | Go | №1
github.com/isker/neogroksrc/routes/syntax/+page.svelte 4 matches | Svelte | №2
54
<p>
55 But what about <ExampleQuery query="foo bar" />? This query has two
56 expressions, which makes its behavior more complicated: it returns all
65
First of all, if you wanted this query to behave as if it had only one
66 expression, literally matching <Expression>/foo bar/</Expression>, you can
67 either wrap it in double quotes, like
68 <ExampleQuery query={'"foo bar"'} />, or by escaping the space, like
69 <ExampleQuery query="foo\ bar" />; both of those queries are equivalent.
70 (Single quotes have no special meaning in this regard.
71 <ExampleQuery query="'foo bar'" /> contains two expressions, the first being
72 <Expression>/'foo/</Expression> and the second being
github.com/isker/neogroksrc/routes/(opengrok-compat)/search/opengrok-lucene.server.ts 1 match | TypeScript | №3
github.com/sourcegraph/zoektshards/shards_test.go 5 matches | Go | №4
204
addShard("weekend-project", 20, zoekt.Document{Name: "f2", Content: []byte("foo bas")})
205 addShard("moderately-popular", 500, zoekt.Document{Name: "f3", Content: []byte("foo bar")})
206 addShard("weekend-project-2", 20, zoekt.Document{Name: "f2", Content: []byte("foo bas")})
207 addShard("super-star", 5000, zoekt.Document{Name: "f1", Content: []byte("foo bar bas")})
208
247
addShard("recent", 2, zoekt.Document{Name: "f2", Content: []byte("foobaz")})
248 addShard("old-project-2", 1, zoekt.Document{Name: "f3", Content: []byte("foo bar")})
249 addShard("new", 3, zoekt.Document{Name: "f4", Content: []byte("foo baz")},
752
}
753 addShard("public", map[string]string{"public": "1"}, zoekt.Document{Name: "f1", Content: []byte("foo bar bas")})
754 addShard("private_archived", map[string]string{"archived": "1"}, zoekt.Document{Name: "f2", Content: []byte("foo bas")})
755 addShard("public_fork", map[string]string{"public": "1", "fork": "1"}, zoekt.Document{Name: "f3", Content: []byte("foo bar")})
756