zoekt: 5 files / 13 matches / 0.23ms neogrok: 5 files / 13 matches

github.com/sourcegraph/zoektshards/shards.go 2 matches | Go | №1

474 //475 // For example if our query is (and (reposet foo bar) (content baz))476 // then at this point filtered is [foo bar] and q is the same. For each477 // shard indexData.simplify will simplify to (and true (content baz)) ->

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 two56 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 one66 expression, literally matching <Expression>/foo bar/</Expression>, you can67 either wrap it in double quotes, like68 <ExampleQuery query={'"foo bar"'} />, or by escaping the space, like69 <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 being72 <Expression>/&apos;foo/</Expression> and the second being

github.com/isker/neogroksrc/routes/(opengrok-compat)/search/opengrok-lucene.server.ts 1 match | TypeScript | №3

355 // @ts-expect-error proximity is missing from the types, but can be356 // produced with something like `"foo bar"~10`357 proximity,

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

github.com/sourcegraph/zoektquery/query_proto_test.go 1 match | Go | №5

84 },85 &Substring{Pattern: "foo bar"},86 },