Ref Guide: knn documentation

This commit is contained in:
Joel Bernstein 2017-06-09 12:23:58 -04:00
parent 489d2a4aab
commit 70ecf9ef3e
1 changed files with 2 additions and 1 deletions

View File

@ -228,7 +228,7 @@ use the More Like This query parser plugin.
* `id`: (Mandatory) The id of the source document to begin the knn search from. * `id`: (Mandatory) The id of the source document to begin the knn search from.
* `qf`: (Mandatory) The query field used to compare documents. * `qf`: (Mandatory) The query field used to compare documents.
* `k`: (Mandatory) The number of nearest neighbors to return. * `k`: (Mandatory) The number of nearest neighbors to return.
* `fl`: (Mandatory) The field list returned. * `fl`: (Mandatory) The field list to return.
* `mintf`: (Optional) The minimum numer of occurrences of the term in the source document to be inlcued in the search. * `mintf`: (Optional) The minimum numer of occurrences of the term in the source document to be inlcued in the search.
* `maxtf`: (Optional) The maximum numer of occurrences of the term in the source document to be inlcued in the search. * `maxtf`: (Optional) The maximum numer of occurrences of the term in the source document to be inlcued in the search.
* `mindf`: (Optional) The minimum numer of occurrences in the corpus to be inlcued in the search. * `mindf`: (Optional) The minimum numer of occurrences in the corpus to be inlcued in the search.
@ -243,6 +243,7 @@ use the More Like This query parser plugin.
knn(collection1, knn(collection1,
id="doc1", id="doc1",
qf="text_field", qf="text_field",
k="10",
fl="id, title", fl="id, title",
mintf="3", mintf="3",
maxdf="10000000") maxdf="10000000")