Transforming SolrDocument to SolrInputDocument in Solr 6.0

2016-05-10 Thread Stephan Schubert
In Solr 6.0 the method ClientUtils.toSolrInputDocument() was removed (deprecated since 5.5.1, see https://issues.apache.org/jira/browse/SOLR-8339). What is the best way now to transform a SolrDocument into a SolrInputDocument? Mit freundlichen Grüßen / Best regards Stephan Schubert Senior Web

Transforming SolrDocument to SolrInputDocument in Solr 6.0

2016-05-10 Thread Stephan Schubert
In Solr 6.0 the method ClientUtils.toSolrInputDocument() was removed (deprecated since 5.5.1, see https://issues.apache.org/jira/browse/SOLR-8339). What is the best way now to transform a SolrDocument into a SolrInputDocument? Mit freundlichen Grüßen / Best regards Stephan Schubert Senior Web

Start Solr with multiple external zookeepers on Windows Server?

2015-04-27 Thread Stephan Schubert
Hi everyone, how is it possible to start solr with an external set of zookeeper instances (quorum of 3 servers) on a windows server (2008R2)? >From the wiki I got ( https://cwiki.apache.org/confluence/display/solr/Setting+Up+an+External+ZooKeeper+Ensemble ) bin\solr restart -c -p 8983 -z sampl

Start Solr with multiple external zookeepers on Windows Server?

2015-04-27 Thread Stephan Schubert
Hi everyone, how is it possible to start solr with an external set of zookeeper instances (quorum of 3 servers) on a windows server (2008R2)? >From the wiki I got ( https://cwiki.apache.org/confluence/display/solr/Setting+Up+an+External+ZooKeeper+Ensemble ) bin\solr restart -c -p 8983 -z sampl

Antwort: Start Solr with multiple external zookeepers on Windows Server?

2015-04-28 Thread Stephan Schubert
Hi there, editing the solr.in.cmd and list the zookeeper hosts there instead of passing them via parameter in the console worked. I'm using Solr 5.1 btw. Von:Stephan Schubert An: solr-user@lucene.apache.org, Datum: 27.04.2015 19:06 Betreff:Start Solr with mul

RE: Expected mime type application/octet-stream but got text/html

2015-04-28 Thread Stephan Schubert
Hi, just a wild guess: you are calling /solr/update instead of /solr/collection/update Regards Stephan Von:Vijaya Narayana Reddy Bhoomi Reddy An: solr-user@lucene.apache.org, Datum: 28.04.2015 13:57 Betreff:Expected mime type application/octet-stream but got text/html

Antwort: Custom Scoring Question

2015-04-29 Thread Stephan Schubert
Hi Johannes, did you have a look on Solr edismax and function queries? https://cwiki.apache.org/confluence/display/solr/Function+Queries If I got you right, for the case you just want to ignore fields which have not a value set on a specific field you can filter them out with a filter query.

Antwort: Re: Transforming SolrDocument to SolrInputDocument in Solr 6.0

2016-05-10 Thread Stephan Schubert
Ouch... thanks a lot ;) Mit freundlichen Grüßen / Best regards Stephan Schubert Senior Web Application Engineer | IT Engineering Information Oriented Applications SICK AG | Erwin-Sick-Str. 1 | 79183 Waldkirch | Germany Phone +49 7681 202-3751 | Fax | mailto:stephan.schub...@sick.de | http

Antwort: Re: Transforming SolrDocument to SolrInputDocument in Solr 6.0

2016-05-11 Thread Stephan Schubert
6 17:49 Betreff:Re: Transforming SolrDocument to SolrInputDocument in Solr 6.0 Hmm, looking at the patch I see: DocumentObjectBinder binder = new DocumentObjectBinder(); . . . SolrInputDocument solrInputDoc = binder.toSolrInputDocument(in); But I confess I didn't actually try it. On T

Bug in Solr 6.6.0? Cannot change DocValues type from SORTED_SET to SORTED

2017-08-30 Thread Stephan Schubert
After I tried an update from Solr 6.5.0 to Solr 6.6.0 (SolrCloud mode), I receive in one collection the following error: "Cannot change DocValues type from SORTED_SET to SORTED for field "index_todelete". I had a look on the index values (if set all are true or not filled, checked via facetin

Bug in Solr 6.6.0? "Cannot change DocValues type from SORTED_SET to SORTED"

2017-08-30 Thread Stephan Schubert
After I tried an update from Solr 6.5.0 to Solr 6.6.0 (SolrCloud mode), I receive in one collection the following error: "Cannot change DocValues type from SORTED_SET to SORTED for field "index_todelete". I had a look on the index values (if set all are true or not filled, checked via facetin

Antwort: Re: Bug in Solr 6.6.0? "Cannot change DocValues type from SORTED_SET to SORTED"

2017-08-31 Thread Stephan Schubert
tions and when you query this error is thrown. > > Most of the time when you change a field's type in the schema you have > to re-index from scratch. And I'd delete *:* first (or just use a new > collection and alias). > > Best, > Erick > > On Wed, Aug 30, 2017 at

Antwort: 6.6 Cannot talk to ZooKeeper - Updates are disabled.

2017-08-31 Thread Stephan Schubert
Hi markus, try to stop your indexing/update processes and restart your ZooKeeper instances (not all at the same time of course). This is what I do in these cases and helped me so far. Von:Markus Jelsma An: Solr-user Datum: 31.08.2017 09:49 Betreff:6.6 Cannot talk to ZooKee

Antwort: RE: Antwort: 6.6 Cannot talk to ZooKeeper - Updates are disabled.

2017-08-31 Thread Stephan Schubert
Hi Markus, I don't know what Client you use, but if you are using SolrJ enabling the logging could be an option to "dig deeper" into the problem. This can be the ouput for example via log4j on log level info: ... 2017-08-31 10:01:56 INFO ZooKeeper:438 - Initiating client connection, connectSt

PathHierarchyTokenizerFactory storage for pivot facets

2014-01-05 Thread Stephan Schubert
I want to store the levels of an path/url in seperate fields to make use of pivot faceting. I thought about using the PathHierarchyTokenizerFactory for that. But how can I store the several levels of an url in seperate fields? Example: Doc1 - Path: a/b/c/d Doc2 - Path: f/g/h/i Document 1 should