You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Geren White <ge...@1stdibs.com> on 2022/06/28 16:58:14 UTC
Currency field type with payloads
Hello all,
I'm wondering if anyone has run into a scenario where they need a currency
field type with conversion support but also regional pricing? Right now we
are using the currency field type so we can support items in multiple
currencies and convert the price at query time. We'd like to add support
for multiple price types or regional pricing so we were looking at
leveraging payloads. Since payloads are supported through a filter on
TextField and the currency field doesn't support analyzers/filters it
doesn't seem possible.
Anyone run into this and have suggestions?
--
*Geren White | Senior Director, Engineering*
*(e)* geren@1stdibs.com
Re: Currency field type with payloads
Posted by Geren White <ge...@1stdibs.com>.
Hey Jan,
Thanks for the suggestion! That would work for us and actually solve some
minor issues we've had with the currency field type.
On Mon, Jul 4, 2022 at 2:00 PM Jan Høydahl <ja...@cominvent.com> wrote:
> Can you let your backend modify the prices at query time through a
> FunctionQuery, e.g. mul(price_field,0.8)?
>
> Jan
>
> > 28. jun. 2022 kl. 18:58 skrev Geren White <ge...@1stdibs.com>:
> >
> > Hello all,
> >
> > I'm wondering if anyone has run into a scenario where they need a
> currency
> > field type with conversion support but also regional pricing? Right now
> we
> > are using the currency field type so we can support items in multiple
> > currencies and convert the price at query time. We'd like to add support
> > for multiple price types or regional pricing so we were looking at
> > leveraging payloads. Since payloads are supported through a filter on
> > TextField and the currency field doesn't support analyzers/filters it
> > doesn't seem possible.
> >
> > Anyone run into this and have suggestions?
> >
> > --
> > *Geren White | Senior Director, Engineering*
> > *(e)* geren@1stdibs.com
>
>
--
*Geren White | Senior Director, Engineering*
*(e)* geren@1stdibs.com
Re: Currency field type with payloads
Posted by Jan Høydahl <ja...@cominvent.com>.
Can you let your backend modify the prices at query time through a FunctionQuery, e.g. mul(price_field,0.8)?
Jan
> 28. jun. 2022 kl. 18:58 skrev Geren White <ge...@1stdibs.com>:
>
> Hello all,
>
> I'm wondering if anyone has run into a scenario where they need a currency
> field type with conversion support but also regional pricing? Right now we
> are using the currency field type so we can support items in multiple
> currencies and convert the price at query time. We'd like to add support
> for multiple price types or regional pricing so we were looking at
> leveraging payloads. Since payloads are supported through a filter on
> TextField and the currency field doesn't support analyzers/filters it
> doesn't seem possible.
>
> Anyone run into this and have suggestions?
>
> --
> *Geren White | Senior Director, Engineering*
> *(e)* geren@1stdibs.com