lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <mkhlud...@griddynamics.com>
Subject Re: adding document with nested document require to set id
Date Thu, 19 Nov 2015 17:53:10 GMT
Hi,

Perhaps you want UUIDUpdateProcessorFactory loop through
SolrInputDocument.getChildDocuments() and assign generated value. You need
to implement an own update processor (by extending one of existing).

On Thu, Nov 19, 2015 at 7:41 PM, CrazyDiamond <Crazy_diamond@mail.ru> wrote:

> How exactly you are doing that?
> Doing what?
>         <field name="id" type="uuid" indexed="true" stored="true"
> required="true"
> />
> this is from schema.
>    <updateRequestProcessorChain name="uuid">
>    <processor class="solr.UUIDUpdateProcessorFactory">
>         <str name="fieldName">id</str>
>    </processor>
> ...
>  <updateRequestProcessorChain name="add-unknown-fields-to-the-schema">
>         <processor class="solr.UUIDUpdateProcessorFactory" />
>
> this is from config
>  i want to store in nested document  multiple values that should be grouped
> together, like pages ids and pages urls
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/adding-document-with-nested-document-require-to-set-id-tp4240908p4241058.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
<mkhludnev@griddynamics.com>

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