-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add KNN * Fix PR number in Changelog * Fix test for collapse and knn
- Loading branch information
1 parent
1a5594f
commit a3f5026
Showing
5 changed files
with
46 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require 'chewy/search/parameters/storage' | ||
|
||
module Chewy | ||
module Search | ||
class Parameters | ||
# Just a standard hash storage. Nothing to see here. | ||
# | ||
# @see Chewy::Search::Parameters::HashStorage | ||
# @see Chewy::Search::Request#knn | ||
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search.html | ||
class Knn < Storage | ||
include HashStorage | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require 'chewy/search/parameters/hash_storage_examples' | ||
|
||
describe Chewy::Search::Parameters::Knn do | ||
it_behaves_like :hash_storage, :knn | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters