Re: How to get a list of servers per collection in sorlcloud using java api?

2012-11-22 Thread Sami Siren
servers in the zookeeper ensemble that store the given collection ListString getServers(String zkhost, String collectionName) You can use ZKStateReader (#getClusterState) to get this info. -- Sami Siren

Re: SolrCloud: Very strange behavior when doing atomic updates or documents reindexation.

2012-11-22 Thread Sami Siren
I think the problem is that even though you were able to work around the bug in the client solr still uses the xml format internally so the atomic update (with multivalued field) fails later down the stack. The bug you filed needs to be fixed to get the problem solved. On Thu, Nov 22, 2012 at

Re: SolrCloud: Very strange behavior when doing atomic updates or documents reindexation.

2012-11-22 Thread Sami Siren
strange that some documents were updated (atomic updates) correctly and other ones not? Can´t it be a more serious problem like some kind of index writer lock, or whatever? Regards, - Luis Cappa. 2012/11/22 Sami Siren ssi...@gmail.com I think the problem is that even though you were able

Re: SolrJ: atomic updates.

2012-11-15 Thread Sami Siren
a jira for that? -- Sami SIren Regards, - Luis Cappa. 2012/11/15 Luis Cappa Banda luisca...@gmail.com Hello everyone, I´ve tested atomic updates via Ajax calls and now I´m starting with atomic updates via SolrJ... but the way I´m proceeding doesn´t seem to work well. Here

Re: SolrJ: atomic updates.

2012-11-15 Thread Sami Siren
. The Affects version should be 4.0. On Thu, Nov 15, 2012 at 1:42 PM, Luis Cappa Banda luisca...@gmail.comwrote: Hello, Sami. It will be the first issue that I open so, should I create it under Solr 4.0 version or in Solr 4.1.0 one? Thanks, - Luis Cappa. 2012/11/15 Sami Siren ssi...@gmail.com

Re: SolrJ: atomic updates.

2012-11-15 Thread Sami Siren
with atomic updates via SolrJ. Regards, - Luis Cappa. 2012/11/15 Luis Cappa Banda luisca...@gmail.com I´ll have a look to Solr source code and try to fix the bug. If I succeed I´ll update JIRA issue with it, :-) 2012/11/15 Sami Siren ssi...@gmail.com Actually it seems that xml

Re: CloudSolrServer and LBHttpSolrServer: setting BinaryResponseParser and BinaryRequestWriter.

2012-11-15 Thread Sami Siren
hi, did you try setting your values in a List, for example ArrayList it should work when you use that even without specifying reguest-/response writer. -- Sami Siren On Thu, Nov 15, 2012 at 4:56 PM, Luis Cappa Banda luisca...@gmail.comwrote: Hello, I´ve found what It seems to be a bug

Re: SolrJ 4.0 Beta maxConnectionsPerHost

2012-10-10 Thread Sami Siren
instantiate the client every time. When the client seems to be hanging, can you still access the Solr instance normally and execute updates/searches from other clients? -- Sami Siren

Re: SolrJ 4.0 Beta maxConnectionsPerHost

2012-10-10 Thread Sami Siren
java program that uses solrj to demonstrate the problem. Based on the available information it is really difficult try to guess what's happening. -- Sami Siren

Re: SolrJ 4.0 Beta maxConnectionsPerHost

2012-10-09 Thread Sami Siren
or have an idea how to resolve? I did some experiments with the solrj and from what it looked like it seems to respect the values that you set. -- Sami Siren

Re: Change config to use port 8080 instead of port 8983

2012-09-27 Thread Sami Siren
i just tried this with tomcat and the props work for me. Did you wipe out your zoo_data before starting with the additional system properties? here's how i ran it: JAVA_OPTS=-DzkRun -DnumShards=1 -Djetty.port=8080 -Dbootstrap_conf=true -Dhost=127.0.0.1 bin/catalina.sh run -- Sami Siren

Re: Change config to use port 8080 instead of port 8983

2012-09-26 Thread Sami Siren
and the hostname or in your case the ip in host. So adding -Djetty.port=xxx -Dhost=yyy to you JAVA_OPTS allow you to set them when using the default solr.xml. -- Sami Siren

Re: Solrcloud not reachable and after restart just a no servers hosting shard

2012-09-24 Thread Sami Siren
hi, Can you share a little bit more about your configuration: how many shards, # of replicas, how does your clusterstate.json look like, anything suspicious in the logs? -- Sami Siren On Mon, Sep 24, 2012 at 11:13 AM, Daniel Brügge daniel.brue...@gmail.com wrote: Hi, I am running Solrcloud

Re: Nodes cannot recover and become unavailable

2012-09-19 Thread Sami Siren
Hi, I am having troubles understanding the reason for that NPE. First you could try removing the line #102 in HttpClientUtility so that logging does not prevent creation of the http client in SyncStrategy. -- Sami Siren On Wed, Sep 19, 2012 at 5:29 PM, Markus Jelsma markus.jel...@openindex.io

Re: Nodes cannot recover and become unavailable

2012-09-19 Thread Sami Siren
also, did you re create the cluster after upgrading to a newer version? I believe there were some changes made to the clusterstate.json recently that are not backwards compatible. -- Sami Siren On Wed, Sep 19, 2012 at 6:21 PM, Sami Siren ssi...@gmail.com wrote: Hi, I am having troubles

Re: Solr 4.0 BETA Replication problems on Tomcat

2012-09-05 Thread Sami Siren
I opened SOLR-3789. As a workaround you can remove str name=compressioninternal/str from the config and it should work. -- Sami Siren On Wed, Sep 5, 2012 at 5:58 AM, Ravi Solr ravis...@gmail.com wrote: Hello, I have a very simple setup one master and one slave configured as below

Re: JIRA Issue : SOLR-3771

2012-08-31 Thread Sami Siren
Based on the stack trace it seems that DIH uses URLConnection. You might want to try setting the proxy related system properties for the jvm that runs Solr: http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html -- Sami Siren On Fri, Aug 31, 2012 at 9:58 AM, Molala, Nagaraj

Re: Updating document with the Solr Java API

2012-08-07 Thread Sami Siren
); doc.addField(_version_, version); // this is needed only if optimistic locking is to be used HashMapString, Object value = new HashMapString, Object(); value.put(set,100); doc.addField(price_f, value); -- Sami Siren

Re: Problem with Solr 4.0-ALPHA and JSON response

2012-08-06 Thread Sami Siren
, to control the format used by the client there's a method HttpSolrServer#setParser that set's the client parser (that also overrides the wt param when the request is made) -- Sami Siren

Re: LeaderElection bugfix

2012-06-27 Thread Sami Siren
to LeaderElectionIntegrationTest and ran it few times but I can't get it to fail. -- Sami Siren

Re: LeaderElection bugfix

2012-06-27 Thread Sami Siren
ok, I see what you mean. Looks to me that you're right. I am not too familiar with the LeaderElector so I'll let Mark take a second look. -- Sami Siren On Wed, Jun 27, 2012 at 11:32 AM, Trym R. Møller t...@sigmat.dk wrote: Hi Sami Regarding 2) A simple way to inspect the number of watchers

Re: SolrCloud and split-brain

2012-06-18 Thread Sami Siren
not accept updates (even if that side has a working zk setup). Now imagine if the client sending documents for indexing happened to be sending documents to 2 nodes, say in round-robin fashion. In my understanding all updates are routed through a shard leader. -- Sami Siren

Re: How to update one field without losing the others?

2012-06-18 Thread Sami Siren
a junit test method, testUpdateField(), that does something similar: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/SolrExampleTests.java?view=markup -- Sami Siren

Re: SolrJ indexing pdf documents

2012-06-16 Thread Sami Siren
/dataimporthandler-extras/src/test-files/dihextras/solr-word.pdf)); server.request(req); server.commit(); -- Sami Siren

Re: StreamingUpdateSolrServer Connection Timeout Setting

2012-06-15 Thread Sami Siren
The api doc for version 3.6.0 is available here: http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/impl/StreamingUpdateSolrServer.html I think the default is coming from your OS if you are not setting it explicitly. -- Sami Siren On Fri, Jun 15, 2012 at 8:22 PM, Kissue Kissue

Re: solrj library requirements: slf4j-jdk14-1.5.5.jar

2012-06-14 Thread Sami Siren
What is the version of solrj you are trying to get working? If you download version 3.6 of solr there's a directory dist/solrj-lib in the binary release artifact that includes the required dependencies. I would start with those. -- Sami Siren On Wed, Jun 6, 2012 at 5:34 PM, Welty, Richard rwe

Re: SolrJ dependencies

2012-06-12 Thread Sami Siren
/solrj-lib as wel? Yes they should. Do I need to create a ticket for this? Please do so. -- Sami Siren

Re: Accent Characters

2012-05-31 Thread Sami Siren
Vicente, Are you using CommonsHttpSolrServer or HttpSolrServer? If the latter then you are probably hitting this: https://issues.apache.org/jira/browse/SOLR-3375 The remedy is to use CommonshHttpSolrServer. -- Sami Siren On Thu, May 31, 2012 at 7:52 AM, Vicente Couto couto.vice...@gmail.com

Re: upgrade to 3.6

2012-05-25 Thread Sami Siren
Hi, If you're using non ascii data with solrj you might want to test that it works for you properly. See for example https://issues.apache.org/jira/browse/SOLR-3375 -- Sami Siren On Fri, May 25, 2012 at 10:11 AM, Cam Bazz camb...@gmail.com wrote: Hello, I have upgraded from 1.4 to 3.6

Re: Throws Null Pointer Exception Even Query is Correct in solr

2012-05-24 Thread Sami Siren
What version of solr (solrj) are you using? -- Sami SIren On Thu, May 24, 2012 at 8:41 AM, in.abdul in.ab...@gmail.com wrote: Hi Dmitry , There is no out of memory execution in solr ..            Thanks and Regards,        S SYED ABDUL KATHER On Thu, May 24, 2012 at 1:14 AM, Dmitry Kan

Re: solr error when querying.

2012-05-24 Thread Sami Siren
Ron, Did you actually add new xslt file there or did you try to use the example one, if the latter I believe the filename is example.xsl not example.xslt -- Sami Siren On Wed, May 23, 2012 at 5:30 PM, watson ron.jagannat...@gmail.com wrote: Here is my query: http://127.0.0.1:/solr/JOBS

Re: Arabic document analysis fails for HttpServer

2012-05-24 Thread Sami Siren
will eventually become solr 3.6.1. For now I recommend you use the Commons version of the solr server (if You need to be on released version) or then just check out the fixed version from the 3.6 branch. -- Sami Siren On Thu, May 24, 2012 at 6:23 PM, Shane Perry thry...@gmail.com wrote: Hi, Upgrading

Re: Solr Shards multi core slower then single big core

2012-05-14 Thread Sami Siren
separate hard discs for each shard splitting your index into smaller shards can in some cases make a huge difference in one box too. -- Sami Siren

Re: Dynamic core creation works in 3.5.0 fails in 3.6.0: At least one core definition required at run-time for Solr 3.6.0?

2012-05-03 Thread Sami Siren
like a reasonable feature so I would classify this as a bug. Not sure what others thing about it. -- Sami Siren

Re: # open files with SolrCloud

2012-04-23 Thread Sami Siren
setup so it seems to be working now. -- Sami Siren

Re: # open files with SolrCloud

2012-04-20 Thread Sami Siren
On Thu, Apr 19, 2012 at 3:12 PM, Sami Siren ssi...@gmail.com wrote: I have a simple solrcloud setup from trunk with default configs; 1 shard with one replica. As few other people have reported there seems to be some kind of leak somewhere that causes the number of open files to grow over time

# open files with SolrCloud

2012-04-19 Thread Sami Siren
for this? I don't even know where to start looking... -- Sami Siren

Re: [SoldCloud] leaking file descriptors

2012-03-01 Thread Sami Siren
at around 400-500. -- Sami Siren On Thu, Mar 1, 2012 at 12:36 PM, Markus Jelsma markus.jel...@openindex.io wrote: Hi, Yesterday we had an issue with too many open files, which was solved because a username was misspelled. But there is still a problem with open files. We cannot succesfully

Re: [SolrCloud] Too many open files - internal server error

2012-02-29 Thread Sami Siren
the open file descriptor (32k) limit is active for the user running solr? -- Sami Siren

Re: Inconsistent Results with ZooKeeper Ensemble and Four SOLR Cloud Nodes

2012-02-29 Thread Sami Siren
#build and start solrcloud (1 shard, no replicas) cd solr/cloud-dev sh ./control.sh rebuild sh ./control.sh reinstall 1 sh ./control.sh start 1 #index content java -jar ../example/exampledocs/post.jar ../example/exampledocs/*.xml #after that you can run your queries -- Sami Siren

Re: Unique key constraint and optimistic locking (versioning)

2012-02-24 Thread Sami Siren
-- Sami Siren

Re: Unique key constraint and optimistic locking (versioning)

2012-02-24 Thread Sami Siren
On Fri, Feb 24, 2012 at 12:06 PM, Per Steffensen st...@designware.dk wrote: Sami Siren skrev: Given that you've set a uniqueKey-field and there already exists a document with that uniqueKey, it will delete the old one and insert the new one. There is really no difference between the semantics

Re: distributed deletes working?

2012-02-17 Thread Sami Siren
probably be changed at some point. -- Sami Siren

Re: distributed deletes working?

2012-02-17 Thread Sami Siren
with that setup or not. -- Sami Siren

Re: SolrCloud Replication Question

2012-02-13 Thread Sami Siren
Do you have unique dataDir for each instance? 13.2.2012 14.30 Jamie Johnson jej2...@gmail.com kirjoitti:

Re: Parallel indexing in Solr

2012-02-07 Thread Sami Siren
On Mon, Feb 6, 2012 at 5:55 PM, Per Steffensen st...@designware.dk wrote: Sami Siren skrev: On Mon, Feb 6, 2012 at 2:53 PM, Per Steffensen st...@designware.dk wrote: Actually right now, I am trying to find our what my bottleneck is. The setup is more complex, than I would bother you

Re: Parallel indexing in Solr

2012-02-06 Thread Sami Siren
not be a Solr-related problem, I am investigating different things, but just wanted to know a little more about how Jetty/Solr works in order to make a qualified guess. What kind of/how many discs do you have for your shards? ..also what kind of server are you experimenting with? -- Sami Siren

Re: Commit and sessions

2012-01-27 Thread Sami Siren
the last minutes of adds made it. In addition to what Jan said I think you also need to watch out for out of memory exceptions and filled disk space because I think you loose your docs (since last commit) in those cases too. -- Sami Siren

Re: Difference between #indexed documents and #results in *:* query

2012-01-25 Thread Sami Siren
Does all your 913 documents contain a unique key?  The uniqueKey field is id by default. --  Sami Siren On Wed, Jan 25, 2012 at 3:16 PM, m0rt0n rau...@gmail.com wrote: Thanks a lot for your answer; really appreciated. Unfortunately, I am still getting the same number of results: - I tried

Re: Stopword filter - refreshing stop word list periodically

2011-11-03 Thread Sami Siren
to reload that you'd call url: http://localhost:8983/solr/admin/cores?action=RELOADcore=collection1 -- Sami Siren

Re: basic solr cloud questions

2011-09-29 Thread Sami Siren
of things yourself, even if they might be done by SolrCloud automatically in the future. There is a patch in Jira: https://issues.apache.org/jira/browse/SOLR-2355 that adds a update processor suitable for doing simple distributed indexing with current version of Solr. -- Sami Siren

Re: [POLL] Where do you get Lucene/Solr from? Maven? ASF Mirrors?

2011-01-22 Thread Sami Siren
mirrors them internally or via a downstream project) -- Sami Siren

Re: unable to run the solr in tomcat 5.0

2009-05-06 Thread Sami Siren
post.jar also supports specifying alternative url, see output from java -jar post.jar -help for more info. -- Sami Siren uday kumar maddigatla wrote: hi you mis understood my question. When i try to use the command java -post.jar *.*. It is trying to Post files in Solr which

Re: [VOTE] Community Logo Preferences

2008-11-24 Thread Sami Siren
://issues.apache.org/jira/secure/attachment/12394266/apache_solr_b_red.jpg -- Sami Siren Ryan McKinley wrote: Please submit your preferences for the solr logo. For full voting details, see: http://wiki.apache.org/solr/LogoContest#Voting The eligible logos are: http://people.apache.org

Re: solr + maven?

2007-12-05 Thread Sami Siren
usable maven artifacts for releases and nightly builds). If it has any value I could at least put some poms together. -- Sami Siren

Re: Tomcat6 env-entry

2007-12-05 Thread Sami Siren
I don't recall any differences in tomcat 6 configuration compared to tomcat 5, did you try to follow the information on wiki for tomcat 5 on your installation? -- Sami Siren Matthew Runo wrote: Ok, I updated it. I hope it makes sense =\ I'm not really familiar enough with the Context

Re: Solr 1.2 HTTP Client for Java

2007-06-14 Thread Sami Siren
, it will be there Each project must actively push [1] released artifacts to maven repository, there is no other way of getting them there. [1] http://www.apache.org/dev/release-publishing.html#maven-repo -- Sami Siren

Re: Index search questions; special cases

2006-11-15 Thread Sami Siren
build these nice utilities to be usable between projects. Not exactly sure how this could be accomplished but anyway something to consider. -- Sami Siren