https://github.com/fiverr/solr_mongo_importer
https://github.com/fiverr/solr_mongo_importer
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fiverr/solr_mongo_importer
- Owner: fiverr
- Created: 2013-06-02T13:34:46.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T13:25:22.000Z (over 2 years ago)
- Last Synced: 2025-01-08T21:36:17.829Z (5 months ago)
- Language: Java
- Size: 14.6 KB
- Stars: 1
- Watchers: 127
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a Fiverr version of the Solr Mongo Importer. The changes are: It uses the mongo 2.11.1 java driver and it sets the mongo replica set mode to 'secondary preferred'. Two lines of changes..
============================================
ORIGINAL DOCUMENTATION..
# Solr Mongo Importer
Welcome to the Solr Mongo Importer project. This project provides MongoDb support for the Solr Data Import Handler.## Features
* Retrive data from a MongoDb collection
* Authenticate using MongoDb authentication
* Map Mongo fields to Solr fields## Classes
* MongoDataSource - Provides a MongoDb datasource
* database (**required**) - The name of the data base you want to connect to
* host (*optional* - default: localhost)
* port (*optional* - default: 27017)
* username (*optional*)
* password (*optional*)
* MongoEntityProcessor - Use with the MongoDataSource to query a MongoDb collection
* collection (**required**)
* query (**required**)
* MongoMapperTransformer - Map MongoDb fields to your Solr schema
* mongoField (**required**)## Installation
1. Firstly you will need a copy of the Solr Mongo Importer jar.
### Getting Solr Mongo Importer
1. [Download the JAR from github](https://github.com/james75/SolrMongoImporter/downloads)
2. Build your own using the ant build script you will need the JDK installed as well as Ant and Ivy
2. You will also need the [Mongo Java driver JAR] (https://github.com/mongodb/mongo-java-driver/downloads)3. Place both of these jar's in your Solr libaries folder ( I put mine in 'dist' folder with the other jar's)
4. Add lib directives to your solrconfig.xml```xml
```##Usage
Here is a sample data-config.xml showing the use of all components
```xml
```