After this i tried with solr3.1-src.
- and this time i got the core folder in the previous installation ,when this folder get created - /home/reach121/basf/*apache-solr-3.1.0/core/src/test/org/apache/solr/search/TestSurroundQueryParser.java * - and i have putted * <queryParser name="surround" class="org.apache.solr.search.SurroundQParserPlugin" />* - but when i run solr , it is giving me an error : - - SEVERE: org.apache.solr.common.SolrException: Error loading class 'org.apache.solr.search.SurroundQParserPlugin' - at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:389) - at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:423) - at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:445) - at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1545) - at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1539) - at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1572) - at org.apache.solr.core.SolrCore.initQParsers(SolrCore.java:1489) - at org.apache.solr.core.SolrCore.<init>(SolrCore.java:555) - at org.apache.solr.core.CoreContainer.create(CoreContainer.java:458) - at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) - at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) - at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) - at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) - at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) - at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) - at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) - Please suggest what should i do ? On Wed, Nov 23, 2011 at 11:19 AM, Rahul Mehta <rahul23134...@gmail.com>wrote: > This what i tried: > > > - Gone to the solr 3.1 directory which is downloaded from here. > http://www.trieuvan.com/apache//lucene/solr/3.1.0/apache-solr-3.1.0.tgz > - wget > https://issues.apache.org/jira/secure/attachment/12493167/SOLR-2703.patch > - run the : patch -p0 -i SOLR-2703.patch --dry-run > - got an error : > - patching file > core/src/test/org/apache/solr/search/TestSurroundQueryParser.java > - patching file core/src/test-files/solr/conf/schemasurround.xml > - patching file core/src/test-files/solr/conf/solrconfigsurround.xml > - patching file > core/src/java/org/apache/solr/search/SurroundQParserPlugin.java > - patching file example/solr/conf/solrconfig.xml > - Hunk #1 FAILED at 1538. > - 1 out of 1 hunk FAILED -- saving rejects to file > example/solr/conf/solrconfig.xml.rej > - our solr config file is getting end at 1508 only. > - tried finding sudo find / -name TestSurroundQueryParser.java which > is not found in the directory . > - and when m doing svn up giving me Skipped '.' > > *Please suggest what should i do now ? * > > On Wed, Nov 23, 2011 at 10:39 AM, Rahul Mehta <rahul23134...@gmail.com>wrote: > >> How to apply this patch https://issues.apache.org/jira/browse/SOLR-2703 with >> solr 3.1 to install surround as plugin? >> >> >> On Tue, Nov 22, 2011 at 7:34 PM, Erik Hatcher <erik.hatc...@gmail.com>wrote: >> >>> The "surround" query parser is fully wired into Solr trunk/4.0, if that >>> helps. See http://wiki.apache.org/solr/SurroundQueryParser and the >>> JIRA issue linked there in case you want to patch it into a different >>> version. >>> >>> Erik >>> >>> On Jan 21, 2011, at 02:24 , Ahson Iqbal wrote: >>> >>> > Hi All >>> > >>> > I want to integrate Surround Query Parser with solr, To do this i have >>> > downloaded jar file from the internet and and then pasting that jar >>> file in >>> > web-inf/lib >>> > >>> > and configured query parser in solrconfig.xml as >>> > <queryParser name="SurroundQParser" >>> > class="org.apache.lucene.queryParser.surround.parser.QueryParser"/> >>> > >>> > now when i load solr admin page following exception comes >>> > org.apache.solr.common.SolrException: Error Instantiating >>> QParserPlugin, >>> > org.apache.lucene.queryParser.surround.parser.QueryParser is not a >>> > org.apache.solr.search.QParserPlugin >>> > >>> > what i think that i didnt get the right plugin, can any body guide me >>> from where >>> > to get right plugin for surround query parser or how to accurately >>> integrate >>> > this plugin with solr. >>> > >>> > >>> > thanx >>> > Ahsan >>> > >>> > >>> > >>> >>> >> >> >> -- >> Thanks & Regards >> >> Rahul Mehta >> >> >> >> > > > -- > Thanks & Regards > > Rahul Mehta > > > > -- Thanks & Regards Rahul Mehta