解決方式:
在 serchview.Search(...)之前, 先把 query做 and變更的處理
ex: QueryString="web android" → QueryString="and(web,android)"
// process when query contains space char
if (_customizeQuery.Contains(" "))
{
string[] splitString = _customizeQuery.Split(' ');
_query.QueryString
= string.Format("and({0})", string.Join(",", splitString));
}
_searchView = _searchFactory.GetSearchView(config.collection);
_searchResult = _searchView.Search(_query);
沒有留言:
張貼留言