Same query, inconsistent result in SolrCloud

2015-06-19 Thread Jerome Yang
Hi! I'm facing a problem. I'm using SolrCloud 4.10.3, with 2 shards, each shard have 2 replicas. After index data to the collection, and run the same query, http://localhost:8983/solr/catalog/select?q=a&wt=json&indent=true Sometimes, it return the right, { "responseHeader":{ "status":0,

Re: Same query, inconsistent result in SolrCloud

2015-06-23 Thread Jerome Yang
ica with &distrib=false. That'll return only the > docs on the particular replica you fire the query at. Do you have > replicas in the _same_ shard with different numbers of docs? If so, > what can you see that's different about those cores? > > 3> What does your

Send kill -9 to a node and can not delete down replicas with onlyIfDown.

2016-07-18 Thread Jerome Yang
Hi all, Here's the situation. I'm using solr5.3 in cloud mode. I have 4 nodes. After use "kill -9 pid-solr-node" to kill 2 nodes. These replicas in the two nodes still are "ACTIVE" in zookeeper's state.json. The problem is, when I try to delete these down replicas with parameter onlyIfDown='tru

Re: Send kill -9 to a node and can not delete down replicas with onlyIfDown.

2016-07-19 Thread Jerome Yang
;interesting" place. You haven't given > > >> Solr a chance to tell Zookeeper that it's going away. > > >> (which would set the state to "down"). In short > > >> when you do this you have to deal with the consequences > > >> yo

Re: Send kill -9 to a node and can not delete down replicas with onlyIfDown.

2016-07-20 Thread Jerome Yang
behavior. The whole point of the > : onlyIfDown flag was as a safety valve for those > : who wanted to be cautious and guard against typos > : and the like. > : > : If you specify onlyIfDown=false and the node still > : isn't removed from ZK, it's not right. > : &

Delete replica on down node, after start down node, the deleted replica comes back.

2016-08-16 Thread Jerome Yang
Hi all, I run into a strange behavior. Both on solr6.1 and solr5.3. For example, there are 4 nodes in cloud mode, one of them is stopped. Then I delete a replica on the down node. After that I start the down node. The deleted replica comes back. Is this a normal behavior? Same situation. 4 node

In cloud mode, using implicit router. Leader changed, not available to index data, and no error occurred.

2016-09-18 Thread Jerome Yang
Hi all, The situation is: Three hosts, host1, host2, host3. Solr version 6.1 in cloud mode. 8 solr nodes on each host. Create a collection using implicit router. Execute index and delete index. The collection works fine. Then kill 3 nodes, some of shards change leader. Then index data to new lead

Re: In cloud mode, using implicit router. Leader changed, not available to index data, and no error occurred.

2016-09-19 Thread Jerome Yang
of them are somewhere in the collection, > that's a problem, assuming you are routing them properly when using > the implicit router. > > Best, > Erick > > On Sun, Sep 18, 2016 at 8:04 PM, Jerome Yang wrote: > > Hi all, > > > > The situation is: > > Thr

Re: In cloud mode, using implicit router. Leader changed, not available to index data, and no error occurred.

2016-09-19 Thread Jerome Yang
That shard did receive update request, because it shows in the log. And also commit request. But no documents indexed. On Tue, Sep 20, 2016 at 2:26 PM, Jerome Yang wrote: > I'm sure I send documents to that shard. And execute commit. > > I also use curl to index, but not error o

Solrcloud after restore collection, when index new documents into restored collection, leader not write to index.

2016-10-11 Thread Jerome Yang
Hi all, I'm facing a strange problem. Here's a solrcloud on a single machine which has 2 solr nodes, version: solr6.1. I create a collection with 2 shards and replica factor is 3 with default router called "test_collection". Index some documents and commit. Then I backup this collection. After t

Re: Solrcloud after restore collection, when index new documents into restored collection, leader not write to index.

2016-10-11 Thread Jerome Yang
:8983/solr/restore_test_collection/update? *commitWithin**=1000*&wt=json' --data-binary @test.json -H 'Content-type:application/json' All replicas in shard1 have new documents include leader, and all new documents route to shard1. On Tue, Oct 11, 2016 at 5:27 PM, Jerome Yan

Re: Solrcloud after restore collection, when index new documents into restored collection, leader not write to index.

2016-10-11 Thread Jerome Yang
@Mark Miller Please help~ On Tue, Oct 11, 2016 at 5:32 PM, Jerome Yang wrote: > Using curl do some tests. > > curl 'http://localhost:8983/solr/restore_test_collection/update? > *commit=true*&wt=json' --data-binary @test.json -H > 'Content-type:application/j

Re: Solrcloud after restore collection, when index new documents into restored collection, leader not write to index.

2016-10-11 Thread Jerome Yang
, it's a very serious bug I think. Should this bug go into jira? Please help! Regards, Jerome On Tue, Oct 11, 2016 at 8:34 PM, Shawn Heisey wrote: > On 10/11/2016 3:27 AM, Jerome Yang wrote: > > Then, I index some new documents, and commit. I find that the > > documents a

Re: Solrcloud after restore collection, when index new documents into restored collection, leader not write to index.

2016-10-11 Thread Jerome Yang
@Erick Please help😂 On Wed, Oct 12, 2016 at 10:21 AM, Jerome Yang wrote: > Hi Shawn, > > I just check the clusterstate.json > <http://192.168.33.10:18983/solr/admin/zookeeper?detail=true&path=%2Fclusterstate.json> > which > is restored for "restore_test_col

Reload schema or configs failed then drop index, can not recreate that index.

2016-11-22 Thread Jerome Yang
Hi all, Here's my situation: In cloud mode. 1. I created a collection called "test" and then modified the managed-schemaI got an error as shown in picture 2. 2. To get enough error message, I checked solr logs and get message shown in picture 3. 3. If I corrected the managed-sche

Re: Reload schema or configs failed then drop index, can not recreate that index.

2016-11-22 Thread Jerome Yang
exists". But actually not. 4. The restart the whole cluster, do the create again, everything works fine. I think when doing the delete collection, there's something still hold in somewhere not deleted. Please have a look Regards, Jerome On Wed, Nov 23, 2016 at 10:16 AM, Jerome Yan

Re: Solr 6 Performance Suggestions

2016-11-22 Thread Jerome Yang
Have you run IndexUpgrader? Index Format Changes Solr 6 has no support for reading Lucene/Solr 4.x and earlier indexes. Be sure to run the Lucene IndexUpgrader included with Solr 5.5 if you might still have old 4x formatted segments in your index. Alternatively: fully optimize your index with So

Re: Reload schema or configs failed then drop index, can not recreate that index.

2016-11-23 Thread Jerome Yang
On Wed, Nov 23, 2016 at 3:26 PM, Erick Erickson wrote: > The mail server is pretty heavy-handed at deleting attachments, none of > your > (presumably) screenshots came through. > > You also haven't told us what version of Solr you're using. > > Best, > Er

Re: SolrCloud -Distribued Indexing

2016-11-23 Thread Jerome Yang
Hi, 1. You can usr solr collections api to create collection with "*implicit*" router. Please check, CREATE https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api1 2. There's several ways to indicate which collection you want send request to. a> setDefaultCollecti

Re: Reload schema or configs failed then drop index, can not recreate that index.

2016-11-24 Thread Jerome Yang
e schema > - pushing it to Zookeeper (managed schema API does this for you) > - RELOAD the collection (do NOT delete it first). > > Since you can just RELOAD, I doubt this will be a high priority though. > > Thanks for reporting! > Erick > > > On Wed, Nov 23,

Re: Solr OpenNLP named entity extraction

2018-07-08 Thread Jerome Yang
Hi guys, In Solrcloud mode, where to put the OpenNLP models? Upload to zookeeper? As I test on solr 7.3.1, seems absolute path on local host is not working. And can not upload into zookeeper if the model size exceed 1M. Regards, Jerome On Wed, Apr 18, 2018 at 9:54 AM Steve Rowe wrote: > Hi Ale

Re: Solr OpenNLP named entity extraction

2018-07-09 Thread Jerome Yang
${solr.solr.home}/lib/ ? - make sure you do the same on each node. > > [1] > https://lucene.apache.org/solr/guide/7_4/setting-up-an-external-zookeeper-ensemble.html#increasing-the-file-size-limit > > -- > Steve > www.lucidworks.com > > > On Jul 9, 2018, at 12:50 AM, Jerome

Re: Solr OpenNLP named entity extraction

2018-07-09 Thread Jerome Yang
Hi Steve, Put models under " ${solr.solr.home}/lib/ " is not working. I check the "ZkSolrResourceLoader" seems it will first try to find modes in config set. If not find, then it uses class loader to load from resources. Regards, Jerome On Tue, Jul 10, 2018 at 9:58 A

Re: Solr OpenNLP named entity extraction

2018-07-10 Thread Jerome Yang
up to load from subdirectories and jar files under > ${solr.solr.home}/lib/ or under a directory specified via a solrconfig.xml > directive. These directories themselves are not included in the set > of directories from which resources are loaded; only their children are. > > -- > Steve >