Hi, If you use "Create" Operation, so when your doc exists, you need to catch & leave this exception. To avoid it, I think you could check your document, if it's not exist then you do index.
On Sunday, March 30, 2014 11:48:34 PM UTC+7, Igor Romanov wrote: > > Hi all, > > I would like that elastic search will index only new documents, but for > existing one will not throw any exception and quietly continue > > Is that possible? > > I tried to index using "create" operation , but then I get > "DocumentAlreadyExistsException" - I would like not to get it at all...so > elastic search will do nothing in case that document already exists > > Also I tried to set "version_type" : external and each document set same > version, but then I get exception "VersionConflictEngineException" > > So question how I configure ElasticSearch or its index to just index new > docs and ignore existing once... > > (I need that because I run some hadoop jobs, and don't want that elastic > search will reindex same doc data after each job execution...I want to save > queries to ES to check if doc already exists...) > > Thanks > Igor > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e36fa5c3-b566-4b23-a7bd-06ca87a87ec8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
