Re: Adding replacement node to 4.x cluster with down node

2013-02-06 Thread adfel70
Why would "other nodes obviously won't be able to talk to this tmp node"? Can you elaborate? Mark Miller-3 wrote > https://issues.apache.org/jira/browse/SOLR-4078 will be useful - that > should make it in 4.3. > > Until then, you want to get that node out, and you need the new node to be > assig

Re: What is the graceful shutdown API for Solrj embedded?

2013-02-06 Thread Shawn Heisey
On 2/6/2013 8:05 PM, Alexandre Rafalovitch wrote: Hello, When I CTRL-C the example Solr, it prints a bunch of graceful shutdown messages. I assume it shuts down safe and without corruption issues. When I do that to Solrj (embedded, not remote), it just drops dead. I found CoreContainer.shutdo

Re: SolrCore#getIndexDir() contract change between 3.6 and 4.1?

2013-02-06 Thread Mark Miller
Thanks Gregg - can you file a JIRA issue? - Mark On Feb 6, 2013, at 5:57 PM, Gregg Donovan wrote: > Mark- > > You're right that SolrCore#getIndexDir() did not directly read > index.properties in 3.6. In 3.6, it gets it indirectly from what is passed > to the constructor of SolrIndexSearcher. H

Re: copyField vs single field

2013-02-06 Thread Jack Krupansky
It is difficult to say for sure - unless somebody actually does a lot of benchmarking tests with various distributions of data in the fields and various field types (e.g., some are strings and some are text, and the cardinality of the string values.) I would suspect that the two would be roughl

Re: copyField vs single field

2013-02-06 Thread Otis Gospodnetic
The latter, I believe, but you lose the ability to give different weights to matches on different fields. Otis Solr & ElasticSearch Support http://sematext.com/ On Feb 6, 2013 2:34 PM, "adm1n" wrote: > Hi, > > Let's assume I have to search for a string (textField) in 6-7 different > fields (us

Re: SolrCore#getIndexDir() contract change between 3.6 and 4.1?

2013-02-06 Thread Gregg Donovan
Mark- You're right that SolrCore#getIndexDir() did not directly read index.properties in 3.6. In 3.6, it gets it indirectly from what is passed to the constructor of SolrIndexSearcher. Here's SolrCore#getIndexDir() in 3.6: public String getIndexDir() { synchronized (searcherLock) { if

Multi-select faceting is not working when facet fields are configured in default request handler.

2013-02-06 Thread manivanann
Hi solr-user, In my work i have to do multi facet select. we have already configured facet fields globally in default request handler(solrconfig.xml). For multi facet select i have done the query with exclusion filter. But it's not working. The following is my query. http://192.168.101.141:80

Re: SolrCore#getIndexDir() contract change between 3.6 and 4.1?

2013-02-06 Thread Mark Miller
On Feb 6, 2013, at 4:23 PM, Gregg Donovan wrote: > code we had that relied on the 3.6 behavior of SolrCore#getIndexDir() is > not working the same way. Can you be very specific about the different behavior that you are seeing? What exactly where you seeing and counting on and what are you seei

Re: SolrCore#getIndexDir() contract change between 3.6 and 4.1?

2013-02-06 Thread Mark Miller
I think you must be confused? Solr 3.6 and before worked the same way - getIndexDir never read the props file - getNewIndexDir always did. This was added when replication was added as far as I remember. The idea is that you use that when constructing new searcher/writers but you shouldn't need

Re: Updating data

2013-02-06 Thread Alexandre Rafalovitch
Solr Atomic update requires all fields to be stored. Were they? Regards, Alex. Personal blog: http://blog.outerthoughts.com/ LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch - Time is the quality of nature that keeps events from happening all at once. Lately, it doesn't seem to be wor

SolrCore#getIndexDir() contract change between 3.6 and 4.1?

2013-02-06 Thread Gregg Donovan
In the process of upgrading from 3.6 to 4.1, we've noticed that much of the code we had that relied on the 3.6 behavior of SolrCore#getIndexDir() is not working the same way. In 3.6, SolrCore#getIndexDir() would get us the index directory read from index.properties, if it existed, otherwise it wou

Re: OR OR OR

2013-02-06 Thread Upayavira
Also, OR is the default, so you can improve on it with: &fq=institute_name:("xyz" "sfsda" "sdfsaf") Upayavira On Wed, Feb 6, 2013, at 08:17 PM, Shawn Heisey wrote: > On 2/6/2013 12:41 PM, anurag.jain wrote: > > in my query there are many OR's now after 79 or 80 ORS it gives error that > > url is

Re: OR OR OR

2013-02-06 Thread Shawn Heisey
On 2/6/2013 12:41 PM, anurag.jain wrote: in my query there are many OR's now after 79 or 80 ORS it gives error that url is very large. http://xvz/solr/select?q=*:*&fq=institute_name:"xyz"; OR institute_name:"sfsda" OR institute_name:"sdfsaf" .. i found a solution that we can give query th

OR OR OR

2013-02-06 Thread anurag.jain
in my query there are many OR's now after 79 or 80 ORS it gives error that url is very large. http://xvz/solr/select?q=*:*&fq=institute_name:"xyz"; OR institute_name:"sfsda" OR institute_name:"sdfsaf" .. i found a solution that we can give query through POST. but i don't know how ? can yo

Re: Multi-threaded post.jar?

2013-02-06 Thread Otis Gospodnetic
Btw wouldn't this be a chance to create a solr cli tool, much like es2unix? Maybe with a shell? I'm off-line now, but I recently came across a java lib that makes this easy... jclam jsomething ... Otis Solr & ElasticSearch Support http://sematext.com/ On Feb 6, 2013 8:48 AM, "Jan Høydahl" wrote:

Re: Updating data

2013-02-06 Thread anurag.jain
Hi, Thanks for reply. But i was doing same thing but whenver i tried to update previous field automatically delete. :( I am not getting why ? -- View this message in context: http://lucene.472066.n3.nabble.com/Updating-data-tp4038492p4038833.html Sent from the Solr - User mailing list archiv

copyField vs single field

2013-02-06 Thread adm1n
Hi, Let's assume I have to search for a string (textField) in 6-7 different fields (username, firstname, lastname, etc). Which one will have better performance: username:test OR firstname:test OR lastname:test or defining some copyField and searching within it like somecopyfield:test thanks.

Long running query triggers full copy in Solr 4.1

2013-02-06 Thread Niran Fajemisin
Hi all, I have noticed the following occur with some consistency: When I execute a long running query (that spans 15 or more seconds), the Solr node that is servicing the request starts to perform a full copy from the shard leader. My current configuration has only one shard with 3 replicas. No

Advanced Search Option in Solr corresponding to DtSearch options

2013-02-06 Thread Soumyanayan Kar
Hi, We are replacing the search and indexing module in an application from DtSearch to Solr using solrnet as the .net Solr client library. We are relatively new to Solr/Lucene and would need some help/direction to understand the more advanced search options in Solr. The current applicat

RE: Correct way for getting SolrCore?

2013-02-06 Thread Ryan Josal
This is perfect, thanks! I'm surprised it eluded me for so long. From: Mark Miller [markrmil...@gmail.com] Sent: Tuesday, February 05, 2013 4:09 PM To: solr-user@lucene.apache.org Subject: Re: Correct way for getting SolrCore? The SolrCoreAware interface?

Re: memory leak - multiple cores

2013-02-06 Thread Michael Della Bitta
Marcos, The later 3 errors are common and won't pose a problem unless you intend to reload the Solr application without restarting Geronimo often. The first error, however, shouldn't happen. Have you changed the size of PermGen at all? I noticed this error while testing Solr 4.0 in Tomcat, but ha

Re: Upgrading indexes from Solr 1.4.1 to 4.1.0

2013-02-06 Thread Artem OXSEED
It turns out that all our fields are stored and restoring from the source data is a bit of problem. I've tried DIH/SorEntityProcessor and it seems to be working out good, so I'll probably end up using it. Thank you! -- Warm regards, Artem Karpenko On 04.02.2013 19:58, Lance Norskog wrote: A s

Re: distinct count of facet field values

2013-02-06 Thread Joey Dale
Try q=*:*&group=true&group.field=cat&group.ngroups=true On 2/4/13 3:53 AM, J Mohamed Zahoor wrote: Hi Is it possible to get the distinct count of a given facet field in Solr? A query like this q=*:*&facet=true&facet.field=cat display the counts of all the unique categories present like ele

Re: Multi-threaded post.jar?

2013-02-06 Thread Jan Høydahl
With dependencies I meant external jar dependencies. Perhaps extensions could have deps while leaving the "core" compilable without? -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com Solr Training - www.solrtraining.com 5. feb. 2013 kl. 17:10 skrev Upayavira : > By depe

Re: Getting Lucense Query from Solr query (Or converting Solr Query to Lucense's query)

2013-02-06 Thread Sabeer Hussain
It is working but I come across another problem. I am expecting same parsedquery in the following two approaches but I am not getting it as same Approach 1: BooleanQuery myQuery = new BooleanQuery(); myQuery.add(new TermQuery(new Term("PATIENT_GENDER", "Male")), BooleanClause.Occur

Re: Controlling traffic between solr 4.1 nodes

2013-02-06 Thread Erick Erickson
You're not missing anything that I know of. The best I've been able to come up with so far is to treat the disparate DCs as separate clusters. Your ingestion process needs to know enough to send updates to both DCs but that's the only point of contact. The problem I see here is not only with inter

memory leak - multiple cores

2013-02-06 Thread Marcos Mendez
Hi, I'm deploying the SOLR war in Geronimo, with multiple cores. I'm seeing the following issue and it eats up a lot of memory when shutting down. Has anyone seen this and have an idea how to solve it? Exception in thread "DefaultThreadPool 196" java.lang.OutOfMemoryError: PermGen space 2013-02-0

Re: Dynamic fields - names having special characters like ">" "<"

2013-02-06 Thread Rajani Maski
Hi all, I found a solution myself - to replace - < > with < and > Thanks & Regards Rajani On Wed, Feb 6, 2013 at 3:50 PM, Rajani Maski wrote: > Hi all, > > We have few *dynamic field names* coming with special character. ex: * > _str*. Solr throws error:* org.apache.solr.common.So

Re: Fwd: advice about develop AbstractSolrEventListener.

2013-02-06 Thread Miguel
Hi I found a solution. I am going to Configured Update Request Processors, that I have seen in: http://wiki.apache.org/solr/UpdateRequestProcessor If I developed a custom class extend UpdateRequestProcessorFactory, I'll have access to : * SolrQueryRequest req. (Object request) * Sol

Re: auto trigger the delta import to update index in solr if any update in sql database

2013-02-06 Thread Rohan Thakur
hi thanks but I think this one is for ms sql not for mysql regards Rohan On Wed, Feb 6, 2013 at 11:53 AM, jp wrote: > The following link provides on using external activator for tracking DB > changes > http://ajitananthram.wordpress.com/2012/05/26/auditing-external-activator/ > > --JP > >

UnionDocsAndPositionsEnum class not found

2013-02-06 Thread Markus Jelsma
Hi, We're getting the following trace for some Dismax queries that contain non-alphanumerics: Feb 6, 2013 10:06:56 AM org.apache.solr.common.SolrException log SEVERE: null:java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/lucene/search/UnionDocsAndPositionsEnum at