alpha
Login
or
Join now
boltless.me
/
zoekt
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
fork of https://github.com/sourcegraph/zoekt
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
zoekt
/
query
/
at
27d9399df934e8d3061ce56fe1a65f5019188bb3
12 files
Keegan Carruthers-Smith
all: gofumpt -l -w .
2y ago
b227501a
bits.go
all: gofumpt -l -w . gofumpt is a stricter gofmt. I took a look at the changes and in general they are nice. I don't think we need to enforce the use of gofumpt, but I like the idea of running it every once in a while. Test Plan: go test ./...
2 years ago
boost.go
score: introduce query.Boost to scale score (#728) This commit introduces a new primitive Boost to our query language. It allows boosting (or dampening) the contribution to the score a query atoms will match contribute. To achieve this we introduce boostMatchTree which records this weight. We then adjust the visitMatches to take an initial score weight (1.0), and then each time we recurse through a boostMatchTree the score weight is multiplied by the boost weight. Additionally candidateMatch now has a new field, scoreWeight, which records the weight at time of candidate collection. Without boosting in the query this value will always be 1. Finally when scoring a candidateMatch we take the final score for it and multiply it by scoreWeight. Note: we do not expose a way to set this in the query language, only the query API. Test Plan: Manual testing against webserver via the new phrase-boost URL param. Additionally updated ranking tests to use the phrase booster.
2 years ago
marshal.go
query: introduce FileNameSet (#482) Sourcegraph's new hybrid searcher sends around large ORs of filenames to search for. FileNameSet provides an efficient implementation to transport and query these sets of filenames. We include an efficient gob implementation based on previous work around encoding a more complicated map of strings. Test Plan: Added unit tests. Additionally, updated sourcegraph to use this implementation and ran its tests.
3 years ago
marshal_test.go
query: introduce FileNameSet (#482) Sourcegraph's new hybrid searcher sends around large ORs of filenames to search for. FileNameSet provides an efficient implementation to transport and query these sets of filenames. We include an efficient gob implementation based on previous work around encoding a more complicated map of strings. Test Plan: Added unit tests. Additionally, updated sourcegraph to use this implementation and ran its tests.
3 years ago
parse.go
all: gofumpt -l -w . gofumpt is a stricter gofmt. I took a look at the changes and in general they are nice. I don't think we need to enforce the use of gofumpt, but I like the idea of running it every once in a while. Test Plan: go test ./...
2 years ago
parse_test.go
query: parse support for `fork:` and `public:` (#550) Add support for parsing queries for zoekt.fork and zoekt.public.
3 years ago
query.go
score: introduce query.Boost to scale score (#728) This commit introduces a new primitive Boost to our query language. It allows boosting (or dampening) the contribution to the score a query atoms will match contribute. To achieve this we introduce boostMatchTree which records this weight. We then adjust the visitMatches to take an initial score weight (1.0), and then each time we recurse through a boostMatchTree the score weight is multiplied by the boost weight. Additionally candidateMatch now has a new field, scoreWeight, which records the weight at time of candidate collection. Without boosting in the query this value will always be 1. Finally when scoring a candidateMatch we take the final score for it and multiply it by scoreWeight. Note: we do not expose a way to set this in the query language, only the query API. Test Plan: Manual testing against webserver via the new phrase-boost URL param. Additionally updated ranking tests to use the phrase booster.
2 years ago
query_proto.go
add query.Boost to protobuf (#731) This adds the new Boost query atom to the protobuf defintion. Co-authored-by: Keegan Carruthers-Smith <keegan.csmith@gmail.com>
2 years ago
query_proto_test.go
all: gofumpt -l -w . gofumpt is a stricter gofmt. I took a look at the changes and in general they are nice. I don't think we need to enforce the use of gofumpt, but I like the idea of running it every once in a while. Test Plan: go test ./...
2 years ago
query_test.go
query: fix expandFileContent (#483) This fixes a bug where if s.FileName and s.Content were TRUE, we didn't expand and the resulting matchTree was implicitly matching filenames only. Now we match content and filenames if s.Filename == s.Content.
3 years ago
regexp.go
Export regexp optimisations (#392) Export regexp optimisations for use by Sourcegraph and Searcher
4 years ago
regexp_test.go
Export regexp optimisations (#392) Export regexp optimisations for use by Sourcegraph and Searcher
4 years ago