Hi Mauricio,
I am almost there, struggling to combine the Solr Query field and
Solr Range field.
here is what i got, I am setting value for search parameters pricefrom
and priceto values on controller and trying to build the filter query
as below
public ICollection<ISolrQuery> BuildFilterQueries(SearchParameters
parameters)
{
var queriesFromFacets = from p in parameters.Facets
select (ISolrQuery)Query.Field(p.Key).Is(p.Value);
if (parameters.pricefrom > 0 && parameters.priceto > 0)
{
var myqry = new SolrQueryByRange<decimal>("tradeprice",
parameters.pricefrom, parameters.priceto);
//BEFORE RETURN THE FILTER QUERY I
WANT TO COMBINE THE "queriesFromFacets" with "myqry(RANGE QUERY) " , I
HAVE TRIED CASTING ETC..NOTHING WORKING..CAN YOU HELP
return queriesFromFacets.ToList();
}
else {
return queriesFromFacets.ToList();
}
}
THANKS
Regards
Siva
On Sep 7, 3:12 pm, Mauricio Scheffer <
mauricioschef...@gmail.com>
wrote: