​

zoekt: 47 files / 129 matches / 15.37ms neogrok: 20 files / 52 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.
986 987 // Return the whole file.988 Whole bool989
1119 addBool("EstimateDocCount", s.EstimateDocCount)1120 addBool("Whole", s.Whole)1121 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
483 484 func (x *SearchOptions) GetWhole() bool {485 if x != nil {486 return x.Whole487 }

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

53 54 // Return the whole file.55 bool whole = 2;56
335 336 // Candidate files whose contents weren't examined because a search limit337 // 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

699 EstimateDocCount: p.GetEstimateDocCount(),700 Whole: p.GetWhole(),701 ShardMaxMatchCount: int(p.GetShardMaxMatchCount()),
723 EstimateDocCount: s.EstimateDocCount,724 Whole: s.Whole,725 ShardMaxMatchCount: int64(s.ShardMaxMatchCount),

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

641 sOpts := zoekt.SearchOptions{642 Whole: true,643 }

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

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

neogrokquery/regexp.go 1 match | Go | №10

53 // It deliberately does not call Simplify: that expands bounded repeats like54 // x{0,500} into hundreds of nested groups, whose string form Go's regexp55 // parser rejects as nesting too deeply. Regexp compilation simplifies

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

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 | №12

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 | №13

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

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

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 | №15

172 //173 // We cannot wholesale ignore these languages, as this list includes174 // languages like XML, but it can contain unusual extensions like '.tsx'

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

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

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

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 | №18

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 | №19

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 | №20

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).")