​

zoekt: 5 files / 101 matches / 0.26ms neogrok: 5 files / 101 matches

zoektsrc/routes/syntax/+page.svelte 23 matches | Svelte | №1

48 If your query contains no spaces, its behavior is pretty intuitive.49 <ExampleQuery query="foo" /> displays all matches for the regex50 <Expression>/foo/</Expression>. That query contains a single51 <em>expression</em>, namely a <em>regex</em> expression. (We&apos;ll introduce
54 <p>55 But what about <ExampleQuery query="foo bar" />? This query has two56 expressions, which makes its behavior more complicated: it returns all57 matches for the regex <Expression>/foo/</Expression> <em>or</em> the regex <Expression58 >/bar/</Expression59 >, but only in files that have matches for both <Expression60 >/foo/</Expression61 > <em>and</em>

zoektsrc/routes/(opengrok-compat)/search/opengrok-lucene.server.ts 3 matches | TypeScript | №2

261 *262 * defs(foo || bar) => sym:foo or sym:bar263 *
355 // @ts-expect-error proximity is missing from the types, but can be356 // produced with something like `"foo bar"~10`357 proximity,

zoektsrc/lib/server/content-parser.test.ts 38 matches | TypeScript | №3

5 it("parses file name matches", () => {6 expect(parseFileNameMatch(Buffer.from("foo"), [])).toEqual({7 text: "foo",8 matchRanges: [],
10 expect(11 parseFileNameMatch(Buffer.from("foo"), [{ start: 0, end: 3 }]),12 ).toEqual({ text: "foo", matchRanges: [{ start: 0, end: 3 }] });13 expect(14 parseFileNameMatch(Buffer.from("foo"), [{ start: 0, end: 2 }]),15 ).toEqual({ text: "foo", matchRanges: [{ start: 0, end: 2 }] });16 expect(17 parseFileNameMatch(Buffer.from("foo"), [{ start: 1, end: 3 }]),18 ).toEqual({ text: "foo", matchRanges: [{ start: 1, end: 3 }] });19 expect(20 parseFileNameMatch(Buffer.from("foo"), [{ start: 1, end: 2 }]),21 ).toEqual({ text: "foo", matchRanges: [{ start: 1, end: 2 }] });

zoektsrc/routes/(search-page)/chunk-renderer.test.ts 2 matches | TypeScript | №4

128 {129 text: '\t\t\t\tContent: []byte("foo"),',130 matchRanges: [],
465 "matchRanges": [],466 "text": " Content: []byte("foo"),",467 },

zoektsrc/routes/(opengrok-compat)/search/opengrok-lucene.test.ts 35 matches | TypeScript | №5

25 it("converts simple `full` query", async () => {26 assert.deepEqual(await toZoekt({ full: "foobar" }), {27 luceneQuery: "foobar",28 zoektQuery: "foobar",29 warnings: [],
84 it("accepts relevancy sort", async () => {85 assert.deepEqual(await toZoekt({ full: "foobar", sort: "relevancy" }), {86 luceneQuery: "foobar",87 zoektQuery: "foobar",88 warnings: [],