protected LuceneSearchWithSpatialContext(ILuceneProviderIndex index, CreateSearcherOption options = CreateSearcherOption.Writeable, SearchSecurityOptions securityOptions = SearchSecurityOptions.EnableSecurityCheck)
     : base(index, options, securityOptions)
 {
     Assert.ArgumentNotNull(index, "index");
     this.index    = index;
     this.settings = this.index.Locator.GetInstance <IContentSearchConfigurationSettings>();
 }
        public override Lucene.Net.Search.IndexSearcher CreateSearcher(CreateSearcherOption options)
        {
            this.EnsureInitialized();
            if ((options & CreateSearcherOption.Readonly) == CreateSearcherOption.Readonly)
            {
                if ((options & CreateSearcherOption.Cached) != CreateSearcherOption.Cached)
                {
                    return(new SpatialIndexSearcher(this.CreateReader(true)));
                }
                if (this.cachedReadonlyIndexSearcher != null)
                {
                    return(this.cachedReadonlyIndexSearcher);
                }
                return(this.cachedReadonlyIndexSearcher = new SpatialIndexSearcher(this.CreateReader(true)));
            }

            return(new SpatialIndexSearcher(this.CreateReader(false)));
        }
        public override Lucene.Net.Search.IndexSearcher CreateSearcher(CreateSearcherOption options)
        {
            this.EnsureInitialized();
            if ((options & CreateSearcherOption.Readonly) == CreateSearcherOption.Readonly)
            {
                if ((options & CreateSearcherOption.Cached) != CreateSearcherOption.Cached)
                {
                    return new SpatialIndexSearcher(this.CreateReader(true));
                }
                if (this.cachedReadonlyIndexSearcher != null)
                {
                    return this.cachedReadonlyIndexSearcher;
                }
                return (this.cachedReadonlyIndexSearcher = new SpatialIndexSearcher(this.CreateReader(true)));
            }

            return new SpatialIndexSearcher(this.CreateReader(false));
        }
 protected SpatialLuceneSearchContext(ILuceneProviderIndex index, CreateSearcherOption options = CreateSearcherOption.Writeable, SearchSecurityOptions securityOptions = SearchSecurityOptions.EnableSecurityCheck)
     : base(index, options, securityOptions)
 {
 }
 protected SpatialLuceneSearchContext(ILuceneProviderIndex index, CreateSearcherOption options = CreateSearcherOption.Writeable, SearchSecurityOptions securityOptions = SearchSecurityOptions.EnableSecurityCheck)
     : base(index, options, securityOptions)
 {
 }