[prev in list] [next in list] [prev in thread] [next in thread]
List: solr-user
Subject: Re: indexing documents
From: Erick Erickson <erickerickson () gmail ! com>
Date: 2013-05-31 11:43:27
Message-ID: CAN4YXveXK2_vQ_3XROPDLfaoYv2j0+3oO-aBAHd1ccgk6zkgpQ () mail ! gmail ! com
[Download RAW message or body]
Solr JSON isn't intended to index arbitrary JSON, and especially not
intended to index nested documents. I suspect your issue is that
"cat" has an array of name/value pairs that Solr doesn't understand.
So no, I don't think you can index these docs without putting them into
a form Solr understands.
Best
Erick
On Thu, May 30, 2013 at 3:46 PM, Igor Littig <igor.littig@gmail.com> wrote:
> Good day everyone.
>
> I recently faced another problem. I've got a bunch of documents to index.
> The problem, that they in the same time database for another application.
> These documents stored in JSON format in the following scheme:
>
> {
> "id": 10,
> "name": "dad 177",
> "cat":[{
> "id":254,
> "name":"124"
> }]
> }
>
> When I'm trying to post them, I get the following error:
>
> ERROR org.apache.solr.core.SolrCore =96
> org.apache.solr.common.SolrException: Unknown command: id [8]
>
> Is there a way to index these documents without changing ? How can i
> modify the schema or I need to do something else ?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic