zoekt: 222 files / 1799 matches / 7.43ms neogrok: 20 files / 114 matches

github.com/sourcegraph/zoektdoc/faq.md 6 matches | Markdown | №1

5 Software engineering is more about reading than writing code, and part6 of this process is finding the code that you should read. If you are7 working on a large project, then finding source code through
34 approximate query, and then refine it based on results you got. For35 this to work, you need the following features:36
53 * Coverage: `zoekt` comes with tools to mirror parts of common Git54 hosting sites. `cs.bazel.build` uses this to index most of the55 Google authored open source software on github.com and
58 * Speed: `zoekt` uses an index based on positional trigrams. For rare59 strings, eg. `nienhuys`, this typically yields results in ~10ms if60 the operating system caches are warm.
73 74 ## How does this compare to `grep -r`?75

github.com/sourcegraph/zoektinternal/e2e/testdata/assets_are_not_configured_for_this_binary.txt 2 matches | Text | №2

1 queryString: assets are not configured for this binary2 query: (and substr:"assets" substr:"are" substr:"not" substr:"configured" substr:"for" substr:"this" substr:"binary")3 targetRank: 1

github.com/sourcegraph/zoektapi.go 50 matches | Go | №3

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at
83 84 // RepositoryID is a Sourcegraph extension. This is the ID of Repository in85 // Sourcegraph.
162 163 // Ranges is a set of matching ranges within this chunk. Each range is relative164 // to the beginning of the file (not the beginning of Content).
170 171 // FileName indicates whether this match is a match on the file name, in172 // which case Content will contain the file name.
179 180 // Score is the overall relevance score of this chunk.181 Score float64

github.com/sourcegraph/zoektLICENSE 17 matches | Text | №4

9 "License" shall mean the terms and conditions for use, reproduction,10 and distribution as defined by Sections 1 through 9 of this document.11
16 other entities that control, are controlled by, or are under common17 control with that entity. For the purposes of this definition,18 "control" means (i) the power, direct or indirect, to cause the
23 "You" (or "Your") shall mean an individual or Legal Entity24 exercising permissions granted by this License.25
43 represent, as a whole, an original work of authorship. For the purposes44 of this License, Derivative Works shall not include works that remain45 separable from, or merely link (or bind by name) to the interfaces of,
52 or by an individual or Legal Entity authorized to submit on behalf of53 the copyright owner. For the purposes of this definition, "submitted"54 means any form of electronic, verbal, or written communication sent

github.com/isker/neogrokmain.js 2 matches | JavaScript | №5

2 3 // This is the main "production" entrypoint into neogrok. It wraps the SvelteKit4 // server to do some additional things. Note that the vite dev server used by5 // SvelteKit bypasses this module entirely, as it's a fundamentally different6 // entrypoint.

github.com/sourcegraph/zoektREADME.md 6 matches | Markdown | №6

9 10 **Note:** This has been the maintained source for Zoekt since 2017, when it was forked from the11 original repository [github.com/google/zoekt](https://github.com/google/zoekt).
37 38 Zoekt supports indexing and searching repositories on the command line. This is most helpful39 for simple local usage, or for testing and development.
71 72 This will fetch all repos under 'github.com/apache', then index the repositories. The indexserver takes care of73 periodically fetching and indexing new data, and cleaning up logfiles. See [config.go](cmd/zoekt-indexserver/config.go)74 for more details on this configuration.75
80 81 This will start a web server with a simple search UI at http://localhost:6070. See the [uuery syntax docs](doc/query_syntax.md)82 for more details on the query language.

github.com/sourcegraph/zoektweb/api.go 3 matches | Go | №7

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at
55 Language string56 // If this was a duplicate result, this will contain the file57 // of the first index.

github.com/isker/neogrokLICENSE 2 matches | Text | №8

5 Permission is hereby granted, free of charge, to any person obtaining a copy6 of this software and associated documentation files (the "Software"), to deal7 in the Software without restriction, including without limitation the rights
11 12 The above copyright notice and this permission notice shall be included in all13 copies or substantial portions of the Software.

github.com/sourcegraph/zoektmarshal.go 1 match | Go | №9

45 46 // We calculate this up front so when decoding we only need to allocate the47 // underlying array once.

github.com/sourcegraph/zoektweb/doc.go 1 match | Go | №10

1 // Licensed under the Apache License, Version 2.0 (the "License");2 // you may not use this file except in compliance with the License.3 // You may obtain a copy of the License at

github.com/isker/neogrokREADME.md 3 matches | Markdown | №11

48 49 The demo deployment is configured [in this repository](./demo). This configuration50 can serve as a guide for your own deployments of neogrok together with zoekt.
111 [`openGrokProjectMappings` configuration](#configuration), which maps OpenGrok112 project names to zoekt repository names. With this data provided, neogrok can113 rewrite OpenGrok queries that include project names appropriately.

github.com/sourcegraph/zoektapi_proto.go 2 matches | Go | №12

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at
40 Debug: p.GetDebug(),41 FileName: string(p.GetFileName()), // Note: 🚨Warning, this filename may be a non-UTF8 string.42 Repository: p.GetRepository(),

github.com/sourcegraph/zoektindex/toc.go 5 matches | Go | №13

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at
49 // compatibility. For example, if a new way to encode filenameNgrams on disk is50 // added using a new section but the old one is retained, this would only bump51 // FeatureVersion, since the previous version can read the file and ignore the
57 // longer valid.58 // In this way, compatibility with arbitrary version offsets can be indicated.59
104 func (t *indexTOC) sections() []section {105 // This old sections list is only needed to maintain backwards compatibility,106 // and can be removed when a migration to tagged sections is complete.107 return []section{108 // This must be first, so it can be reliably read across109 // file format versions.

github.com/isker/neogrokyarn.lock 1 match | YAML | №14

1 # This file is generated by running "yarn install" inside your project.2 # Manual changes might be lost - proceed with caution!

github.com/sourcegraph/zoektweb/trace.go 1 match | Go | №15

16 // traceAwareSearcher wraps a zoekt.Searcher instance so that the tracing context item is set in the17 // context. This context item toggles on trace collection via the18 // github.com/sourcegraph/zoekt/internal/trace/ot package.

github.com/sourcegraph/zoektcmd/flags.go 1 match | Go | №16

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at

github.com/sourcegraph/zoektquery/doc.go 1 match | Go | №17

1 // Licensed under the Apache License, Version 2.0 (the "License");2 // you may not use this file except in compliance with the License.3 // You may obtain a copy of the License at

github.com/sourcegraph/zoektdoc/ctags.md 1 match | Markdown | №18

13 14 From this version on, universal ctags will be called using seccomp,15 which guarantees that security problems in ctags cannot escalate to

github.com/sourcegraph/zoektindex/bits.go 4 matches | Go | №19

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at
351 //352 // This is very rarely a slight pessimization on repos where there are frequent353 // non-ASCII characters.
379 //380 // It does this by finding the nearest point to interpolate from in the map.381 func (m runeOffsetMap) lookup(runeOffset uint32) (uint32, uint32) {
389 // but we want to find the *last* index for which the predicate is true.390 // This involves some work to reverse the index directions.391 idx := sort.Search(slen, func(i int) bool {

github.com/sourcegraph/zoektweb/server.go 5 matches | Go | №20

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at
96 97 // Version string for this server.98 Version string
101 // page. For example, when serving on "search.myproject.org"102 // we could add "r:myproject" automatically. This allows a103 // single instance to serve as search engine for multiple
106 107 // This should contain the following templates: "repolist"108 // (for the repo search result page), "result" for
212 // We need to use WithUnsafeContext here because we want to perform a full213 // search returning results. The result of this search is not used for anything214 // other than determining if the server is healthy.