We are attempting to leverage the CurrecyField type.  We have defined the
currency field type as:

<fieldType name="currency" class="solr.CurrencyField" precisionStep="8"
defaultCurrency="USD" currencyConfig="currency.xml" />


And defined a field as:

<dynamicField name="*_money" type="currency" indexed="true" stored="true"
multiValued="false" required="false" />


When querying the field with something like:

my_money:[* TO *]

The result is ALL documents (even though only 1 document actually has this
field populated.


When querying the field with something like:

+my_money:[* TO *] -my_money:0

We get the single document back.


So, it looks like there is a default of "0" for documents that don't have
the money value (even though required=false).  Is it possible to eliminate
this default?  Would we have better luck if we upgraded to Solr 4.1?

Thanks in advance.
-- 

*Gerald Blanck*

baro*m*eter*IT*

1331 Tyler Street NE, Suite 100
Minneapolis, MN 55413


612.208.2802

gerald.bla...@barometerit.com

Reply via email to