0
0
Fork 0
bleve/search/scorer
Marty Schoch f8fdfebb6c refactor searchers
- TermSearcher has alternate constructor if term is []byte, this can avoid
  copying in some cases.  TermScorer updated to accept []byte term. Also
  removed a few struct fields which were not being used.

- New MultiTermSearcher searches for documents containing any of a list of
  terms.  Current implementation simply uses DisjunctionSearcher.

- Several other searcher constructors now simply build a list of terms and
  then delegate to the MultiTermSearcher
  - NewPrefixSearcher
  - NewRegexpSearcher
  - NewFuzzySearcher
  - NewNumericRangeSearcher

- NewGeoBoundingBoxSearcher and NewGeoPointDistanceSearcher make use of
  the MultiTermSearcher internally, and follow the pattern of returning
  an existing search.Searcher, as opposed to their own wrapping struct.

- Callback filter functions used in NewGeoBoundingBoxSearcher and
  NewGeoPointDistanceSearcher have been extracted into separate functions
  which makes the code much easier to read.
2017-03-31 17:21:46 -04:00
..
scorer_conjunction.go API change: optional SearchRequest.IncludeLocations flag 2017-01-05 21:11:22 -08:00
scorer_constant.go API change: optional SearchRequest.IncludeLocations flag 2017-01-05 21:11:22 -08:00
scorer_constant_test.go API change: optional SearchRequest.IncludeLocations flag 2017-01-05 21:11:22 -08:00
scorer_disjunction.go API change: optional SearchRequest.IncludeLocations flag 2017-01-05 21:11:22 -08:00
scorer_term.go refactor searchers 2017-03-31 17:21:46 -04:00
scorer_term_test.go refactor searchers 2017-03-31 17:21:46 -04:00
sqrt_cache.go actually rename packages to singular, not just directory name 2016-10-02 10:29:39 -04:00