Re: Duplicate values in Multi Value Fields
Probably you could add-distinct operation for unique values in multivalued fields https://lucene.apache.org/solr/guide/7_3/updating-parts-of-documents.html On Thu, Mar 14, 2019, 7:40 PM Jörn Franke wrote: > With an update request processor > > https://lucene.apache.org/solr/7_4_0//solr-core/org/apache/solr/update/processor/UniqFieldsUpdateProcessorFactory.html > > > Am 14.03.2019 um 15:01 schrieb Alexis Aravena Silva < > aarav...@itsofteg.com>: > > > > Hello, > > > > > > I'm indexing data into some MultiValueFields, but I have duplicates, > how can I remove the duplicate values at indexing time? > > > > > > I'm using Solr 7. > > > > > > sample: > > > > > > _nombreArea_":["MICROBIOLOGÍA", "QUÍMICA", "MICROBIOLOGÍA", > "MICROBIOLOGÍA", "MICROBIOLOGÍA", "QUÍMICA", "QUÍMICA", "MICROBIOLOGÍA", > "MICROBIOLOGÍA", "QUÍMICA", "MICROBIOLOGÍA", "QUÍMICA"], > > > > > > Regards, > > > > Alexis Aravena S. > > > > >
Re: misteriuos nullpointerexception while adding documents
Are you trying to set some field to null in the request?? Also, is that particular field numeric, doc valued enabled and stored set to false?? Sharing more details would help here, specifically update request and schema for those fields. Regards, Munendra S N On Tue, Feb 12, 2019 at 2:24 PM Danilo Tomasoni wrote: > Hello all, > > I get this error while uploading my documents with 'set' modifier in > json format. > > My solr version is 7.3.1. > > I disabled autocommit (both soft and hard), but used to work with a > previous version of the schema. > > Someone have any clue on what's going on here? > > I can't reproduce the issue indexing locally on another solr 7.3.1 > instance, I get this error only in the production instance. > > Thank you > > Danilo > > > This is the error I get from client > > > { >"responseHeader":{ > "status":500, > "QTime":33}, >"error":{ > "trace":" > > java.lang.NullPointerException > at org.apache.solr.update.UpdateLog.lookup(UpdateLog.java:971) > at > > org.apache.solr.handler.component.RealTimeGetComponent.getInputDocumentFromTlog(RealTimeGetComponent.java:537) > at > > org.apache.solr.handler.component.RealTimeGetComponent.getInputDocument(RealTimeGetComponent.java:617) > at > > org.apache.solr.handler.component.RealTimeGetComponent.getInputDocument(RealTimeGetComponent.java:594) > at > > org.apache.solr.update.processor.DistributedUpdateProcessor.getUpdatedDocument(DistributedUpdateProcessor.java:1330) > at > > org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:1049) > at > > org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:633) > at > > org.apache.solr.update.processor.LogUpdateProcessorFactory$LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:103) > at > > org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:55) > at > > org.apache.solr.update.processor.FieldMutatingUpdateProcessor.processAdd(FieldMutatingUpdateProcessor.java:118) > at > > org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.handleAdds(JsonLoader.java:501) > at > > org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.processUpdate(JsonLoader.java:145) > at > > org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.load(JsonLoader.java:121) > at org.apache.solr.handler.loader.JsonLoader.load(JsonLoader.java:84) > at > > org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:97) > at > > org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:68) > at > > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:195) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:2503) > at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711) > at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:517) > at > > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:384) > at > > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:330) > at > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1629) > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533) > at > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) > at > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) > at > > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190) > at > > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) > at > > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) > at > > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) > at > > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) > at > > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) > at > > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) > at > > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155) > at > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) > at > > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219) > at > > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) > at > >