Re: SolrException: Error Instantiating queryParser, com.site.s.CustomQParserPlugin failed to instantiate org.apache.solr.search.QParserPlugin

2018-02-23 Thread ~$alpha`
Resolved by inclding solr on depency using maven



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: SolrException: Error Instantiating queryParser, com.site.s.CustomQParserPlugin failed to instantiate org.apache.solr.search.QParserPlugin

2018-02-19 Thread Emir Arnautović
Hi,
Here is a blog post that shows how simple update processor is 
built/configured/deployed (you can ignore docValues part and why custom 
processor is done). You can follow that and see what you did wrong in your 
case: http://www.od-bits.com/2018/02/solr-docvalues-on-analysed-field.html 
<http://www.od-bits.com/2018/02/solr-docvalues-on-analysed-field.html>

HTH,
Emir
--
Monitoring - Log Management - Alerting - Anomaly Detection
Solr & Elasticsearch Consulting Support Training - http://sematext.com/



> On 17 Feb 2018, at 10:51, ~$alpha` <lavesh.ra...@gmail.com> wrote:
> 
> 
>> I have created a custom query parser for Solr
> public class CustomQParserPlugin extends QParserPlugin {
> }
> 
>> Then I have imported the jar into Solr lib directory. i.e placed in
> server/lib directory
> 
>> I restarted the Solr
> 
>> getting below error
> SolrException: Error Instantiating queryParser,
> com.site.s.CustomQParserPlugin failed to instantiate
> org.apache.solr.search.QParserPlugin
> 
> I am getting the above error which means I am able to include my jar but no
> idea why I am getting error
> 
> 
> 
> 
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html



Re: SolrException: Error Instantiating queryParser, com.site.s.CustomQParserPlugin failed to instantiate org.apache.solr.search.QParserPlugin

2018-02-17 Thread Erick Erickson
When Solr first starts, it'll print the exact path it uses to load jar
files, insure your jar is on one of those paths. Look for a line like:
"Added ## libs to classloader from paths.".

Adding "-v" to the start up will show you much more detailed information.

You can also add the  directive to your solrconfig.xml to
place the jar in a specific directory. I usually start with a
hard-coded path just to get it to load the firs time, then do it
properly with relative paths.

Best,
Erick

On Sat, Feb 17, 2018 at 1:51 AM, ~$alpha` <lavesh.ra...@gmail.com> wrote:
>
>> I have created a custom query parser for Solr
> public class CustomQParserPlugin extends QParserPlugin {
> }
>
>>Then I have imported the jar into Solr lib directory. i.e placed in
> server/lib directory
>
>>I restarted the Solr
>
>>  getting below error
> SolrException: Error Instantiating queryParser,
> com.site.s.CustomQParserPlugin failed to instantiate
> org.apache.solr.search.QParserPlugin
>
> I am getting the above error which means I am able to include my jar but no
> idea why I am getting error
>
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


SolrException: Error Instantiating queryParser, com.site.s.CustomQParserPlugin failed to instantiate org.apache.solr.search.QParserPlugin

2018-02-17 Thread ~$alpha`

> I have created a custom query parser for Solr
public class CustomQParserPlugin extends QParserPlugin {
}

>Then I have imported the jar into Solr lib directory. i.e placed in
server/lib directory

>I restarted the Solr

>  getting below error
SolrException: Error Instantiating queryParser,
com.site.s.CustomQParserPlugin failed to instantiate
org.apache.solr.search.QParserPlugin

I am getting the above error which means I am able to include my jar but no
idea why I am getting error




--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html