Skip to content

Commit f2bc757

Browse files
committed
Updating search factory interfaces
Moving a method for adding new FilterDefs from ISearchFactory to ISearchFactoryImplementor.
1 parent 908a1fe commit f2bc757

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/NHibernate.Search/Engine/ISearchFactoryImplementor.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,15 @@ public interface ISearchFactoryImplementor : ISearchFactory
3030
void AddIndexingParameters(IDirectoryProvider provider, LuceneIndexingParameters indexingParameters);
3131

3232
void Close();
33+
34+
/// <summary>
35+
/// Adds a FilterDef object to the ISearchFactory implementation with the given name.
36+
/// In most cases, FilterDefs should be added during mapping configuration in a
37+
/// custom ISearchMapping implementation. This method enables FilterDefs to be added
38+
/// after mapping at run-time anytime an IFullTextSession is available.
39+
/// </summary>
40+
/// <param name="name"></param>
41+
/// <param name="filter"></param>
42+
void AddFilterDefinition(string name, FilterDef filter);
3343
}
3444
}

src/NHibernate.Search/ISearchFactory.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,5 @@ public interface ISearchFactory
5353
/// <param name="name"></param>
5454
/// <returns>A FilterDef object associated with the included name parameter.</returns>
5555
FilterDef GetFilterDefinition(string name);
56-
57-
/// <summary>
58-
/// Adds a FilterDef object to the ISearchFactory implementation with the given name.
59-
/// In most cases, FilterDefs should be added during mapping configuration in a
60-
/// custom ISearchMapping implementation. This method enables FilterDefs to be added
61-
/// after mapping at run-time anytime an IFullTextSession is available.
62-
/// </summary>
63-
/// <param name="name"></param>
64-
/// <param name="filter"></param>
65-
void AddFilterDefinition(string name, FilterDef filter);
6656
}
6757
}

0 commit comments

Comments
 (0)