Getting started
To start to use SolrExpress, just follow follow steps:
Create a class to represent your collection, extend Document class and use attributes to indicate Solr fields.
Choose your favorite Dependency Injection provider (SolrExpress.DI.Autofac, SolrExpress.DI.CoreClr, SolrExpress.DI.Ninject or SolrExpress.DI.SimpleInject) and add reference to package
Add reference to correct Solr provider (SolrExpress.Solr4 or SolrExpress.Solr5)
Configure SolrExpress setting Solr host address for each collection
Configue search parameters, execute, read results and enjoy :)
NOTES
Class TechProductDocument represents a document in Solr collection and to be easy to identitify this, I call this class with the same name of the Solr collection (techproducts) but you can choose any name what you want, just remember, extends Document class;
To example purposes, I set collection address in hard code.
Last updated