I have file framework and Apach solr with the serveur installed. I also have Apach solr attachment install to found the attachments files in the website but i can search documents text in my normal search box. I still can't get the .doc to .pdf working but thats a different issue. all files is indexed but i can't found any in the default search.

If somebody can help me please.

CommentFileSizeAuthor
install apach solr.pdf1.09 MBbacarndiaye
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Nick_vh’s picture

I have absolutely no idea what the problem is here?
Please rephrase your problem clearly or this will be closed.

On another note : thanks for the guide, it is useful! :)

bacarndiaye’s picture

I have file framework and Apach solr with the serveur installed. I also have Apach solr attachment install to found the attachments files in the website but i can search documents text in my normal search box. I still can't get the .doc to .pdf working but thats a different issue. all files is indexed but i can't found any in the default search.

If somebody can help me please.

Nick_vh’s picture

www.yoursite.com/site/search is not returning any results whenever you are searching for content?
That is a very rare case. It could be that you have configured your solr instance wrongly?

Have you disabled core search?

bacarndiaye’s picture

No, I did not disabled the core search, but I have activate the Apach Solr module as the search engine by default.
And for the configuration this is what I made:

Step 1: Download Apache Solr module from here http://drupal.org/project/apachesolr, and place it in your drupal contributed modules folder.
 Step 2: Before enabling the module, we need to do some additional configurations. Download the apachesolr php client library from here http://code.google.com/p/solr-php-client/downloads/list . After extracting the files, place solrphpclient folder into apachesolr module folder.
 Step 3: Now enable Apache Solr Framework and Apache Solr Search modules from admin/build/modules section.

 Step4: Now download Apache Solr from here. http://apache.mirrors.hoobly.com/lucene/solr/1.4.0/apache-solr-1.4.0.zip and extract the contents.
 Step 5: Unpack the tar ball or zip file downloaded in step 3 outside your drupal installation and outside web root.
 Step 6: Go to /apachesolr1.4.0/example/solr/conf and copy schema and solrconfig files to the same directory and rename them as schema.bak and solrconfig.bak
 Step 7: Copy schema and solrconfig files from your drupal installation apachesolr module to above location and replace with existing files.
 Step 8: Now open your command prompt and browse to apachesolr1.4.0/example directory.
 Step 9: Type below command to start apachesolr service
>> java -jar start.jar
 Step 10: Test your solr server admin interface by visiting http://localhost:8983/solr/admin/ . If you can able to see admin page then your solr is running and ready to use with drupal.
 Step 11: Its time to configure drupal search with apache solr. Please go to admin/settings/apachesolr/index and run cron to index the content using apache solr search engine.
 Step 12: Now go to admin/settings/apachesolr click on advanced configuration and make apache solr as default search. Now go to admin/settings/apachesolr/enabled-filters and enable the sorting filters.

 Step 13: Now goto blocks and enable the necessary apache solr related blocks.
 Step 14: To enable facets please go to admin/settings/apachesolr/enabled-filters and enable filters. Now go to blocks and enable the facets filtering blocks where ever you want !!
 That's it...... Improved search performance is in front of your eyes. You can sort the content using the sort block. Amazing user experience and amazing search speed.

Nick_vh’s picture

Based on that guide I created a new guide more up to date with Apache Solr 3.4 and Drupal 7. http://www.nickveenhof.be/blog/simple-guide-install-apache-solr-3x-drupal-7

Try to restart from scratch and and see if you have the same problem. I'm guessing it's a configuration problem.

bacarndiaye’s picture

thank you, I am going to try!

bacarndiaye’s picture

We resolved the problem, indeed the problem was tika which is not configured but once it is made the module good index files and posters for the search.

thank for your help

scor’s picture

Status: Active » Closed (fixed)
x_tra06’s picture

Hello

I installed the server, but claims the following error, what could be the reason? please help?

http://localhost:8983/solr/
******************************************************************

HTTP ERROR 500

Problem accessing /solr/. Reason:

Severe errors in solr configuration.

Check your log files for more detailed information on what may be wrong.

If you want solr to continue after configuration errors, change:

false

in solr.xml

-------------------------------------------------------------
java.lang.AssertionError: Analyzer implementation classes or at least their tokenStream() and reusableTokenStream() implementations must be final
at org.apache.lucene.analysis.Analyzer.assertFinal(Analyzer.java:57)
at org.apache.lucene.analysis.Analyzer.(Analyzer.java:45)
at org.apache.solr.schema.IndexSchema$SolrIndexAnalyzer.(IndexSchema.java:358)
at org.apache.solr.schema.IndexSchema.refreshAnalyzers(IndexSchema.java:351)
at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:682)
at org.apache.solr.schema.IndexSchema.(IndexSchema.java:125)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461)
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)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
at java.lang.reflect.Method.invoke(libgcj.so.90)
at org.mortbay.start.Main.invokeMain(Main.java:194)
at org.mortbay.start.Main.start(Main.java:534)
at org.mortbay.start.Main.start(Main.java:441)
at org.mortbay.start.Main.main(Main.java:119)
Powered by Jetty://

17-Nov-11 11:17:52 AM org.apache.solr.servlet.SolrDispatchFilter init
INFO: user.dir=/root/apache-solr-3.4.0/example
17-Nov-11 11:17:52 AM org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init() done
17-Nov-11 11:17:52 AM org.apache.solr.servlet.SolrServlet init
INFO: SolrServlet.init()
17-Nov-11 11:17:52 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: JNDI not configured for solr (NoInitialContextEx)
17-Nov-11 11:17:52 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: solr home defaulted to 'solr/' (could not find system property or JNDI)
17-Nov-11 11:17:52 AM org.apache.solr.servlet.SolrServlet init
INFO: SolrServlet.init() done
17-Nov-11 11:17:52 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: JNDI not configured for solr (NoInitialContextEx)
17-Nov-11 11:17:52 AM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: solr home defaulted to 'solr/' (could not find system property or JNDI)
17-Nov-11 11:17:52 AM org.apache.solr.servlet.SolrUpdateServlet init
INFO: SolrUpdateServlet.init() done
2011-11-17 11:17:52.772:INFO::Started SocketConnector@0.0.0.0:8983

************************************************************************

SSH
************************************************************************
.
.
.
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
at java.lang.reflect.Method.invoke(libgcj.so.90)
at org.mortbay.start.Main.invokeMain(Main.java:194)
at org.mortbay.start.Main.start(Main.java:534)
at org.mortbay.start.Main.start(Main.java:441)
at org.mortbay.start.Main.main(Main.java:119)

17-Nov-11 2:04:02 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: user.dir=/root/apache-solr-3.4.0/example
17-Nov-11 2:04:02 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init() done
17-Nov-11 2:04:03 PM org.apache.solr.servlet.SolrServlet init
INFO: SolrServlet.init()
17-Nov-11 2:04:03 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: JNDI not configured for solr (NoInitialContextEx)
17-Nov-11 2:04:03 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: solr home defaulted to 'solr/' (could not find system property or JNDI)
17-Nov-11 2:04:03 PM org.apache.solr.servlet.SolrServlet init
INFO: SolrServlet.init() done
17-Nov-11 2:04:03 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: JNDI not configured for solr (NoInitialContextEx)
17-Nov-11 2:04:03 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: solr home defaulted to 'solr/' (could not find system property or JNDI)
17-Nov-11 2:04:03 PM org.apache.solr.servlet.SolrUpdateServlet init
INFO: SolrUpdateServlet.init() done
2011-11-17 14:04:03.333:INFO::Started SocketConnector@0.0.0.0:8983

************************************************************************

Nick_vh’s picture

Hi, This is the issue queue for the drupal module. not for the Solr server on it's own. Please read the documentation http://lucene.apache.org/solr/ or follow the simple guide here :
http://nickveenhof.be/blog/simple-guide-install-apache-solr-3x-drupal-7

x_tra06’s picture

I watched those steps, still got error

Nick_vh’s picture

Then it is probably a file permission problem. Make sure your config files have the right encoding type and that you have copied solrconfig and schema.xml correctly.

bacarndiaye’s picture

important to install the server tika to index all file attachment

bdupls’s picture

I have followed instructions and have http://localhost:8983/solr/admin/ displaying correctly. However drupal 7 still says Your site was unable to contact the Apache Solr server.
I notice that Apache Tika was mentioned, should this also be installed in addition to Apache?

bdupls’s picture

Sorry to continue. I've downloaded latest apache-solr-3.6.1 - In the example directory there is a start.jar.sha1 not start.jar file.
How do I run this file?
java -jar start.jar says Invalid or corrupt jarfile start.jar.sha1

bdupls’s picture

To reply to my own post. After installing xcode on mac the installation installs.

subhojit777’s picture

@brendadupls, I also got start.jar.sha1 after extracting the apache solr tarball. How did you managed to run the jar file? I use Ubuntu 12.10

Ujin’s picture

Hi, try to download this apache solr (weight about 87 Mb) http://apache-mirror.telesys.org.ua/lucene/solr/3.6.2/apache-solr-3.6.2.zip instead of your version

subhojit777’s picture

@Ujin thanks
I was downloading the wrong tarball

subhojit777’s picture

Issue summary: View changes

modification