lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Mongo REST interface and full data import
Date Mon, 04 Apr 2011 11:51:11 GMT
I'm having trouble seeing your schema files, etc. I don't
know if gmail is stripping this on my end or whether
your e-mail is stripping it on upload, anyone else seeing this?

But to your question, what version are you using? From
Solr3.1 <http://wiki.apache.org/solr/Solr3.1> is the first version with JSON
support for updates.

See: http://wiki.apache.org/solr/UpdateJSON

<http://wiki.apache.org/solr/UpdateJSON>Best
Erick

On Mon, Apr 4, 2011 at 5:31 AM, andrew_s <sharov1982@gmail.com> wrote:

> Hi everyone,
>
> I'm trying to make a simple data import from MongoDB into Solr using REST
> interface.
>
> As an test example I've created schecma.xml like:
> <?xml version="1.0" ?>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  isbn
>
>
>  title
>
>
>
>
>
>
> and data-import.xml as:
>
>
>
>
>
>
>
>
>
>
>
>
> Unfortunately it's not working and I'm stuck  on this place.
>
> Could you please advise how correctly parser JSON format data?
>
>
> Data format looks like:
> {
>  "offset" : 0,
>  "rows": [
>    { "_id" : { "$oid" : "4d9829412c8bd10644000000" }, "isbn" : "716739356",
> "title" : "Proteins", "description" : "" } ,
>    { "_id" : { "$oid" : "4d9829412c8bd10644000001" }, "isbn" :
> "144433056X", "title" : "How to Assess Doctors and Health Professionals",
> "description" : "" } ,
>    { "_id" : { "$oid" : "4d9829412c8bd10644000002" }, "isbn" :
> "1406208159", "title" : "Freestyle: Time Travel Guides: Pack B",
> "description" : "Takes you on a trip through history to visit the great
> ancient civilisations." } ,
>  "total_rows" : 3 ,
>  "query" : {} ,
>  "millis" : 0
> }
>
>
> Thank you.
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Mongo-REST-interface-and-full-data-import-tp2774479p2774479.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message