Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-suhas authored Mar 20, 2024
1 parent b989038 commit 47f8e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/knn.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Query = require('./query');
* [Elasticsearch reference](https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search.html)
*/
class KNN {
// eslint-disable-next-line require-jsdoc
// eslint-disable-next-line require-jsdoc
constructor(field, k, numCandidates) {
if (k > numCandidates)
throw new Error('KNN numCandidates cannot be less than k');
Expand Down Expand Up @@ -87,7 +87,7 @@ class KNN {
*
* @example
* let knn = new esb.KNN().filter([
* new esb.TermQuery('field1', 'value1'),
* new esb.TermQuery('field1', 'value1'),
* new esb.TermQuery('field2', 'value2')
* ]); // Applying multiple filter queries
*/
Expand Down

0 comments on commit 47f8e39

Please sign in to comment.