Re: Changing Field Assignments

2018-06-11 Thread Yasufumi Mizoguchi
Hi, You can do that via adding the following lines in managed-schema. After adding the above and re-indexing docs, you will get the result like following. { "responseHeader":{ "status":0, "QTime":0, "params":{ "q":"*:*", "indent": "on", "wt":"json", "_":"1528772599296"}},

Re: Collections unable to load after setting up SSL

2018-06-11 Thread Zheng Lin Edwin Yeo
Hi Chris, File permissions on /etc/solr-* ? - The permissions are set to full control for all users. Effective user-id of the process trying to connect to Solr? - I am connecting from the Solr Admin UI. I have set the Basic Authentication, and that the Basic Authentication is working on its own

Uppercase Zip/Postal Code

2018-06-11 Thread ron773
I'm using solr to query a database to find UK postal codes. However, I can only find zip codes when they use capital letters, and I can't find them with lowercase letters. I was wondering if it's possible to set solr to be case-insensitive for zip codes or if not, is it possible to set the query

Re: Uppercase Zip/Postal Code

2018-06-11 Thread @Nandan@
In case of lowercase search, you need to apply analyzer with filter.. Hope this will help you On Tue, Jun 12, 2018 at 1:52 AM, ron773 wrote: > I'm using solr to query a database to find UK postal codes. However, I can > only find zip codes when they use capital letters,

saas based search With Solr

2018-06-11 Thread Sreenivas.T
All, Does any one aware of commercially available SAAS based Solr search tool? Regards, Sreenivas

How to find out which search terms have matches in a search

2018-06-11 Thread Derek Poh
Hi How can I find out which search terms have matches in a search? Eg. The search terms are "big brown bear".And only "big" and "brown" have matches in the searchresult. Can Solr return this information that "big" and "brown" have matches in the search result? I want touse this information to

Re: SolrCore Initialization Failures

2018-06-11 Thread Erick Erickson
This simply should _not_ be happening due to Solr/Lucene "doing something". Some possibilities: - some other process is deleting them - somehow you have more than one Solr core pointing at the same data directory. To do this you'd have had to do something like use NoLockPolicy, so this is

Re: Get replica status in solrj

2018-06-11 Thread y y
after I close down one of the solr without using the stop command, I can get the correct replica state as "down" in the command prompt using this code: solr.cmd healthcheck -c test1 -z localhost:2181,localhost:2182,localhost:2183 but I cannot get the correct replica state in solrj even when I add

Re: Solr Suggest Component and OOM

2018-06-11 Thread Christopher Schultz
Ratnadeep, On 6/11/18 12:25 PM, Ratnadeep Rakshit wrote: > I am using the Solr Suggester component in Solr 5.5 with a lot of address > data. My Machine has allotted 20Gb RAM for solr and the machine has 32GB > RAM in total. > > I have an address book core with the following vitals - > >

Re: Collections unable to load after setting up SSL

2018-06-11 Thread Christopher Schultz
Edwin, On 6/10/18 10:22 PM, Zheng Lin Edwin Yeo wrote: > I have found that we can't set it this way either, as we will get the below > error on "no valid keystore". > > set SOLR_SSL_KEY_STORE=/etc/solr-ssl.keystore.jks > set SOLR_SSL_TRUST_STORE=/etc/solr-ssl.keystore.jks > > Error: >

Re: Solr Suggest Component and OOM

2018-06-11 Thread Ratnadeep Rakshit
Here's the stack trace : 538 ERROR - 2018-06-07 09:07:36.030; [ x:addressbook] org.apache.solr.common.SolrException; null:java.lang.RuntimeException: java.lang.OutOfMemory Error: Java heap space 539 at org.apache.solr.servlet.HttpSolrCall.sendError(HttpSolrCall.java:607) 540

SolrCore Initialization Failures

2018-06-11 Thread shefalid
Hi, I am using solr 7.2.1 Every now & then some of the cores fail to load due to "SolrCore Initialization Failure". >From error message it looks like the reason for failure is the core missing some of the files: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Error

Changing Field Assignments

2018-06-11 Thread Terry Steichen
I am using Solr (6.6.0) in the automatic mode (where it discovers fields).  It's working fine with one exception.  The problem is that Solr maps the discovered "meta_creation_date" is assigned the type TrieDateField.  Unfortunately, that type is limited in a number of ways (like sorting,

Autoscaling and inactive shards

2018-06-11 Thread Jan Høydahl
Hi I'm trying to have Autoscaling move a shard to another node after manually splitting. We have two nodes, one has a shard1 and the other node is empty. After SPLITSHARD you have * shard1 (inactive) * shard1_0 * shard1_1 For autoscaling we have the {"minimize" : "cores"} cluster preference

Re: Collections unable to load after setting up SSL

2018-06-11 Thread Vincenzo D'Amore
Hi Edwin, I think you should specify the absolute path when setting the environment variables or remove the leading slash from the path. Ciao, Vincenzo > On 11 Jun 2018, at 04:22, Zheng Lin Edwin Yeo wrote: > > I have found that we can't set it this way either, as we will get the below >

Re: Collections unable to load after setting up SSL

2018-06-11 Thread Zheng Lin Edwin Yeo
Hi Vincenzo, Thanks for your reply. The original error of that t he collections that are with 2 replica are not able to be loaded. came from without the leading slash from the path. I also got the same error as the original when I specify the absolute path. Regards, Edwin On 11 June 2018 at

Re: Get replica status in solrj

2018-06-11 Thread y y
Hi all, I am using the code below to get the replica state: ZkStateReader reader = cloudSolrClient.getZkStateReader(); ClusterState slices22 = reader.getClusterState(); DocCollection slices = reader.getClusterState().getCollection(collection); Iterator iter = slices.iterator();

Re: Delete then re-add a core

2018-06-11 Thread Amanda Shuman
Erick - thank you, the issue was the second one you mentioned -- I completely forgot about changes that were made in conf files I never copied over (including schema.xml). Once I overwrote and reloaded I had no problems reindexing. I guess I had forgotten to check those since I was copying various

indexer used in solr

2018-06-11 Thread Vivek Singh
HI Team , I am new to solr ,wanted to know which indexer is used in apache solr by default . I am not getting good results. -- Regards, Vivek Singh. 9818214334

Re: indexer used in solr

2018-06-11 Thread Erik Hatcher
Vivek - Can you provide us specific examples of what you’re sending in (and how you are doing so) and how you are querying and what you expect? Erik > On Jun 11, 2018, at 7:34 AM, Vivek Singh wrote: > > HI Team , > I am new to solr ,wanted to know which indexer is used in apache

Re: Relationship Between Number of Solr Replicas and Number of Zookeeper Nodes (if any)

2018-06-11 Thread THADC
Shawn, thanks. You say "at least two replicas per shard are required for high availability". So that would be a total of three nodes for that shard, correct? Thanks, Tim Clotworthy -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

clusterstate json check in Solrj

2018-06-11 Thread Anil
HI Team, I was trying solrcloud cluster setup using solr 7.3.1 and it is up. Admin console looks good and queries in console are working fine. But solrj connection failing with following exception org.apache.solr.common.SolrException: Cannot connect to cluster at 127.0.0.1:2181/solr : cluster

Re: Relationship Between Number of Solr Replicas and Number of Zookeeper Nodes (if any)

2018-06-11 Thread Shawn Heisey
On 6/11/2018 5:47 AM, THADC wrote: Shawn, thanks. You say "at least two replicas per shard are required for high availability". So that would be a total of three nodes for that shard, correct? The smallest possible fault-tolerant Solr install is a total of three servers.  Two of them will run

Re: clusterstate json check in Solrj

2018-06-11 Thread Shawn Heisey
On 6/11/2018 6:41 AM, Anil wrote: I was trying solrcloud cluster setup using solr 7.3.1 and it is up. Admin console looks good and queries in console are working fine. But solrj connection failing with following exception org.apache.solr.common.SolrException: Cannot connect to cluster at

Re: indexer used in solr

2018-06-11 Thread Shawn Heisey
On 6/11/2018 5:34 AM, Vivek Singh wrote: I am new to solr ,wanted to know which indexer is used in apache solr by default . I am not getting good results. It's built in.  There is no "which" ... that would imply that there's more than one choice, and as far as I am aware, once you get right

Re: Get replica status in solrj

2018-06-11 Thread Shawn Heisey
On 6/11/2018 3:29 AM, y y wrote: question is I can manage to get the correct replica state if I start and stop solr using command line. how if solr failure or crashed, how can I get the correct replica state? As I have stated elsewhere on this mailing list, actual Solr crashes are extremely

Re: clusterstate json check in Solrj

2018-06-11 Thread Anil
HI Shawn, Thanks for response. please find comments in the context. Thanks, Anil On 11 June 2018 at 19:06, Shawn Heisey wrote: > On 6/11/2018 6:41 AM, Anil wrote: > >> I was trying solrcloud cluster setup using solr 7.3.1 and it is up. Admin >> console looks good and queries in console are

Re: clusterstate json check in Solrj

2018-06-11 Thread Erick Erickson
_where_ is clusterstate.json? The connection string adds a solr prefix, so when you look at Zookeeper it should be in /solr/clusterstate.json rather than /clusterstate.json. When you use a different Zookeeper root, you need to use the exact same root on all your operations. As Shawn says,

Re: clusterstate json check in Solrj

2018-06-11 Thread Shawn Heisey
On 6/11/2018 8:35 AM, Anil wrote: > for failure could be #1. but not sure why client started with different > zkHost. i used 127.0.01:2181/solr itself. zk nodes started with > 127.0.0.1:2181, 2182, 2183 > is there anyway i can figure this out and correct it ? Thanks. I suspect that the difference

Re: Get replica status in solrj

2018-06-11 Thread Erick Erickson
bq. how can I get the correct replica state? something like add this additional test. if (reader..getClusterState().getLiveNodes().contains(replica.getNodeName()) == false) state is down. Best, Erick On Mon, Jun 11, 2018 at 6:59 AM, Shawn Heisey wrote: > On 6/11/2018 3:29 AM, y y wrote:

Re: clusterstate json check in Solrj

2018-06-11 Thread Anil
HI Erick, Yes. clusterstate.json is available in /solr path (i.e /solr/clusterstate.json) As Shawn said, client might be starting on different zknode. :( Thanks, Anil On 11 June 2018 at 20:29, Erick Erickson wrote: > _where_ is clusterstate.json? The connection string adds a solr > prefix,

Solr 7 + HDFS issue

2018-06-11 Thread Joe Obernberger
We are seeing an issue on our Solr Cloud 7.3.1 cluster where replication starts and pegs network interfaces so aggressively that other tasks cannot talk.  We will see it peg a bonded 2GB interfaces.  In some cases the replication fails over and over until it finally succeeds and the replica

Solr Suggest Component and OOM

2018-06-11 Thread Ratnadeep Rakshit
I am using the Solr Suggester component in Solr 5.5 with a lot of address data. My Machine has allotted 20Gb RAM for solr and the machine has 32GB RAM in total. I have an address book core with the following vitals - "numDocs"=153242074 "segmentCount"=34 "size"=30.29 GB My solrconfig.xml looks