zoekt: 28 files / 73 matches / 10.71ms neogrok: 20 files / 56 matches

github.com/sourcegraph/zoektread.go 11 matches | Go | №1

585 586 // ReadMetadata returns the metadata of index shard without reading587 // the index data. The IndexFile is not closed.588 func ReadMetadata(inf IndexFile) ([]*Repository, *IndexMetadata, error) {589 rd := &reader{r: inf}
597 598 // ReadMetadataPathAlive is like ReadMetadataPath except that it only returns599 // alive repositories.600 func ReadMetadataPathAlive(p string) ([]*Repository, *IndexMetadata, error) {601 repos, id, err := ReadMetadataPath(p)602 if err != nil {

github.com/isker/neogrokREADME.md 1 match | Markdown | №2

github.com/sourcegraph/zoektREADME.md 1 match | Markdown | №3

github.com/sourcegraph/zoektinternal/syntaxutil/README.md 1 match | Markdown | №4

github.com/sourcegraph/zoektread_test.go 3 matches | Go | №5

439 440 func BenchmarkReadMetadata(b *testing.B) {441 file, err := os.Open("testdata/benchmark/zoekt_v16.00000.zoekt")
455 for i := 0; i < b.N; i++ {456 repos, metadata, err := ReadMetadata(indexFile)457 if err != nil {458 b.Fatalf("ReadMetadata failed: %v", err)459 }

github.com/sourcegraph/zoektdoc/query_syntax.md 2 matches | Markdown | №6

123 124 3. **Find files named `README.md` in forks**:125 ```plaintext126 file:"README.md" fork:yes127 ```

github.com/sourcegraph/zoektinternal/archive/index.go 1 match | Go | №7

46 // https://github.com/octokit/octokit.rb/commit/3d21ec53a331a6f037a91c368710b99387d012c147 // https://github.com/octokit/octokit.rb/blob/master/README.md48 // https://github.com/octokit/octokit.rb/tree/master/lib

github.com/isker/neogroksrc/routes/syntax/+page.svelte 9 matches | Svelte | №8

129 a file and in the <em>name</em> of the file:130 <ExampleQuery query="README" /> matches both file names and file contents (though131 the search engine tends to rank files containing file name matches higher than
135 with136 <code>file:</code>, like <ExampleQuery query="file:README" />. (137 <code>f:</code> is an equivalent abbreviation for <code>file:</code>).
141 expressions is <code>content:</code> or <code>c:</code>.142 <ExampleQuery query="content:README" /> produces only matches that occur in143 the content of files.
176 <td class="p-1">177 <ExampleQuery query="f:README" />178 <br />179 <ExampleQuery query="f:README neogrok" />180 <br />

github.com/isker/neogroksrc/routes/(search-page)/lander.svelte 5 matches | Svelte | №9

41 <li>42 <ExampleQuery query="file:README test" />43 <span class="text-xs">
109 <li>110 <ExampleQuery query="readme" />111 <span class="text-sm"> vs </span>112 <ExampleQuery query="readme case:yes" />113 </li>114 <li>115 <ExampleQuery query="README" />116 <span class="text-sm"> vs </span>117 <ExampleQuery query="README case:no" />118 </li>

github.com/sourcegraph/zoektignore/ignore_test.go 2 matches | Go | №10

60 {61 path: "dir1/readme.md",62 wantMatch: true,
64 {65 path: "dir1/dir2/readme.md",66 wantMatch: true,

github.com/sourcegraph/zoekttombstones.go 1 match | Go | №11

28 } else {29 repos, _, err = ReadMetadataPath(shardPath)30 if err != nil {

github.com/sourcegraph/zoektbuild/builder.go 5 matches | Go | №12

383 384 repos, index, err := zoekt.ReadMetadataPathAlive(fn)385 if os.IsNotExist(err) {
438 439 repositories, metadata, err := zoekt.ReadMetadataPathAlive(shard)440 if err != nil {
478 for _, fn := range compoundShards {479 repos, _, err := zoekt.ReadMetadataPathAlive(fn)480 if err != nil {
676 for _, shard := range oldShards {677 repositories, _, err := zoekt.ReadMetadataPathAlive(shard)678 if err != nil {
1000 var m runtime.MemStats1001 runtime.ReadMemStats(&m)1002

github.com/sourcegraph/zoektcmd/zoekt/main.go 2 matches | Go | №13

78 if verbose {79 repo, index, err := zoekt.ReadMetadata(iFile)80 if err != nil {81 iFile.Close()82 return nil, fmt.Errorf("ReadMetadata(%s): %v", fn, err)83 }

github.com/sourcegraph/zoektcmd/zoekt-test/main.go 2 matches | Go | №14

179 runtime.GC()180 runtime.ReadMemStats(&a)181 start := time.Now()
187 runtime.GC()188 runtime.ReadMemStats(&b)189 log.Printf("%s loaded in %d ms, additional memory consumption: %d MiB", s.String(), duration.Milliseconds(), (b.Alloc-a.Alloc)/1024/1024)

github.com/sourcegraph/zoektcmd/zoekt-indexserver/main.go 1 match | Go | №15

214 215 repos, _, err := zoekt.ReadMetadata(ifile)216 if err != nil {

github.com/sourcegraph/zoektcmd/zoekt-sourcegraph-indexserver/main.go 1 match | Go | №16

1073 func printMetaData(fn string) error {1074 repo, indexMeta, err := zoekt.ReadMetadataPath(fn)1075 if err != nil {

github.com/sourcegraph/zoektcmd/zoekt-sourcegraph-indexserver/meta.go 1 match | Go | №17

21 for _, fn := range o.FindAllShards() {22 repos, md, err := zoekt.ReadMetadataPath(fn)23 if err != nil {

github.com/sourcegraph/zoektcmd/zoekt-sourcegraph-indexserver/merge.go 1 match | Go | №18

205 206 repos, _, err := zoekt.ReadMetadataPath(path)207 if err != nil {

github.com/sourcegraph/zoektcmd/zoekt-sourcegraph-indexserver/cleanup.go 4 matches | Go | №19

199 200 repos, _, err := zoekt.ReadMetadataPathAlive(path)201 if err != nil {
233 for _, p := range paths {234 repos, _, err := zoekt.ReadMetadataPath(p)235 if err != nil {
456 457 repos, _, err := zoekt.ReadMetadataPath(fn)458 if err != nil {459 return nil, fmt.Errorf("zoekt.ReadMetadataPath: %s", err)460 }

github.com/sourcegraph/zoektindex_test.go 2 matches | Go | №20

2134 2135 rd, _, err := ReadMetadata(f)2136 if err != nil {2137 t.Fatalf("ReadMetadata: %v", err)2138 }