lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Bell <billnb...@gmail.com>
Subject Re: Indexing RestFul Json Service
Date Wed, 18 Dec 2013 05:00:28 GMT
There is a patch that we use in production that works great.

Name all the json fields ending in _json and String type.

wt=json&json.fsuffix=_json

And the json will not be escaped and work properly.



On Sun, Dec 15, 2013 at 10:42 AM, Alfredo Serafini <seralf@gmail.com> wrote:

> Hi Pritesh
>
> other two options for indexing generic json could be at the moment:
> 1) implement a specific json datasource for Data import handler (this
> should not be so complex, and it will be useful for others)
> 2) use httpsource, then a line entityprocessor to acquire the full json
> text (if you don't read the data as a stream but as a whole this could give
> some problem transferring huge files), then split the json by javascript
> using a and update.js approach while indexing
>
>
>
> Alfredo
>
>
> 2013/12/13 Ahmet Arslan <iorixxx@yahoo.com>
>
> > Hi,
> >
> > Solr accepts json. In the following form :
> >
> https://svn.apache.org/repos/asf/lucene/dev/trunk/solr/example/exampledocs/books.json
> >
> >
> >
> > On Friday, December 13, 2013 9:33 PM, Pritesh Patel <
> > priteshdevelopment@gmail.com> wrote:
> > Does anybody know how to index Json Data coming from a RestFul service?
>  I
> > see I can use the DIH to index xml data, but what about Json?
> >
> > --Pritesh
> >
> >
>



-- 
Bill Bell
billnbell@gmail.com
cell 720-256-8076

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