#17436: Filtering search results on current culture

Work Item: 17436

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-11-29 11:32:28 -08:00
parent 63c2ac7d98
commit 52ea7ce9b8
@@ -1,4 +1,5 @@
using System; using System;
using System.Globalization;
using System.Linq; using System.Linq;
using Orchard.Collections; using Orchard.Collections;
using Orchard.Indexing; using Orchard.Indexing;
@@ -34,14 +35,12 @@ namespace Orchard.Search.Services {
var searchBuilder = Search().Parse(searchFields, query); var searchBuilder = Search().Parse(searchFields, query);
if (filterCulture) { if (filterCulture) {
/* TODO: (sebros) Implementations details after Alpha
var culture = _cultureManager.GetSiteCulture(); var culture = _cultureManager.GetSiteCulture();
// use LCID as the text representation gets analyzed by the query parser // use LCID as the text representation gets analyzed by the query parser
searchBuilder searchBuilder
.WithField("culture", CultureInfo.GetCultureInfo(culture).LCID) .WithField("culture", CultureInfo.GetCultureInfo(culture).LCID)
.AsFilter(); .AsFilter();
*/
} }
var totalCount = searchBuilder.Count(); var totalCount = searchBuilder.Count();