ERROR StreamingSolrServers 4.10.2

2014-11-23 Thread Joseph V J
Hi, I have a production Solr Cloud setup which has been migrated from 4.2 to 4.10.2. Upon then at times I'm getting this ERROR. ERROR StreamingSolrServers org.apache.solr.common.SolrException: Bad Request request: http://10.0.0.160:8080/solr/profiles/update?update.distrib=TOLEADER&distrib.from=h

Error occurred when getting solr-core

2014-11-23 Thread Danesh Kuruppu
Hi all, I am using solr version 4.7.2 I am getting following when communicating with solr server. org.apache.solr.common.SolrException: No such core: db > at > org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112) > at > org.apache.solr.client.solr

Re: Duplicate facets when the handler configuration specifies facet fields

2014-11-23 Thread Alexandre Rafalovitch
I can reproduce it. I added your parameters to the default section of the config and then run the following: curl "http://localhost:8983/solr/schemaless/select?q=*:*&rows=0&wt=json&indent=true&facet=true&facet.field=primaryId2&facet.limit=10&echoParams=all"; I get: -- "params"

Re: Too much data after closed for HttpChannelOverHttp

2014-11-23 Thread Alexandre Rafalovitch
Good point on that one Steve. Wireshark is both a hammer and a power drill of network troubleshooting. Takes steady hands to hold it right (it has a bit of a learning curve) but it is a great tool. I swore by it (well Ethereal back then) in my tech support days. So, seconded to try using that if

RE: Too much data after closed for HttpChannelOverHttp

2014-11-23 Thread steve
For what it's worth, depending on the type of PC/MAC you're using, you can use WireShark to look at active http header (sent and received) that are being created for the request. https://www.wireshark.org/ I don't have any financial interest in them, but the stuff works! Steve > Date: Sun, 23

Re: analyzer of user queries in SOLR 4.10?

2014-11-23 Thread Ahmet Arslan
Hi, Same as index time. You can define query time analyzer in schema.xml. Here is an example taken from default schema.xml . On Monday, November 24, 2014 12:05 AM, David Lee wrote: Yes, my edismax parser is configured to query multiple fields, including qf, pf, pf2 and pf3.

Re: Using stored value of a field to build suggester index

2014-11-23 Thread Erick Erickson
You can't build the suggester from the stored values, it's constructed from indexed terms only. You probably want to create a copyField to a less-analyzed (indexed) field and suggest from _that_. You'll probably want to do things like remove punctuation, perhaps lowercase and the like but not stem

Re: analyzer of user queries in SOLR 4.10?

2014-11-23 Thread David Lee
Yes, my edismax parser is configured to query multiple fields, including qf, pf, pf2 and pf3. Is there any online documentation on "multiple analysis chains might get used -- each field uses its own analysis chain" ? Thanks, DL On Sun, Nov 23, 2014 at 1:34 PM, Shawn Heisey wrote: > On 11/23/2

Random sorting and result consistency across successive calls based on seed

2014-11-23 Thread Adam Nelson
Hi, We are using the random dynamic type (solr.RandomSortField) with Solr Cloud, 1 shard and 1 replica. Our use case is searching and displaying items for sale in two major types of ad - premium and standard. We don't want all recently-updated or recently-created ads sorted to the top by default,

Re: analyzer of user queries in SOLR 4.10?

2014-11-23 Thread Shawn Heisey
On 11/23/2014 2:13 PM, David Lee wrote: > Thanks Erik. I am actually using edismax query parser in SOLR. I can > explicitly specify the fieldType (e.g., text_general or text_en) for > different fields (e.g., title or description) . But I do not see how to > specify the fieldType (thus analyzer

Re: analyzer of user queries in SOLR 4.10?

2014-11-23 Thread David Lee
Thanks Erik. I am actually using edismax query parser in SOLR. I can explicitly specify the fieldType (e.g., text_general or text_en) for different fields (e.g., title or description) . But I do not see how to specify the fieldType (thus analyzer) for runtime queries. Thanks, DL On Sun, Nov

Using stored value of a field to build suggester index

2014-11-23 Thread Faisal Mansoor
Hi, I am trying to build a suggester for a field which is both index and stored. The field is whitespace tokenized, lowercased, stemmed etc while indexing. It looks like that the indexed terms are used as a source for building the suggester index. Which is what the following line in the suggester

Re: Too much data after closed for HttpChannelOverHttp

2014-11-23 Thread Hakim Benoudjit
Actually I'm using a php client (I think it sends a HTTP request to Solr), but you're right tomorrow once I'll get to the office, I'll set chunk size to a smaller value, and will tell you if that was the reason. Thanks. 2014-11-23 19:35 GMT+01:00 Alexandre Rafalovitch : > Most probably just a re

Re: Too much data after closed for HttpChannelOverHttp

2014-11-23 Thread Alexandre Rafalovitch
Most probably just a request that's too large. Have you tried dropping down to 500 items and seeing what happens? Are you using SolrJ to send content to Solr? Or a direct HTTP request? Regards, Alex. P.s. You may also find it useful to read up on the Solr commit and hard vs. soft commits. Chec

Re: analyzer of user queries in SOLR 4.10?

2014-11-23 Thread Alexandre Rafalovitch
You can find an example of split definition as well as the full list of analyzers available to you at: http://www.solr-start.com/info/analyzers/ (example is well towards the bottom) Regards, Alex. Personal: http://www.outerthoughts.com/ and @arafalov Solr resources and newsletter: http://www.so

Re: analyzer of user queries in SOLR 4.10?

2014-11-23 Thread Erik Hatcher
Query time analysis depends on the query parser in play. If a query parser chooses to analyze some or all of the query it will use the same analysis as index time unless specified separately (in the field type definition itself too) Erik > On Nov 23, 2014, at 13:08, David Lee wrote: > >

analyzer of user queries in SOLR 4.10?

2014-11-23 Thread David Lee
This could be a dummy question. At index time, we can specify the fieldType of different fields; thus, we know the analyzers for those fields. In schema.xml, I do not see the configuration how to specify the fieldType (thus analyzer) for runtime user queries. Can anyone help explain this ?

Too much data after closed for HttpChannelOverHttp

2014-11-23 Thread Hakim Benoudjit
Hi there, I have deployed solr with Jetty, and I'm trying to index a quite large amount of items (300K), retreived from a MySQL database (unfortunately I'm not using DIH; I'm doing it manually, by getting items from MySQL and then index them it in Solr). But, I'm not indexing all of those items a

Re: Error while initializing EmbeddedSolrServer

2014-11-23 Thread Danesh Kuruppu
Thanks Mikhail/Michael I checked both lucene-core.jar and lucene-codecs.jar. org.apache.lucene.codecs.Codec is there in both files. Seems like problem is in osgi bundling. I need to consider the service loader in osgi bundle which is not done. Thanks for information. Danesh On Sun, Nov 23, 2014

Re: Indexing problems with BBoxField

2014-11-23 Thread remus
Thanks a lot for your reply! I had »docValues="true"« in there before, but then thought I'd try out removing it to see if that helped. It didn't, and I forgot to re-add it before copying it into the mail. So, unfortunately, that's not it. However, the other one seems to bring us a step closer to

Re: Indexing problems with BBoxField

2014-11-23 Thread Jack Krupansky
A difference I see in your snippet from the example is that you don't have "docValues="true"" on the coordinate field type. You wrote: stored="false" /> But the example is: docValues="true" stored="false"/> Also, maybe try a static field rather than dynamic field, although the latter shoul

Re: Error while initializing EmbeddedSolrServer

2014-11-23 Thread Michael Sokolov
Those Spi classes rely on a configuration file that gets stored in the META-INF folder. I'm not familiar with who OSGI works, but I'm pretty sure that failure is because the file META-INF/services/org.apache.lucene.codecs.Codec (you'll see it in the lucene-core jar) can't be found -Mike On

Indexing problems with BBoxField

2014-11-23 Thread Thomas Seidl
Hi all, I just downloaded Solr 4.10.2 and wanted to try out the new BBoxField type, but couldn't get it to work. The error (with status 400) I get is: ERROR: [doc=foo] Error adding field 'bboxs_field_location_area'='ENVELOPE(25.89, 41.13, 47.07, 35.31)' msg=java.lang.IllegalStateException: instea

ClassCastException using elevations with cursorMark.

2014-11-23 Thread Brendan Humphreys
Hi Folks, I'd like to switch to using cursorMark for pagination, but I can't get it to work with elevations (Solr 4.10.2 / jdk7 / osx). I try a query like: q=foo&sort=score+desc,id+asc&elevateIds=1234567&cursorMark=* and get an exception: java.lang.ClassCastException: java.lang.Float cannot be

Re: Error while initializing EmbeddedSolrServer

2014-11-23 Thread Mikhail Khludnev
Hi, Did you tried to figure out which artefact contains org.apache.lucene.codecs.Codec? I guess it should be something like lucene-codec or so. Also, referring different versions 3.6.2 vs 4.7.2 vs 3.0.3 is dead-end. Happy OSGIing! On Sun, Nov 23, 2014 at 6:14 AM, Danesh Kuruppu wrote: > Hi all,