Re: any difference between using collection vs. shard in URL?

2014-11-06 Thread Ramkumar R. Aiyengar
Do keep one thing in mind though. If you are already doing the work of figuring out the right shard leader (through solrJ or otherwise), using that location with just the collection name might be suboptimal if there are multiple shard leaders present in the same instance -- the collection name

solr.xml coreRootDirectory relative to solr home

2014-11-06 Thread Andreas Hubold
Hi, I'm trying to configure a different core discovery root directory in solr.xml with the coreRootDirectory setting as described in https://cwiki.apache.org/confluence/display/solr/Format+of+solr.xml I'd like to just set it to a subdirectory of solr home (a cores directory to avoid

RE: recovery process - node with stale data elected leader

2014-11-06 Thread francois.grollier
Hi all, Any idea on my issue below? Thanks Francois -Original Message- From: Grollier, Francois: IT (PRG) Sent: Tuesday, November 04, 2014 6:19 PM To: solr-user@lucene.apache.org Subject: recovery process - node with stale data elected leader Hi, I'm running solrCloud 4.6.0 and I

grouping finds result name=doclist numFound=0

2014-11-06 Thread Giovanni Bricconi
Sorry for the basic question q=*:*fq=-sku:2471834fq=FiltroDispo:1fq=has_image:1rows=100fl=descCat3,IDCat3,ranking2group=truegroup.field=IDCat3group.sort=ranking2+descgroup.ngroups=true returns some groups with no results. I'm using solr 4.8.0, the collection has 3 shards Am I missing some

Re: EarlyTerminatingCollectorException

2014-11-06 Thread Dirk Högemann
https://issues.apache.org/jira/browse/SOLR-6710 2014-11-05 21:56 GMT+01:00 Mikhail Khludnev mkhlud...@griddynamics.com: I'm wondered too, but it seems it warmups queryResultCache

Re: Schemaless configuration using 4.10.2/API returning 404

2014-11-06 Thread Andreas Hubold
Hi, it might be a silly question, but are you sure that a Solr core collection1 exists? Or does it have a different name? At least you would get a 404 if no such core exists. Regards, Andreas nbosecker wrote on 11/05/2014 09:12 PM: Hi all, I'm working on updating legacy Solr to 4.10.2 to

Delete data from stored documents

2014-11-06 Thread yriveiro
Hi, It's possible remove store data of an index deleting the unwanted fields from schema.xml and after do an optimize over the index? Thanks, /yago - Best regards -- View this message in context: http://lucene.472066.n3.nabble.com/Delete-data-from-stored-documents-tp4167990.html Sent

AW: grouping finds result name=doclist numFound=0

2014-11-06 Thread Timo Schmidt
Hi Giovanni, afaik grouping is not completly working with solr cloud. You maybe could check: https://issues.apache.org/jira/browse/SOLR-5046 In addition, documents that should be grouped, need to be in the same shard (You can use router.field=IDCat3 to place all of your documents with the same

How to dynamically create Solr cores with schema

2014-11-06 Thread Andreas Hubold
Hi, I have a use-case where Java applications need to create Solr indexes dynamically. Schema fields of these indexes differ and should be defined by the Java application upon creation. So I'm trying to use the Core Admin API [1] to create new cores and the Schema API [2] to define fields.

Re: Delete data from stored documents

2014-11-06 Thread Mikhail Khludnev
nope. On Thu, Nov 6, 2014 at 5:19 PM, yriveiro yago.rive...@gmail.com wrote: Hi, It's possible remove store data of an index deleting the unwanted fields from schema.xml and after do an optimize over the index? Thanks, /yago - Best regards -- View this message in context:

Re: What's the most efficient way to sort by number of terms matched?

2014-11-06 Thread Ahmet Arslan
Hi Trey, Not exactly the same but we did something similar with (e)dismax's mm parameter. By autoRelax'ing it. In your example, try with mm=3 if numFound 20 then try with mm=2 etc. Ahmet On Thursday, November 6, 2014 8:41 AM, Trey Grainger solrt...@gmail.com wrote: Just curious if there

Re: SolrCloud shard distribution with Collections API

2014-11-06 Thread ralph tice
I've had a bad enough experience with the default shard placement that I create a collection with one shard, add the shards where I want them, then use add/delete replica to move the first one to the right machine/port. Typically this is in a SolrCloud of dozens or hundreds of shards. Our shards

Updating an index

2014-11-06 Thread phiroc
Hello, I have [mistakenly] created a SOLR index in which the document IDs contain URIs such as file:///Z:/1933/01/1933_01.png . In a single SOLR update command, how can I: - copy the contents of each document's id field to a new field called 'url', after replacing 'Z:' by 'Y:' - make SOLR

Re: Schemaless configuration using 4.10.2/API returning 404

2014-11-06 Thread nbosecker
Thanks for the reply! My Solr has 2 cores(collection1/collection2), I can access them via the Solr dashboard with no problem. https://myserver:9943/solr/#/collection1 https://myserver:9943/solr/#/collection2 I can also verify the solrconfig.xml for them contain the schemaless config:

Re: create new core based on named config set using the admin page

2014-11-06 Thread Erick Erickson
Yeah, please create a JIRA. There are a couple of umbrella JIRAs that you might want to link it to I'm not sure it quite fits in either, if not just let it hang out there bear: https://issues.apache.org/jira/browse/SOLR-6703 https://issues.apache.org/jira/browse/SOLR-6084 On Wed, Nov 5, 2014 at

Re: solr.xml coreRootDirectory relative to solr home

2014-11-06 Thread Erick Erickson
An oversight I think. If you create a patch, let me know and we can get it committed. Hmmm, not sure though, this'll change the current behavior that people might be counting on On Thu, Nov 6, 2014 at 1:02 AM, Andreas Hubold andreas.hub...@coremedia.com wrote: Hi, I'm trying to configure

Re: Schemaless configuration using 4.10.2/API returning 404

2014-11-06 Thread Alexandre Rafalovitch
Ok, I just booted fresh solr 4.10.2, started example-schemaless and hit http://localhost:8983/solr/collection1/schema/fields - and it worked. So, I suspect the problem is not with Solr but with your setup around it. For example, is your Solr listening on port 9943 directly (and not 8983) or do

Re: Updating an index

2014-11-06 Thread Erick Erickson
No way that I know of, re-indexing is in order. Solr does not update in place, you have to re-add the document. Well, AtomicUpdates work but iff all fields are stored. And it still wouldn't be a single Solr command. Best, Erick On Thu, Nov 6, 2014 at 8:20 AM, phi...@free.fr wrote: Hello, I

Re: What's the most efficient way to sort by number of terms matched?

2014-11-06 Thread Sujit Pal
Hi Trey, In an application I built few years ago, I had a component that rewrote the input query into a Lucene BooleanQuery and we would set the minimumNumberShouldMatch value for the query. Worked well, but lately we are trying to move away from writing our own custom components since

Re: solr.xml coreRootDirectory relative to solr home

2014-11-06 Thread Shawn Heisey
On 11/6/2014 12:02 PM, Erick Erickson wrote: An oversight I think. If you create a patch, let me know and we can get it committed. Hmmm, not sure though, this'll change the current behavior that people might be counting on Relative to the solr home sounds like the best option to me.

Re: What's the most efficient way to sort by number of terms matched?

2014-11-06 Thread Mikhail Khludnev
Sadly, it seems it wasn't been done so far. It's either custom similarity or function query. On Thu, Nov 6, 2014 at 9:40 AM, Trey Grainger solrt...@gmail.com wrote: Just curious if there are some suggestions here. The use case is fairly simple: Given a query like python OR solr OR hadoop, I

Re: Schemaless configuration using 4.10.2/API returning 404

2014-11-06 Thread nbosecker
I have some level of logging in Tomcat, and I can see that SolrDispatchFilter is being invoked: 2014-11-06 17:23:19,016 [catalina-exec-3] DEBUG SolrDispatchFilter - Closing out SolrRequest: {} But that really isn't terribly helpful. Is there more logging that I could invoke to get

Re: SolrCloud shard distribution with Collections API

2014-11-06 Thread CTO직속IsabellePhan
When using Collections API CREATE action, I found that sometimes default shard placement is correct (leader and replica on different servers) and sometimes not. So I was looking for a simple and reliable way to ensure better placement. It seems like I will have to do it manually for best control,

Re: Best practice to setup schemas for documents having different structures

2014-11-06 Thread Vishal Sharma
Thanks for the response guys! Appreciate it. *Vishal Sharma** Team Lead, Grazitti Interactive*T: +1 650­ 641 1754 E: vish...@grazitti.com www.grazitti.com [image: Description: LinkedIn] http://www.linkedin.com/company/grazitti-interactive[image: Description: Twitter]