A byte can be used to represent 2^8 different values.

Apache Solr supports each element b as a byte (-128 to 127).

A double in Java needs 8 bytes, so you won't be able to encode a
double in a single byte lossless.


Cheers
--------------------------
*Alessandro Benedetti*
Director @ Sease Ltd.
*Apache Lucene/Solr Committer*
*Apache Solr PMC Member*

e-mail: a.benede...@sease.io


*Sease* - Information Retrieval Applied
Consulting | Training | Open Source

Website: Sease.io <http://sease.io/>
LinkedIn <https://linkedin.com/company/sease-ltd> | Twitter
<https://twitter.com/seaseltd> | Youtube
<https://www.youtube.com/channel/UCDx86ZKLYNpI3gzMercM7BQ> | Github
<https://github.com/seaseltd>


On Fri, 10 May 2024 at 21:36, Yue Yu <yue...@bloomreach.com> wrote:

> Hi All,
>
> Is there a way to index and search with vectors of double? According to
> https://solr.apache.org/guide/solr/9_5/query-guide/dense-vector-search.html
> vectorEncoding only supports "FLOAT32" or "BYTE", has anyone tried to use
> "BYTE" to encode double value?
>
> Thanks,
>
> Yue
>

Reply via email to