Hi Mauricio,
Thank You very much for your reply..
My Code is like below to get the products from Solr.
var mySort = new[] {
new SortOrder("specialoffer", Order.DESC),
new SortOrder("newproduct", Order.DESC),
new SortOrder("featured", Order.DESC),
};
var matchingProducts = solr.Query(sq, new QueryOptions
{
FilterQueries = BuildFilterQueries(parameters),
Rows = parameters.PageSize,
Start = start,
OrderBy = mySort,
Facet = new FacetParameters
{
Queries = AllFacetFields.Except(SelectedFacetFields(parameters))
.Select(f => new SolrFacetFieldQuery(f) { MinCount = 1 })
.Cast<ISolrFacetQuery>()
.ToList(),
Limit = 9999,
},
});here I want pass Company name "Samsung" if user1 logged in and show samsung products on top of the result( can appear after the SortOrder) .
can you please help...
Thanks
Regards
Siva