docID for bulk indexing

59 views
Skip to first unread message

Claudius Teodorescu

unread,
Oct 11, 2020, 2:17:18 PM10/11/20
to bleve
Hi,

I need my own docID for documents loaded with bulk, in order to not add another field, so that I thought of a JSON structure as follows:

{"docID": "A10061p1", "doc": {...}}
{"docID": "A10061p2", "doc": {...}}
{"docID": "A10061p3", "doc": {...}}

For this to work, small changes would be needed in cmd/bulk.go.

What do you think?

Thanks,
Claudius

Marty Schoch

unread,
Oct 11, 2020, 2:24:36 PM10/11/20
to bl...@googlegroups.com
Personally, I don't think the bleve sub-commands bulk, create and index are that useful anymore and I would be in favor of removing them.  In practice, users almost always need to customize behavior at the time of indexing, and these commands don't allow for that.

I would recommend you create your own application, based on bulk, and modify it as you need.

marty

--
You received this message because you are subscribed to the Google Groups "bleve" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bleve+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bleve/710440f0-9bda-4859-814d-0ef843704269n%40googlegroups.com.

Claudius Teodorescu

unread,
Oct 11, 2020, 3:08:10 PM10/11/20
to bl...@googlegroups.com
Exactly what I thought, thanks.

You received this message because you are subscribed to a topic in the Google Groups "bleve" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bleve/ujsE5icFK5Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bleve+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bleve/CAE2t7bovMxswHnaGBKyJa06Ys_ki4xvJe96rGQDajxFph4xRjA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages