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: Inserting a field in the json doc before indexing
Date Tue, 20 Dec 2011 18:32:36 GMT
The other option is to write  custom update handler that injected the
data, a lot depends on whether you want to put the load on
the server or client.

Best
Erick

On Mon, Dec 19, 2011 at 1:35 PM, Anuj Kumar <anujsays@gmail.com> wrote:
> Hi Dipti,
>
> If you are receiving the JSON within your Java code, you can try any
> library, like- GSON [1] to manipulate JSON before sending it to Solr.
>
> - Anuj
>
> 1. http://code.google.com/p/google-gson/
>
> On Mon, Dec 19, 2011 at 11:54 PM, Dipti Srivastava <
> Dipti.Srivastava@apollogrp.edu> wrote:
>
>> Hi,
>> I am using HTTP and json to add my documents to Solr. Now, I have defined
>> a special field in the Solr schema which defines what type of document that
>> is being added. This field needs to be inserted into the json doc that I
>> receive from my caller. Is there a way to do this?
>>
>> Thanks!
>> Dipti
>>
>> ________________________________
>> This message is private and confidential. If you have received it in
>> error, please notify the sender and remove it from your system.
>>
>>

Mime
View raw message