You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Yue Yu <yu...@bloomreach.com> on 2024/05/10 19:35:28 UTC
solr9.5 dense vector search using "Double" type instead of "Float"
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
Re: solr9.5 dense vector search using "Double" type instead of "Float"
Posted by Alessandro Benedetti <a....@sease.io>.
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.benedetti@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 <yu...@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
>