Re: SolrDocument difference between String and text_general

2020-10-20 Thread Shawn Heisey
On 10/20/2020 1:53 AM, Cox, Owen wrote: I've now written a Java Spring-Boot program to populate documents (snippet below) using SolrCrudRepository. This works when I don't index the "title" field, but when I try include title I get the following error "cannot change field "title" from index op

Re: Index Replication Failure

2020-10-20 Thread Parshant Kumar
Hi all, please check the details On Sat, Oct 17, 2020 at 5:52 PM Parshant Kumar wrote: > > > *Architecture is master->repeater->slave servers in hierarchy.* > > *One of the Below exceptions are occuring whenever replication fails.* > > 1)WARN : Error in fetching file: _4rnu_t.liv (downloaded 0 o

Re: Add single or batch document in Solr 6.1.0

2020-10-20 Thread Erick Erickson
Batching is better, see: https://lucidworks.com/post/really-batch-updates-solr-2/ > On Oct 20, 2020, at 9:03 AM, vishal patel > wrote: > > I am using solr 6.1.0. We have 2 shards and each has one replica. > > I want to insert 100 documents in one collection. I am using below code. > > org.ap

Re: [EXT: NEWSLETTER] SolrDocument difference between String and text_general

2020-10-20 Thread Konstantinos Koukouvis
Reindexing has to be done either by starting from scratch or by deleting all documents and then re-inserting them. Right? https://lucene.apache.org/solr/guide/8_0/reindexing.html Regards, Konstantinos > On 20 Oct 2020, at 14:51, Erick E

Add single or batch document in Solr 6.1.0

2020-10-20 Thread vishal patel
I am using solr 6.1.0. We have 2 shards and each has one replica. I want to insert 100 documents in one collection. I am using below code. org.apache.solr.client.solrj.impl.CloudSolrClient cloudServer = new org.apache.solr.client.solrj.impl.CloudSolrClient(zkHost); cloudServer.setParallelUpdates

Re: [EXT: NEWSLETTER] SolrDocument difference between String and text_general

2020-10-20 Thread Erick Erickson
Owen: Collection reload is necessary but not sufficient. You’ll still get wonky results even if you re-index everything unless you delete _all_ the documents first or start with a whole new collection. Each Lucene index is a “mini index” with its own picture of the structure of that index (i.e.

SolrJ doesn't find symbol

2020-10-20 Thread Raivo Rebane
Hello I want to use solrj in Maven project, but I got errors: [ERROR] /home/hydra/workspace1/kaks/src/main/java/solr/SolrJExample.java:[9,36] cannot find symbol [ERROR]   symbol:   class SolrClient [ERROR]   location: package org.apache.solr.client.solrj [ERROR] /home/hydra/workspace1/kaks/s

RE: [EXT: NEWSLETTER] Re: SolrDocument difference between String and text_general

2020-10-20 Thread Cox, Owen
Hi Konstantinos, I think you're onto something there. I don't think the collection was reloaded, I've just tried the same code against a different collection that uses the same configset; only difference being this collection was created after the schema changes. That works, so it must've been

Re: SolrDocument difference between String and text_general

2020-10-20 Thread Konstantinos Koukouvis
Hi Owen, If I understand correctly you have changed the schema, then reloaded the core and reindexed all data right? Cause whenever I got this error I’ve usually forgotten to do one of those two things… Regards, Konstantinos > On 20 Oct 2020, at 09:53, Cox, Owen wrote: > > Hi folks, > > I'

SolrDocument difference between String and text_general

2020-10-20 Thread Cox, Owen
Hi folks, I'm using Solr 8.5.2 and populating documents which include a string field called "title". This field used to be text_general, but the data was reindexed and we've been inserting data happily with REST calls and it's been behaving as desired. I've now written a Java Spring-Boot prog