What version of Solr? See: https://issues.apache.org/jira/browse/SOLR-9166
Best, Erick On Sat, Jan 21, 2017 at 1:08 PM, Yago Riveiro <yago.rive...@gmail.com> wrote: > I'm trying to use the streaming API to reindex data from one collection to > another. > > I have a lot of dynamic fields on my documents and not every document has > the same fields, therefore, to fetch the list if fields that exists in the > collection, I need to run a luke query to fetch all of them. > > I ran the stream with the fl with all the fields returned by the luke query > an all documents returned has the same fields, so far so good. > > The main problem is that the field doesn't exist in the returned document is > filled with the default value of the field type, not ok. > > If the field doesn't exist in the document the return value can't be the > default value, should be something that we can identify as "this field > doesn't exists in this document" > > Right now I have a docs with 2 integer fields with value 0, one indeed > belongs to the document and was indexed with 0 as the correct value, the > other doesn't exists in the source document. > > Why not return the value as null? when indexing a field with null value is > ignored, the reverse operation should returns the same ... > > > > ----- > Best regards > > /Yago > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Streams-return-default-values-for-fields-that-doesn-t-exist-in-the-document-tp4315229.html > Sent from the Solr - User mailing list archive at Nabble.com.