​

zoekt: 43 files / 125 matches / 15.6ms neogrok: 20 files / 53 matches

neogrokapi.go 5 matches | Go | №1

398 399 // Candidate files whose contents weren't examined because a search limit400 // was reached or the search context was canceled.
975 976 // Return the whole file.977 Whole bool978
1096 addBool("EstimateDocCount", s.EstimateDocCount)1097 addBool("Whole", s.Whole)1098 addBool("ChunkMatches", s.ChunkMatches)

neogrokgrpc/protos/zoekt/webserver/v1/webserver.pb.go 7 matches | Go | №2

395 EstimateDocCount bool `protobuf:"varint,1,opt,name=estimate_doc_count,json=estimateDocCount,proto3" json:"estimate_doc_count,omitempty"`396 // Return the whole file.397 Whole bool `protobuf:"varint,2,opt,name=whole,proto3" json:"whole,omitempty"`398 // Maximum number of matches: skip all processing an index
477 478 func (x *SearchOptions) GetWhole() bool {479 if x != nil {480 return x.Whole481 }

neogrokgrpc/protos/zoekt/webserver/v1/webserver.proto 3 matches | Protocol Buffer | №3

53 54 // Return the whole file.55 bool whole = 2;56
323 324 // Candidate files whose contents weren't examined because a search limit325 // was reached or the search context was canceled.

neogrokLICENSE 3 matches | Text | №4

42 editorial revisions, annotations, elaborations, or other modifications43 represent, as a whole, an original work of authorship. For the purposes44 of this License, Derivative Works shall not include works that remain
62 "Contributor" shall mean Licensor and any individual or Legal Entity63 on behalf of whom a Contribution has been received by Licensor and64 subsequently incorporated within the Work.
125 for use, reproduction, or distribution of Your modifications, or126 for any such Derivative Works as a whole, provided Your use,127 reproduction, and distribution of the Work otherwise complies with

neogrokdoc/faq.md 1 match | Markdown | №5

50 51 * Ranking: interesting results (eg. function definitions, whole word52 matches) should be at the top.

neogrokapi_proto.go 4 matches | Go | №6

697 EstimateDocCount: p.GetEstimateDocCount(),698 Whole: p.GetWhole(),699 ShardMaxMatchCount: int(p.GetShardMaxMatchCount()),
720 EstimateDocCount: s.EstimateDocCount,721 Whole: s.Whole,722 ShardMaxMatchCount: int64(s.ShardMaxMatchCount),

neogrokweb/server.go 1 match | Go | №7

652 sOpts := zoekt.SearchOptions{653 Whole: true,654 }

neogrokindex/eval.go 1 match | Go | №8

344 sortChunkMatchesByScore(fileMatch.ChunkMatches)345 if opts.Whole {346 fileMatch.Content = cp.data(false)

neogroksearch/sched.go 1 match | Go | №9

79 // We want to avoid the need to tune the scheduler depending on the workload /80 // instance. As such we use a simple design whose inputs are time and number81 // of CPUs.

neogroksearch/shards.go 1 match | Go | №10

110 Name: "zoekt_search_files_skipped_total",111 Help: "Total candidate files whose contents weren't examined because a search limit was reached or the search context was canceled",112 })

neogrokweb/templates.go 7 matches | Go | №11

170 <dt><a href="search?q=needle+-hay">needle -hay</a></dt><dd>search for files with the word "needle" but not the word "hay"</dd>171 <dt><a href="search?q=path+file:java">path file:java</a></dt><dd>search for the word "path" in files whose name contains "java"</dd>172 <dt><a href="search?q=needle+lang%3Apython&num=50">needle lang:python</a></dt><dd>search for "needle" in Python source code</dd>173 <dt><a href="search?q=f:%5C.c%24">f:\.c$</a></dt><dd>search for files whose name ends with ".c"</dd>174 <dt><a href="search?q=path+-file:java">path -file:java</a></dt><dd>search for the word "path" excluding files whose name contains "java"</dd>175 <dt><a href="search?q=foo.*bar">foo.*bar</a></dt><dd>search for the regular expression "foo.*bar"</dd>
178 <dt><a href="search?q=sym:data">sym:data</a></span></dt><dd>search for symbol definitions containing "data"</dd>179 <dt><a href="search?q=phone+r:droid">phone r:droid</a></dt><dd>search for "phone" in repositories whose name contains "droid"</dd>180 <dt><a href="search?q=phone+archived:no">phone archived:no</a></dt><dd>search for "phone" in repositories that are not archived</dd>
182 <dt><a href="search?q=phone+public:no">phone public:no</a></dt><dd>search for "phone" in repositories that are not public</dd>183 <dt><a href="search?q=phone+b:master">phone b:master</a></dt><dd>for Git repos, find "phone" in files in branches whose name contains "master".</dd>184 <dt><a href="search?q=phone+b:HEAD">phone b:HEAD</a></dt><dd>for Git repos, find "phone" in the default ('HEAD') branch.</dd>

neogrokgitindex/index.go 1 match | Go | №12

866 867 // Git's blob:limit filter excludes blobs whose size is >= the given limit,868 // while zoekt indexes files up to and including SizeMax bytes.

neogrokdoc/query_syntax.md 1 match | Markdown | №13

131 132 `type:` applies to the whole expression in its current scope, including `or`133 clauses. For example, `type:repo foo or bar` is equivalent to

neogroklanguages/extensions.go 1 match | Go | №14

166 //167 // We cannot wholesale ignore these languages, as this list includes168 // languages like XML, but it can contain unusual extensions like '.tsx'

neogrokcmd/zoekt-webserver/main.go 2 matches | Go | №15

527 sglog.Bool("opts.EstimateDocCount", opts.EstimateDocCount),528 sglog.Bool("opts.Whole", opts.Whole),529 sglog.Int("opts.ShardMaxMatchCount", opts.ShardMaxMatchCount),

neogrokcmd/zoekt-mirror-gitea/main.go 4 matches | Go | №16

60 deleteRepos := flag.Bool("delete", false, "delete missing repos")61 namePattern := flag.String("name", "", "only clone repos whose name matches the given regexp.")62 excludePattern := flag.String("exclude", "", "don't mirror repos whose names match this regexp.")63 topics := topicsFlag{}64 flag.Var(&topics, "topic", "only clone repos whose have one of given topics. You can add multiple topics by setting this more than once.")65 excludeTopics := topicsFlag{}66 flag.Var(&excludeTopics, "exclude_topic", "don't clone repos whose have one of given topics. You can add multiple topics by setting this more than once.")67 noArchived := flag.Bool("no_archived", false, "mirror only projects that are not archived")

neogrokcmd/zoekt-mirror-gerrit/main.go 2 matches | Go | №17

94 dest := flag.String("dest", "", "destination directory")95 namePattern := flag.String("name", "", "only clone repos whose name matches the regexp.")96 repoNameFormat := flag.String("repo-name-format", qualifiedRepoNameFormat, fmt.Sprintf("the format of the local repo name in zoekt (valid values: %s)", strings.Join(validRepoNameFormat, ", ")))97 excludePattern := flag.String("exclude", "", "don't mirror repos whose names match this regexp.")98 deleteRepos := flag.Bool("delete", false, "delete missing repos")

neogrokcmd/zoekt-mirror-github/main.go 4 matches | Go | №18

64 deleteRepos := flag.Bool("delete", false, "delete missing repos")65 namePattern := flag.String("name", "", "only clone repos whose name matches the given regexp.")66 excludePattern := flag.String("exclude", "", "don't mirror repos whose names match this regexp.")67 topics := topicsFlag{}68 flag.Var(&topics, "topic", "only clone repos whose have one of given topics. You can add multiple topics by setting this more than once.")69 excludeTopics := topicsFlag{}70 flag.Var(&excludeTopics, "exclude_topic", "don't clone repos whose have one of given topics. You can add multiple topics by setting this more than once.")71 noArchived := flag.Bool("no_archived", false, "mirror only projects that are not archived")

neogrokcmd/zoekt-mirror-gitlab/main.go 2 matches | Go | №19

51 excludeUserRepos := flag.Bool("exclude_user", false, "exclude user repos")52 namePattern := flag.String("name", "", "only clone repos whose name matches the given regexp.")53 excludePattern := flag.String("exclude", "", "don't mirror repos whose names match this regexp.")54 lastActivityAfter := flag.String("last_activity_after", "", "only mirror repos that have been active since this date (format: 2006-01-02).")

neogrokcmd/zoekt-mirror-gitiles/main.go 2 matches | Go | №20

39 dest := flag.String("dest", "", "destination directory")40 namePattern := flag.String("name", "", "only clone repos whose name matches the regexp.")41 excludePattern := flag.String("exclude", "", "don't mirror repos whose names match this regexp.")42 hostType := flag.String("type", "gitiles", "which webserver to crawl. Choices: gitiles, cgit")