简体   繁体   中英

Create a Solr Index using Lucene IndexWriter

I need to index vast amounts of content in extremely short order, I have tried various techniques using Solrnet/solr using threading and TPL, however the speeds leave a lot to be desired. Hence considering a move to using Lucene.net index writer to create an index (preliminarily I see almost an order of magnitude of speed improvement) . Any "gotchas" to be aware of?

I am not too sure if: 1. Trie based Numeric Range query would continue to be available for query via Solr. ( I am using NumericFields in Lucene)? 2. Faceting etc. would continue to be available ?

Anything else I need to watch out for?

Please see Scaling Lucene and Solr about improving run times.

If you decide to go with Lucene:

  • You need a unique id field for the index to be a valid Solr index.
  • The schema must match the Solr schema.
  • The Lucene version must be the same as in Solr.
  • I think the range query and faceting will be available, as long as you index the respective fields according to the requirements in Solr, and use the same analyzers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM