예제 #1
0
 protected TrackDao(
     ISolrOperations <TrackDTO> solrForTracksCore,
     ISolrOperations <SubFingerprintDTO> solrForSubfingerprintsCore,
     ISolrQueryBuilder solrQueryBuilder)
 {
     this.solrForTracksCore          = solrForTracksCore;
     this.solrForSubfingerprintsCore = solrForSubfingerprintsCore;
     this.solrQueryBuilder           = solrQueryBuilder;
 }
예제 #2
0
        internal SubFingerprintDao(ISolrOperations <SubFingerprintDTO> solr, IDictionaryToHashConverter dictionaryToHashConverter, IHashConverter hashConverter, ISolrQueryBuilder solrQueryBuilder)
        {
            this.solr = solr;
            this.dictionaryToHashConverter = dictionaryToHashConverter;
            this.hashConverter             = hashConverter;
            this.solrQueryBuilder          = solrQueryBuilder;
            var hashinConfig = new DefaultHashingConfig();

            fingerprintLength = hashinConfig.NumberOfLSHTables * hashinConfig.NumberOfMinHashesPerTable;
        }