Ejemplo n.º 1
0
 public LuceneSession(IDocumentMapper <T> mapper, Context context, IQueryable <T> queryable)
 {
     this.mapper     = mapper;
     this.context    = context;
     this.queryable  = queryable;
     documentTracker = new SessionDocumentTracker(mapper);
 }
Ejemplo n.º 2
0
        public LuceneSession(IDocumentMapper <T> mapper, IDocumentModificationDetector <T> detector, IIndexWriter writer, Context context, IQueryable <T> queryable)
        {
            this.mapper    = mapper;
            this.writer    = writer;
            this.context   = context;
            this.queryable = queryable;

            documentTracker = new SessionDocumentTracker(detector);
        }