Re: Unbalanced shard requests

2020-05-08 Thread Wei
Update: after I remove the shards.preference parameter from solrconfig.xml, issue is gone and internal shard requests are now balanced. The same parameter works fine with solr 7.6. Still not sure of the root cause, but I observed a strange coincidence: the nodes that are most frequently picked f

solr payloads performance

2020-05-08 Thread Wei
Hi everyone, Have a question regarding typical e-commerce scenario: each item may have different price in different store. suppose there are 10 million items and 1000 stores. Option 1: use solr payloads, each document have store_prices_payload:store1|price1 store2|price2 . store1000|p

Re: Synonym Graph Filter - how to preserve original

2020-05-08 Thread Erick Erickson
Depends on how you define the synonym file. See: https://lucene.apache.org/solr/guide/6_6/filter-descriptions.html In particular: There are two ways to specify synonym mappings: • A comma-separated list of words. If the token matches any of the words, then all the words in the list are

Re: Synonym Graph Filter - how to preserve original

2020-05-08 Thread Jae Joo
putting original term in the synonym list works. On Fri, May 8, 2020 at 1:05 PM atin janki wrote: > Hi Jae, > > Do try to explain your problem with an example. Also share how you are > writing the synonyms file. > Best Regards, > Atin Janki > > > On Fri, May 8, 2020 at 6:14 PM Jae Joo wrote: >

Re: Synonym Graph Filter - how to preserve original

2020-05-08 Thread atin janki
Hi Jae, Do try to explain your problem with an example. Also share how you are writing the synonyms file. Best Regards, Atin Janki On Fri, May 8, 2020 at 6:14 PM Jae Joo wrote: > In 8.3, There should be the way to preserve the original terms, but could > not find it. > > Does anyone know? > >

Synonym Graph Filter - how to preserve original

2020-05-08 Thread Jae Joo
In 8.3, There should be the way to preserve the original terms, but could not find it. Does anyone know? Thanks, Jae

Re: Add replica fails with following exception

2020-05-08 Thread Vishal Vaibhav
Do addreplicas work only when leader is elected ? On Fri, 8 May 2020 at 5:43 PM, Erick Erickson wrote: > My guess is that "$solrHost” is being resolved differently when > executed from the shell .vs. your script. > > Best, > Erick > > > On May 8, 2020, at 4:41 AM, Vishal Vaibhav wrote: > > > >

Re: Add replica fails with following exception

2020-05-08 Thread Vishal Vaibhav
Do addreplicas work only when leader is elected ? Is that a thing ? On Fri, 8 May 2020 at 2:11 PM, Vishal Vaibhav wrote: > I have a script that creates a collection whenever vm is up and then add > the replicas. However ADDREPLICAS fails everytime with following > exception. However when i man

Re: Add replica fails with following exception

2020-05-08 Thread Erick Erickson
My guess is that "$solrHost” is being resolved differently when executed from the shell .vs. your script. Best, Erick > On May 8, 2020, at 4:41 AM, Vishal Vaibhav wrote: > > I have a script that creates a collection whenever vm is up and then add > the replicas. However ADDREPLICAS fails every

Add replica fails with following exception

2020-05-08 Thread Vishal Vaibhav
I have a script that creates a collection whenever vm is up and then add the replicas. However ADDREPLICAS fails everytime with following exception. However when i manually hit the following curl it works all fine. The same line is in the script. " http://localhost:8983/solr/admin/collections?act