Reading up on Lucene, it seems it's recommeneded to use the same instance of IndexSearcher across all requests.
If I have a search class which is injected using ninject
public interface IPatientSearch
{
void DoSearch(ref SearchDTO _search);
//...
}
Would there be any issues binding it using InSingletonScope, which would ensure the same instance is shared across all requests?
Bind<IPatientSearch>().To<PatientSearch>().InSingletonScope();
Am I missing any obvious pitfalls of using such an approach?