Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
            }
        }