Use a different (Lower) value for searching #680
-
Hi, From the implementation, I understand that internally there are as many Lucene fields as L indicates. So, in order to speed-up testing, I would like to be able to index with a high value of L (e.g. 300) but then be able to do searches with a lower value of L (that is, using only the first L' indices, where L' <= L ) So, I can compare results and do a table of execution_time/precision by different L values, without having to reindex millions of documents. That would be useful to take a decision about the best L to use (for a given K). So, my question/discussion is, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi Joan, thanks for the question. It's an interesting idea. There is no way to do this right now, but I do think it's possible to add. Here's a high-level outline of how: We would have to add the And thread it down all the way to this method: And use it constrain the A couple considerations:
|
Beta Was this translation helpful? Give feedback.
Hi Joan, thanks for the question. It's an interesting idea. There is no way to do this right now, but I do think it's possible to add. Here's a high-level outline of how:
We would have to add the
L'
parameter (maybe call itL_
) from the API layer:elastiknn/elastiknn-api4s/src/main/scala/com/klibisz/elastiknn/api/NearestNeighborsQuery.scala
Lines 48 to 54 in fab849a