Validate document against schema

2015-04-15 Thread Artem Karpenko
Hi, I am looking for possibility to validate document that is about to be inserted against schema to check if addition of document will fail or not w/o actually making an insert. Is there a way to that? I'm doing update from inside the Solr plugin so there is an access to API if that matters.

Re: Solr middle-ware?

2014-01-21 Thread Artem Karpenko
Hello. Not really middle-ware but might be of interest concerning possible ways implementing security. We use custom built Solr with web.xml including Spring Security filter and appropriate infrastructure classes for authentication added as a dependency into project. We pass token from fronten

Re: Programmatically upload configuration into ZooKeeper

2013-12-05 Thread Artem Karpenko
Thank you Shawn, it works! You were right about CoreAdmin API, I've implemented individual core management by getting list of live nodes from ZK and using HttpSolrServer's for different nodes. Regards, Artem. 04.12.2013 18:47, Shawn Heisey пишет: On 12/4/2013 9:23 AM, Artem Karp

Re: Programmatically upload configuration into ZooKeeper

2013-12-04 Thread Artem Karpenko
clusterstateJson, true); System.out.println("Updated /clusterstate.json with data from "+jsonFile.getAbsolutePath()); } ** You should be able to modify that or use it as a basis for uploading the changed files in your config. Thanks, Greg On Dec 4, 2013, at 8:36 AM, Artem Karpenko

Programmatically upload configuration into ZooKeeper

2013-12-04 Thread Artem Karpenko
What is the best way to upload Solr configuration files into ZooKeeper programmatically, i.e. - from within Java code? I know that there are cloud-scripts for this, but in the end they should use some Java client library, don't they? This question raised because we use special configuration sys

Re: Where is the webapps directory of servlet container?

2013-08-16 Thread Artem Karpenko
Solr Home directory from distribution is "apache-solr-4.x.0/example/solr/". You just have to copy it anywhere you like and then point out this location by providing system property solr.solr.home when starting the servlet container of your choice (also described later in the doc

Re: Encountered invalid class name

2013-08-06 Thread Artem Karpenko
will succeed for cases like yours). Regards, Artem. 06.08.2013 6:13, anpm1989 пишет: Hi Artem Karpenko, Thank you for finding the reason. It seem The Jboss deployment scanner does not accept dollar characters in its validation pattern. So, i think that my Solr app can not work 100%, isn'

Re: Encountered invalid class name

2013-08-05 Thread Artem Karpenko
-alpha2. For what it's worth, these are just warnings and seem to not have any impact on actual class loading. 05.08.2013 16:23, Artem Karpenko пишет: Hi, I am able to reproduce the problem. Simple JBoss install, putting solr.war into deployments/ directory or deploying via web-inte

Re: Encountered invalid class name

2013-08-05 Thread Artem Karpenko
libraries as well and is loaded properly. 05.08.2013 4:43, anpm1989 пишет: Hi Artem Karpenko, - I used Solr 4.4.0 - I copy war file from $SOLR_HOME/dist and rename to solr.war - I copy solr.war to $JBOSS_HOME/standalone/deployments for deploy - When solr.war is deploying, i see these warning

Re: Encountered invalid class name

2013-08-02 Thread Artem Karpenko
Hi. What is the version of Solr? How exactly have you deployed it? Have you used the .war file from the dist/ folder? When do you see those messages? Best regards, Artem Karpenko. 02.08.2013 6:24, anpm1989 пишет: Hello everyone, I am a newbie with Solr and J2E server. I trying to deploy Solr

Re: Improper shutdown of Solr in Jetty 9

2013-07-31 Thread Artem Karpenko
I don't use Cygwin, but I guess it's similar in that in Windows there are no signals at all so situation with missing shutdown hooks is the same. 31.07.2013 20:54, Chris Hostetter пишет: : it's Windows 7. I'm starting Jetty with java -jar start.jar Not sure if you are using cygwin, or if this

Re: Improper shutdown of Solr in Jetty 9

2013-07-31 Thread Artem Karpenko
eem to be working. (Anonymous - via GTD book) On Tue, Jul 30, 2013 at 10:09 AM, Artem Karpenko Uh, sorry for spamming, but if anyone interested there is a way to properly shutdown Jetty when it's launched with --exec flag. You can use JMX to invoke method stop() on the Jetty's Server MBean

Re: Improper shutdown of Solr in Jetty 9

2013-07-30 Thread Artem Karpenko
er why it's not noted at least in Jetty documentation. Regards, Artem Karpenko. 30.07.2013 16:58, Artem Karpenko пишет: After some investigation I found that the problem is not with Jetty's version but usage of --exec flag. Namely, when --exec is used (to specify JVM args) then shutdown

Re: Improper shutdown of Solr in Jetty 9

2013-07-30 Thread Artem Karpenko
After some investigation I found that the problem is not with Jetty's version but usage of --exec flag. Namely, when --exec is used (to specify JVM args) then shutdown is not graceful, it seems that Java process that is just killed. Not sure how to handle this... Regards, Artem Kar

Re: Auto Correction of Solr Query

2013-07-30 Thread Artem Karpenko
Hi Siva, you might want to consider spell check component: http://wiki.apache.org/solr/SpellCheckComponent. Parameter "collate=true" can be used to automatically replace query with the top suggestions. Best, Artem. 30.07.2013 10:31, sivaprasad пишет: Hi, Is there any way to "auto correct"

Improper shutdown of Solr in Jetty 9

2013-07-29 Thread Artem Karpenko
Hi, I can't make Solr shut down properly when using Jetty 9. Tested this with a simple plugin that only extends DirectUpdateHandler2, creates a file in constructor and deletes it in close(). While it's working fine in the example installation (the one that can be downloaded from Solr site) an

Re: .lock file not created when making a backup snapshot

2013-07-29 Thread Artem Karpenko
Thanks Mark! 29.07.2013 12:32, Mark Triggs пишет: Hi Artem, I noticed this recently too. I created a JIRA issue here: https://issues.apache.org/jira/browse/SOLR-5040 Cheers, Mark Artem Karpenko writes: Hi, when making a backup snapshot using "/replication?command=backup&quo

.lock file not created when making a backup snapshot

2013-07-29 Thread Artem Karpenko
Hi, when making a backup snapshot using "/replication?command=backup" call, a snapshot directory is created and starts to be filled, but appropriate .lock file is not created so it's impossible to check when backup is finished. I've taken a look at code and it seems to me that lock.obtain() c

Re: Wildcard matching of dynamic fields

2013-07-26 Thread Artem Karpenko
solr_.* You can use full regex patterns or lists of field names. (I have more examples in my book.) -- Jack Krupansky -Original Message----- From: Artem Karpenko Sent: Thursday, July 25, 2013 11:05 AM To: solr-user@lucene.apache.org Subject: Wildcard matching of dynamic fields Hi, given

Wildcard matching of dynamic fields

2013-07-25 Thread Artem Karpenko
Hi, given a dynamic field stored="true" /> There are some other suffix-based fields as well. And some of the fields in document should be ignored, they have "nosolr_" prefix. But defining stored="false" /> even at the start of schema does not work, field "nosolr_inv_dunning_boolean" is r