{
"Prices":[
{
Currency:"EUG",
Price: 1.0
},
{
Currency:"EHG",
Price: 1.1
}
]
}
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
_ = product.FromPrices.Select(x => CreateField("Price_" + x.Currency, x.Price))
the x.Price column is a double but is being treated as a string and I need to treat it as a double.
thanks.
_ = product.FromPrices.Select(x => CreateField("FromPrice_" + x.Currency, x.Price) ?? 0)
and query like this
var query = session.Advanced.LuceneQuery<ProductFilterModel, Indexes.ProductFilter>();
query.OrderBy("FromPrice__Range"); // assuming currency is an empty string
It just doesn't appear to want to sort the items correctly. Is there a way to see the actual indexed data? I want to compare this to the input data.
Thanks.
--
here is the part of the index that sets up the field_ = product.FromPrices.Select(x => CreateField("FromPrice_" + x.Currency, x.Price) ?? 0)
and query like this
var query = session.Advanced.LuceneQuery<ProductFilterModel, Indexes.ProductFilter>();
query.OrderBy("FromPrice__Range"); // assuming currency is an empty string
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--