Skip to content

Commit bc0e277

Browse files
committed
Search: new interfaces for filtering
1 parent b09bcbe commit bc0e277

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
using System;
2+
3+
namespace SmartStore.Core.Search
4+
{
5+
public interface ISearchFilter
6+
{
7+
SearchFilterOccurence Occurence { get; }
8+
float Boost { get; }
9+
}
10+
11+
public interface ICompositeSearchFilter : ISearchFilter
12+
{
13+
ISearchFilter[] Filters { get; }
14+
}
15+
16+
public interface ITermSearchFilter : ISearchFilter
17+
{
18+
string FieldName { get; }
19+
IndexTypeCode TypeCode { get; }
20+
object Term { get; }
21+
bool IsExactMatch { get; }
22+
bool IsNotAnalyzed { get; }
23+
}
24+
25+
public interface IRangeSearchFilter : ITermSearchFilter
26+
{
27+
object UpperTerm { get; }
28+
bool IncludesLower { get; }
29+
bool IncludesUpper { get; }
30+
}
31+
}

src/Libraries/SmartStore.Core/SmartStore.Core.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@
410410
<Compile Include="Search\IndexProviderBase.cs" />
411411
<Compile Include="Search\ISearchBits.cs" />
412412
<Compile Include="Search\ISearchEngine.cs" />
413+
<Compile Include="Search\ISearchFilter.cs" />
413414
<Compile Include="Search\ISearchHit.cs" />
414415
<Compile Include="Search\ISearchQuery.cs" />
415416
<Compile Include="Search\NullIndexStore.cs" />

0 commit comments

Comments
 (0)