mirror of https://github.com/apache/lucene.git
Ref Guide: knn documentation
This commit is contained in:
parent
489d2a4aab
commit
70ecf9ef3e
|
@ -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.
|
||||
* `qf`: (Mandatory) The query field used to compare documents.
|
||||
* `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.
|
||||
* `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.
|
||||
|
@ -243,6 +243,7 @@ use the More Like This query parser plugin.
|
|||
knn(collection1,
|
||||
id="doc1",
|
||||
qf="text_field",
|
||||
k="10",
|
||||
fl="id, title",
|
||||
mintf="3",
|
||||
maxdf="10000000")
|
||||
|
|
Loading…
Reference in New Issue