Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping nested documents for Solr #18

Closed
andrexus opened this issue Jan 17, 2013 · 4 comments
Closed

Mapping nested documents for Solr #18

andrexus opened this issue Jan 17, 2013 · 4 comments

Comments

@andrexus
Copy link

It can be completely wrong, but as I understood mongo-connector sends all documents into target system (in my case Solr) as is. Is there any way to map the collection and pass only necessary fields to Solr?

@stedile
Copy link
Contributor

stedile commented Jan 17, 2013

You should be able change the wrapper function on solr_doc_manager.py so that only the fields you want are sent to solr.

@andrexus
Copy link
Author

Do you mean upsert function in DocManager class?

@stedile
Copy link
Contributor

stedile commented Jan 18, 2013

Yes. You get the whole document as an argument, so you can choose which fields (or which documents) to actually insert in Solr.

@andrexus
Copy link
Author

thanx

lnader pushed a commit to lnader/mongo-connector that referenced this issue Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants