Re: Perl Client for SolrCloud

2014-01-10 Thread Chris Hostetter
: A quick question though: how would I write the shard logic to behave similar : to Java's Zookeeper-aware client? I'm able to get the hash/hex needed for each : shard from clusterstate.json, but how do I know which field to hash on? The logic you're asking about is encapsulated in the DocRouter

Re: Perl Client for SolrCloud

2014-01-10 Thread Tim Vaillancourt
I'm pretty interested in taking a stab at a Perl CPAN for SolrCloud that is Zookeeper-aware; it's the least I can do for Solr as a non-Java developer. :) A quick question though: how would I write the shard logic to behave similar to Java's Zookeeper-aware client? I'm able to get the hash/hex

Re: CSVResponseWriter and grouped results not working

2014-01-10 Thread Lianyi Han
Same here with Solr 4.4.0, no result when group=true&wt=csv -lianyi "Less isn't more; just enough is more." -Milton Glaser On Fri, Jan 10, 2014 at 2:37 PM, Matt Kleweno wrote: > With Solr 4.3.1 - it appears the CSVResponseWriter does not return any > results if group=true. Is that correct or

CSVResponseWriter and grouped results not working

2014-01-10 Thread Matt Kleweno
With Solr 4.3.1 - it appears the CSVResponseWriter does not return any results if group=true. Is that correct or am I doing something wrong? I get results when not grouping. I wanted to verify before posting a feature request.

Re: Tracking down the input that hits an analysis chain bug

2014-01-10 Thread Benson Margulies
Thanks, that's the recipe that I need. On Fri, Jan 10, 2014 at 11:40 AM, Chris Hostetter wrote: > > : Is there a neighborhood of existing tests I should be visiting here? > > You'll need a custom schema that refers to your new > MockFailOnCertainTokensFilterFactory, so i would create a completley

Indexing spatial fields into SolrCloud (HTTP)

2014-01-10 Thread Beale, Jim (US-KOP)
I am porting an application from Lucene to Solr which makes use of spatial4j for distance searches. The Lucene version works correctly but I am having a problem getting the Solr version to work in the same way. Lucene version: SpatialContext geoSpatialCtx = SpatialContext.GEO; geoSpati

Re: Tracking down the input that hits an analysis chain bug

2014-01-10 Thread Chris Hostetter
: Is there a neighborhood of existing tests I should be visiting here? You'll need a custom schema that refers to your new MockFailOnCertainTokensFilterFactory, so i would create a completley new test class somewhere in ...solr.update (you're testing that an update fails with a clean error)

Re: Tracking down the input that hits an analysis chain bug

2014-01-10 Thread Benson Margulies
Is there a neighborhood of existing tests I should be visiting here? On Fri, Jan 10, 2014 at 11:27 AM, Benson Margulies wrote: > OK, patch forthcoming. > > On Fri, Jan 10, 2014 at 11:23 AM, Chris Hostetter > wrote: >> >> : The problem manifests as this sort of thing: >> : >> : Jan 3, 2014 6:05:

Re: Tracking down the input that hits an analysis chain bug

2014-01-10 Thread Benson Margulies
OK, patch forthcoming. On Fri, Jan 10, 2014 at 11:23 AM, Chris Hostetter wrote: > > : The problem manifests as this sort of thing: > : > : Jan 3, 2014 6:05:33 PM org.apache.solr.common.SolrException log > : SEVERE: java.lang.IllegalArgumentException: startOffset must be > : non-negative, and endO

Re: Tracking down the input that hits an analysis chain bug

2014-01-10 Thread Chris Hostetter
: The problem manifests as this sort of thing: : : Jan 3, 2014 6:05:33 PM org.apache.solr.common.SolrException log : SEVERE: java.lang.IllegalArgumentException: startOffset must be : non-negative, and endOffset must be >= startOffset, : startOffset=-1811581632,endOffset=-1811581632 Is there a st

Re: leading wildcard characters

2014-01-10 Thread Peter Keegan
Removing ReversedWildcardFilterFactory had no effect. On Fri, Jan 10, 2014 at 10:48 AM, Ahmet Arslan wrote: > Hi Peter, > > Can you remove any occurrence of ReversedWildcardFilterFactory in > schema.xml? (even if you don't use it) > > Ahmet > > > > On Friday, January 10, 2014 3:34 PM, Peter Ke

Re: DateField - Invalid JSON String Exception - converting Query Response to JSON Object

2014-01-10 Thread Chris Hostetter
: Response: : {responseHeader={status=0,QTime=0,params={lowercaseOperators=true,sort=score : desc,cache=false,qf=content,wt=javabin,rows=100,defType=edismax,version=2,fl=*,score,start=0,q="White+Paper",stopwords=true,fq=type:"White : Paper"}},response={numFound=9,start=0,maxScore=0.61586785,docs

Re: leading wildcard characters

2014-01-10 Thread Ahmet Arslan
Hi Peter, Can you remove any occurrence of ReversedWildcardFilterFactory in schema.xml? (even if you don't use it) Ahmet On Friday, January 10, 2014 3:34 PM, Peter Keegan wrote: How do you disable leading wildcards in 4.X? The setAllowLeadingWildcard method is there in the parser, but nothi

Re: solr text analysis showing a red bar error

2014-01-10 Thread Erick Erickson
Ah, OK. The analysis page in the admin screen is not really intended to analyze large text blocks. I suspect that if you're running into size limitations, you'll find the output pretty hard to read the output. I almost always use it with pretty short text fragments, usually just a few words. FWIW,

Re: solr text analysis showing a red bar error

2014-01-10 Thread Umapathy S
I think it's the HTTP GET parameter length/size issue. I got to the maximum characters it allowed through Field value (Index). But when I added characters on Field value (Query), I got the red bar again. I had to reduce the characters in Field value (Index) to make it work. I was using chrome so

Re: Copying Index

2014-01-10 Thread Erick Erickson
OK, probably this is what's happening: There's no event that causes the slave to say "Oh, my index is out of date". This assumes (and I haven't checked) that you have the same number of segments etc. after the upgrade to 4x format. So when you update a doc, that registers a "change event" that the

Re: Solr 4.6.0: DocValues (distributed search)

2014-01-10 Thread ku3ia
Manuel Le Normand wrote > In short, when running a distributed search every shard runs the query > separately. Each shard's collector returns the topN (rows param) internal > docId's of the matching documents. > > These topN docId's are converted to their uniqueKey in the > BinaryResponseWriter an

leading wildcard characters

2014-01-10 Thread Peter Keegan
How do you disable leading wildcards in 4.X? The setAllowLeadingWildcard method is there in the parser, but nothing references the getter. Also, the Edismax parser always enables it and provides no way to override. Thanks, Peter

Re: Copying Index

2014-01-10 Thread anand chandak
Erick My apologies,if I was rushing. Yes its' an old style master/slave replication. I was going through solr logs, but don't see any errors as such. The slave are correctly configured and pointing to master correctly, one thing I noted is on creating any new document to the master, its get

Re: Copying Index

2014-01-10 Thread Erick Erickson
You have to be a bit patient. Folks in the US, at least, are barely awake yet. We are not a paid-support helpdesk... On to your problem. You haven't given enough information to say much. for instance, what do you mean by "replication"? Old-style master/slave replication? Do you see any errors in y

Re: Searchquery on field that contains space

2014-01-10 Thread Erick Erickson
What's the purpose of having two fields "title" and "title_search"? They both are exactly the same so it seems you could get rid of one Just a nit. Erick As far as the analysis page is concerned, I suspect you took out this definition from your solrconfig.xml file: PUT IT BACK ;). Really,

Re: solr text analysis showing a red bar error

2014-01-10 Thread Erick Erickson
Hmmm, works on a 4x Solr. Please paste the raw text you're putting in the entry field here, so I don't have to re-type it all from the image (can't cut/paste). What version of Solr are you using? Anything come out in the Solr log that looks suspicious? Best, Erick On Thu, Jan 9, 2014 at 7:52

Re: Copying Index

2014-01-10 Thread anand chandak
Folks, any response to below query would be highly appreciated Thanks, Anand On 1/10/2014 11:04 AM, anand chandak wrote: Hi, I am testing replication feature of solr 4.x with large index, unfortunately, that index that we had was 3.x format. So to conver that into 4.x I copied (file sys

Re: Solr 4.6.0: DocValues (distributed search)

2014-01-10 Thread Manuel Le Normand
In short, when running a distributed search every shard runs the query separately. Each shard's collector returns the topN (rows param) internal docId's of the matching documents. These topN docId's are converted to their uniqueKey in the BinaryResponseWriter and sent to the frontend core (the one

Re: Analysis page broken on trunk?

2014-01-10 Thread Stefan Matheis
Sorry for not getting back on this earlier - i've tried several fields w/ values from the example docs and that looks pretty okay to me, no change noticed on that. Can you share a screenshot or something like that? And perhaps Input, Fields/Fieldtype which doesn't work for you? -Stefan On W

Re: How to index data in muliValue field with key

2014-01-10 Thread Stefan Matheis
Doesn't work like that - a multivalued field is like a list. PHP doesn't make a difference between a list and a map - but Solr does. you can't have a key in those fields. But based on what infos you've provided .. it looks more like you do in fact need different analyzers to get the english v

Boosting documents at index time, based on payloads

2014-01-10 Thread michael.boom
Hi, I'm not really sure how/if payloads work (I tried out Rafal Kuc's payload example in Apache Solr 4 Cookbook and did not do what i was expecting - see below what i was expecting to do and please correct me if i was looking for the the wrong droid) What I am trying to achieve is similar to the

Sorting of facets

2014-01-10 Thread Markus.Mirsberger
Hi, is ist possible to sort the facet results by other fields than the facet field? e.g. I have 3 int fields: directory, pages, links Because I want all unique directories I have to use directory as the facet.field parameter. As far as I understand what I read I can now only sort the facet r

Re: Where does Solr load balancer runs?

2014-01-10 Thread Mikhail Khludnev
Hi Sreehareesh, In master-slave there is no LB inside. You need to provide it externally and configure to rotate slave endpoints. On Fri, Jan 10, 2014 at 12:20 PM, Sreehareesh Kaipravan Meethaleveetil < smeethalevee...@sapient.com> wrote: > Hi, > > I'm a little confused about the Solr replicatio

Re: Searchquery on field that contains space

2014-01-10 Thread PeterKerk
@iorixxx: thanks, you 2nd solution worked. The first one didn't (does not matter now), I got this: With the first solution all queries work as expected, however with this: q=title_search:"new%20yk"* still new york is returned. -- View this message in context: http://lucene.472066.n3.nabb

How to index data in muliValue field with key

2014-01-10 Thread rachun
*This might be very simple question but I can't figure out after i tried to google all day. I just want the data to show like this* /"record": [ { id: "product001" name: "iPhone case", title: { th: "เคส ไอโฟน5 iphone5 Case วิบวับ ลายผสมมุกสีชมพู back case",

Where does Solr load balancer runs?

2014-01-10 Thread Sreehareesh Kaipravan Meethaleveetil
Hi, I'm a little confused about the Solr replication/load balancing. Where exactly the load balancer runs, is it in the Master node (might not I guess) or Slave or somewhere else? Please let me know. Thanks & Regards, Sreehareesh KM