Re: Custom Query Implementation
Patrick Zhai <[email protected]> Mon, 2 Dec 2024 09:54:25 -0800
| Newsgroups | gmane.comp.jakarta.lucene.user |
|---|---|
| Message-ID | <CA+vuXU7jUGUpF14bjX8tJoibg5ewE+=LuLFT6uU5vGAQTfJbEQ@mail.gmail.com> |
Hi, have you tried to encode the sparse vector yourself using the BinaryDocValueField? One way I can think of is to encode it as (size, index_array, value_array) per doc Intuitively I feel like this should be more efficient than one dimension per field if your dimension is high enough Patrick On Mon, Dec 2, 2024, 09:03 Viacheslav Dobrynin <[email protected]> wrote: > Hi! > > I need to index sparse vectors, whereas as I understand it, > KnnFloatVectorField is designed for dense vectors. > Therefore, it seems that this approach will not work. > > вс, 1 дек. 2024 г. в 18:36, Mikhail Khludnev <[email protected]>: > > > Hi, > > May it look like KnnFloatVectorField(... DOT_PRODUCT) > > and KnnFloatVectorQuery? > > >