Pnp-modern-search: refinabledecimal does not appear to work

Created on 28 Sep 2020  路  19Comments  路  Source: microsoft-search/pnp-modern-search

i have a currency field in a list and one of my requirements is to have the $ range as shown below which works for classic refiner.

image

Can achieve this in the modern filters? as of now i don't even see any options to filter on (like it isnt even crawled but it is because it works in classic) for filtering but the refinablestring works but the format wont satisfy our needs.

Triage bug

All 19 comments

@cpluceDev what does it look like if you pick the Default refinement item template? And you can manually enter RefinableDecimal00 in the setup for it to show as long as your query return values in it.
image

image

image

it works in the classic web part as illustrated in fist comment. seems straightforward.

refinableint also does not work. the column that is mapped is a currency column type

I have to map up some data to see if I can repro.

if this helps any, i will say i have the same options for the refiner templates no matter what the refinable type i have entered for the filtered managed property. in th classic refiner web part is changes depending on what is selected

Found the error - and it's due to the change to bring back more buckets for strings. Working on a fix.

thanks so much. i needed this. :)

as long as this web part has been in use, I cant believe no one else caught this :)

Pushed a fix to the dev branch, and will see if I have time to do a .3 release. OOF this week.

Pushed a .3 release with the fix just now.

thank you. will test today

will this give me the range template as illustrated above?

It will yes, as it divides results in 4 equal buckets. If you want custom buckets we need to add a setting.

I downloaded and installed the latest version but it still does shows no results

says it is declared but the value is never read.

image

I have this:
image
which in 3.15.3 shows as
image

I left the regex in there in case we need it later, so it's correct it's not in use.

i cant get this to work and my hosted workbench isn't working. it is like there was no updates applied to the web part. i did gulp bundle ship and gulp package ship

anything i can check? none of these are displaying any results.

image

image
image

the Numebr string is mapped to same column as the decimal and integer

Was this page helpful?
0 / 5 - 0 ratings