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

AW: group.facet=true and facet on field of type int -> org.apache.solr.common.SolrException: Exception during facet.field

2016-07-18 Thread Sebastian Riemer
May I respectfully refer again to a question I posted last week? Thank you very much and a nice day to you all! Sebastian - Hi all, Tested on Solr 6.1.0 (as well as 5.4.0 and 5.5.0) using the "techproducts" example the following que

RE: How to Add New Fields and Fields Types Programmatically Using Solrj

2016-07-18 Thread Jeniba Johnson
Thanks a lot Steve. It worked out. Regards, Jeniba Johnson -Original Message- From: Steve Rowe [mailto:sar...@gmail.com] Sent: Monday, July 18, 2016 7:57 PM To: solr-user@lucene.apache.org Subject: Re: How to Add New Fields and Fields Types Programmatically Using Solrj Hi Jeniba, Y

Re: Index and query brackets

2016-07-18 Thread Anil
Thanks Chris for the response. I am using TextField and edismax query parser. i have changed filters so that brackets are not trimmed. i will test it and let the group know if that is working. Thanks. On 19 July 2016 at 03:27, Chris Hostetter wrote: > > > If you index the literal string value

Re: Index and query brackets

2016-07-18 Thread Chris Hostetter
If you index the literal string value of "[ DATA ]" and then you wnat to be able to query for "[ DATA ]" again later there are two things you have to consider: 1) how is your field value analyzed? If you use something like StrField then an index term for the literal string "[ DATA ]" is crea

Re: Problem using bbox in schema

2016-07-18 Thread Chris Hostetter
can you please send us the entire schema.xml file you were using when you got that error? Would be nice to get to the bottom of how/why you gut an error regarding "positionIncrementGap" on AbstractSpatialPrefixTreeFieldType. : Date: Mon, 18 Jul 2016 18:10:40 +0200 : From: Rastislav Hudak :

ApacheCon: Getting the word out internally

2016-07-18 Thread Melissa Warnkin
ApacheCon: Getting the word out internally Dear Apache Enthusiast, As you are no doubt already aware, we will be holding ApacheCon in Seville, Spain, the week of November 14th, 2016. The call for papers (CFP) for this event is now open, and will remain open until September 9th. The event is divid

Re: Cold replication

2016-07-18 Thread Mahmoud Almokadem
Thanks Erick, I'll take a look at the replication on Solr. But I don't know if it well support incremental backup or not. And I want to use SSD because my index cannot be held in memory. The index is about 200GB on each instance and the RAM is 61GB and the update frequency is high. So, I want to

Re: DateMath parsing change?

2016-07-18 Thread Timothy Potter
Got an answer from Hossman in another channel ... this syntax was not officially supported and is no longer valid, i.e. my code must change ;-) On Mon, Jul 18, 2016 at 8:02 AM, Timothy Potter wrote: > I have code that uses the DateMathParser and this used to work in 5.x > but is no longer accepte

Re: Problem using bbox in schema

2016-07-18 Thread Rastislav Hudak
Thanks Erick. I wasn't able to track this down but when I re-set the schema to the sample one and added the bbox it was working. I thought it must be the bbox field because of that 'AbstractSpatialPrefixTreeFieldType' but it must have been something else. The only difference I can see now is th

Re: Indexing using SolrOutputFormat class

2016-07-18 Thread Erick Erickson
You're looking at a class that is specific to the MapReduceIndexerTool which uses EmbeddedSolrServer to build sub-indexes. These sub-indexes are then merged via the tool into indexes suitable for copying to (or merging with) existing Solr indexes on a shard-by-shard basis. If you're using MapReduc

Re: Problem using bbox in schema

2016-07-18 Thread Erick Erickson
Those work fine for me (latest 6x version). It looks to me like you've changed some _other_ field, this error Can't set positionIncrementGap on custom analyzer class looks like you have some text-related field you've also changed and likely have a custom analyzer somewhere? Best, Erick On Mon,

Re: index sql databases

2016-07-18 Thread Erick Erickson
I don't see how that relates to the original question. bq: when I display the field type date I get the value in this forme -MM-dd'T'hh:mm:ss'Z' A regex in the _input_ side will have no effect on what Solr returns. You'd have to use a DocTransformer to change the output on the query side. DIH

Re: Cold replication

2016-07-18 Thread Erick Erickson
Have you tried the replication API backup command here? https://cwiki.apache.org/confluence/display/solr/Index+Replication#IndexReplication-HTTPAPICommandsfortheReplicationHandler Warning, I haven't worked with this personally in this situation so test. I do have to ask why you think SSDs are req

DIH - Need to externalize or encrypt username/password stored within data-config.xml

2016-07-18 Thread Aniket Khare
Hi, Could you please suggest any document where I can encrypt ths connection string and stored it data-config? Following is the url for the closed jira issue, but I dont find any documentation for that https://issues.apache.org/jira/browse/SOLR-4392 -- Regards, Aniket S. Khare

Re: SolrCloud - Query performance degrades with multiple servers(Shards)

2016-07-18 Thread Erick Erickson
+1 to Susheel's question. Sharding inevitably adds overhead. Roughly each shard is queried for its top N docs (10 if, say, rows=10). The doc ID and sort criteria (score by default) are returned to the node that originally got the request. That node then sorts the lists into the real top 10 to retur

Re: How to Add New Fields and Fields Types Programmatically Using Solrj

2016-07-18 Thread Steve Rowe
Hi Jeniba, You can add fields and field types using Solrj with SchemaRequest.Update subclasses - see here for a list: There are quite a few examples of doing both in the tests:

DateMath parsing change?

2016-07-18 Thread Timothy Potter
I have code that uses the DateMathParser and this used to work in 5.x but is no longer accepted in 6.x: time:[NOW-2DAY TO 2016-07-19Z] org.apache.solr.common.SolrException: Invalid Date in Date Math String:'2016-07-19Z' at org.apache.solr.util.DateMathParser.parseMath(DateMathParser.java:241) Th

Re: SolrCloud - Query performance degrades with multiple servers(Shards)

2016-07-18 Thread Susheel Kumar
Hello, Question: Do you really need sharding/can live without sharding since you mentioned only 10K records in one shard. What's your index/document size? Thanks, Susheel On Mon, Jul 18, 2016 at 2:08 AM, kasimjinwala wrote: > currently I am using solrCloud 5.0 and I am facing query performanc

Re: JDBC: Collection not found with count(*) and uppercase name

2016-07-18 Thread Joel Bernstein
This looks a like a bug with SQL stats query which uses the StatsStream. The table name should be case insensitive. The simple select query is using CloudSolrStream which is properly handling the table name. Feel free to create a jira for this. Joel Bernstein http://joelsolr.blogspot.com/ On Mo

Cold replication

2016-07-18 Thread Mahmoud Almokadem
Hi, We have SolrCloud 6.0 installed on 4 i2.2xlarge instances with 4 shards. We store the indices on EBS attached to these instances. Fortunately these instances are equipped with TEMPORARY SSDs. We need to the store the indices on the SSDs but they are not safe. The index is updated every fi

Re: index sql databases

2016-07-18 Thread kostali hassan
can we use transformer="RegexTransformer" and set in db_data_config.xml 2016-07-16 18:18 GMT+01:00 Shawn Heisey : > On 7/15/2016 3:10 PM, kostali hassan wrote: > > Thank you Shawn the prb is when I display the field type date I get > > the value in this forme -MM-dd'T'hh:mm:ss'Z' > > Solr o

BooleanQuery Migration from Solr 4 to SOlr 6

2016-07-18 Thread Max Bridgewater
HI Folks, I am tasked with migrating a Solr app from Solr 4 to Solr 6. This solr app is in essence a bunch of solr components/handlers. One part that challenges me is BooleanQuery immutability in Solr 6. Here is the challenge: In our old code base, we had classes that implemented custom interface

SOLR-9311

2016-07-18 Thread Kent Mu
Hi friends, I come across an issue, and I have raised the issue in solr-jira, the link is as bellow. https://issues.apache.org/jira/browse/SOLR-9311 looking forward to your reply. Thanks! Kent

Re: solrcloud so many connections

2016-07-18 Thread Kent Mu
hello, does anybody also come across the issue? can anybody help me? 2016-07-14 13:01 GMT+08:00 Kent Mu : > Hi friends! > > We are using Solrj 4.9.1 to connect to a Zookeeper. and the solr server > version is 4.9.0 We are currently using CloudSolrServer as a singleton, I > believe that solrj to

Problem using bbox in schema

2016-07-18 Thread Rastislav Hudak
Hi all, using solr 6.1.0, I'm trying to add bbox into my schema, the same way it's in all examples I could find: However, if I add these lines the core cannot be initialized, I'm getting following exception: java.util.concurrent.ExecutionException: org.apache.solr.common.SolrException: Unabl

Indexing using SolrOutputFormat class

2016-07-18 Thread rashi gandhi
Hi All, I am using Solr-5.0.0 API for indexing data in our application and the requirement is to index the data in batches, using solr-mapreduce API. In our application, we may receive data from any type of input source for example: file, streams and any other relational or non-relational Db’

Re: SolrCloud - Query performance degrades with multiple servers(Shards)

2016-07-18 Thread kasimjinwala
currently I am using solrCloud 5.0 and I am facing query performance issue while using 3 implicit shards, each shard contain around 10K records. when I am specifying shards parameter(*shards=shard1*) in query it gives 30K-35K qps. but while removing shards parameter from query it give *1000-1500qp

Re: Find part of long query in shorter fields

2016-07-18 Thread CA
Hi Ahmet, thank you for the link. It helped me to find more resources. What I still don’t understand, though, is why the edismax returns one of the documents with a partial hit and not the other: q=Braun Series 9 9095CC Men's Electric Shaver Wet/Dry with Clean and Renew Charger // edismax wi