Пример #1
0
        public SonesLuceneIndex(String myIndexId, String myPersistencePath = null, IList<Int64> myPropertyIDs = null)
        {
            if (myIndexId == null)
                throw new ArgumentNullException("myIndexId");

            if (myPersistencePath == null)
            {
                _LuceneIndex = new LuceneIndex(myIndexId);
            }
            else
            {
                _LuceneIndex = new LuceneIndex(myIndexId, myPersistencePath);
            }

            IndexId = myIndexId;

            if (myPropertyIDs != null)
            {
                Init(myPropertyIDs);
            }
        }
Пример #2
0
        public SonesLuceneIndex(String myIndexId, String myPersistencePath = null, IList <Int64> myPropertyIDs = null)
        {
            if (myIndexId == null)
            {
                throw new ArgumentNullException("myIndexId");
            }

            if (myPersistencePath == null)
            {
                _LuceneIndex = new LuceneIndex(myIndexId);
            }
            else
            {
                _LuceneIndex = new LuceneIndex(myIndexId, myPersistencePath);
            }

            IndexId = myIndexId;

            if (myPropertyIDs != null)
            {
                Init(myPropertyIDs);
            }
        }