-
Notifications
You must be signed in to change notification settings - Fork 477
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
how to deal with nested objects #14
Comments
I don't think the current stable version of solr support complex object or Best regards
|
Currently at the moment Solr doesn't support nested json. You can have lists though. So if you have something like: In your schema.xml, you can do something like: db.insert({'cat' : ['foo', 'bar']}) I think at the moment this is as close as you can get unfortunately. If this changes I will reopen the issue and add support. |
SEAR-137, add one oplog timestamp file per index
Hi folks,
I'm having trouble to import nested objects into solr. my mongodb object has this form:
rs0:PRIMARY> x
{
"_id" : ObjectId("50c44df9058f6fe4cb69335e"),
"date" : ISODate("2012-12-09T05:00:00Z"),
"nid" : 3,
"sid" : 17411,
"siteRef" : "3-17411",
"total" : {
"a" : 311119,
"ab" : 248929,
"aw" : 4308,
"c" : 1.9857989999999885,
"r" : 0.2903688648648634
},
"web" : {
"a" : 311119,
"ab" : 248929,
"aw" : 4308,
"c" : 1.9857989999999885,
"r" : 0.2903688648648634
}
}
SEVERE: org.apache.solr.common.SolrException: ERROR: [doc=50c44df9058f6fe4cb69335e] Error adding field 'total'='[a, c, ab, r, aw]'
this is the error from solr... but it's only to highlight that solr see "total" as an Array, but it's supposed to be a JSON Object.
Anyway about the schema.xml in Solr I put a bad parameter to raise an error to show that structure.
But with the following configuration :
there is no error but the structures "web" "total" doesn't show up in solr
The text was updated successfully, but these errors were encountered: